Examples of last()


Examples of java.sql.ResultSet.last()

      DatabaseMetaData meta = connection.getMetaData();

      rs = meta.getColumns(null, null, selectedTable, null);

      rs.last();

      return rs.getRow();

    } finally {
      closeResultSet(rs);
View Full Code Here

Examples of java.sql.ResultSet.last()

                statement = conn.createStatement(
                        ResultSet.TYPE_SCROLL_INSENSITIVE,
                        ResultSet.CONCUR_READ_ONLY);

                rs = statement.executeQuery(queryString);
                if (rs.last()) {
                    count = rs.getRow();
                } else {
                    count = 0;
                }
            } finally {
View Full Code Here

Examples of java.text.AttributedCharacterIterator.last()

   */
  public void test_last() {
    String test = "Test 23ring";
    AttributedString attrString = new AttributedString(test);
    AttributedCharacterIterator it = attrString.getIterator();
    assertEquals("Wrong last1", 'g', it.last());
    it = attrString.getIterator(null, 0, 3);
    assertEquals("Wrong last2", 's', it.last());
    it = attrString.getIterator(null, 2, 8);
    assertEquals("Wrong last3", 'r', it.last());
    it = attrString.getIterator(null, 0, 0);
View Full Code Here

Examples of java.text.BreakIterator.last()

        }
      }
    }

    // add the rest of the text, if there's any
    if (previous < iter.last()) {
      lines.add(text.getIterator(null, previous, iter.last()));
    }

    return lines;
  }
View Full Code Here

Examples of java.text.BreakIterator.last()

      }
    }

    // add the rest of the text, if there's any
    if (previous < iter.last()) {
      lines.add(text.getIterator(null, previous, iter.last()));
    }

    return lines;
  }
 
View Full Code Here

Examples of java.text.CharacterIterator.last()

            }
        }
        if(ci.first()!=wrap_ci.first()){
            errln("CharacterIteratorWrapper.first() failed. expected: " + ci.first() + " got: " +wrap_ci.first());
        }
        if(ci.last()!=wrap_ci.last()){
            errln("CharacterIteratorWrapper.last() failed expected: " + ci.last() + " got: " +wrap_ci.last());
        }
        if(ci.getBeginIndex()!=wrap_ci.getBeginIndex()){
            errln("CharacterIteratorWrapper.getBeginIndex() failed expected: " + ci.getBeginIndex() + " got: " +wrap_ci.getBeginIndex());
        }
View Full Code Here

Examples of java.text.StringCharacterIterator.last()

     
    char[] newStr = new char[str.length()] ;
    StringCharacterIterator iterator = new StringCharacterIterator(str) ;
    int i = 0 ;
       
    for(char ch = iterator.last(); ch != CharacterIterator.DONE; ch = iterator.previous())
    {
      newStr[i] = ch ;
      i++ ;
    }
    return new String( newStr )
View Full Code Here

Examples of java.util.NavigableSet.last()

        NavigableSet keySet;
        String firstKey1 = new Integer(108).toString();
        String firstKey2 = new Integer(109).toString();

        keySet = navigableMap_startExcluded_endExcluded.navigableKeySet();
        assertEquals(firstKey1, keySet.last());

        keySet = navigableMap_startExcluded_endIncluded.navigableKeySet();
        assertEquals(firstKey2, keySet.last());

        keySet = navigableMap_startIncluded_endExcluded.navigableKeySet();
View Full Code Here

Examples of java.util.SortedSet.last()

      baSet = (SortedSet)
        bas.bsnToBundleArchives.get(BundleArchives.encodeBundleName(name));
    }
    if (null!=baSet) {
      final BundleArchives.BundleArchive ba
        = (BundleArchives.BundleArchive) baSet.last();
      log("getBundleArchive("+name +")->"+ba, Project.MSG_VERBOSE);
      return ba;
    }

    final Pattern pattern = Pattern.compile
View Full Code Here

Examples of java.util.SortedSet.last()

    }
    BundleArchives.BundleArchive ba = null;

    if (null!=baSet) {
      if (null==max) { // Select highest available version
        ba = (BundleArchives.BundleArchive) baSet.last();
      } else {
        if (null==min) min = Version.emptyVersion;
        for (Iterator it = baSet.iterator(); it.hasNext(); ) {
          final BundleArchives.BundleArchive candBa
            = (BundleArchives.BundleArchive) it.next();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.