Examples of first()


Examples of com.sleepycat.je.dbi.INList.first()

            if (inListStartSize == 0) {
                nextNode = null;
                return 0;
            } else {
                if (nextNode == null) {
                    nextNode = inList.first();
                }
            }

            ScanIterator scanIter = new ScanIterator(nextNode, inList);
View Full Code Here

Examples of com.sun.org.apache.xml.internal.dtm.DTMAxisTraverser.first()

    // NodeTest.debugWhatToShow(what);
    if(DTMFilter.SHOW_ALL == what
       || localName == NodeTest.WILD
       || namespace == NodeTest.WILD)
    {
      return traverser.first(current);
    }
    else
    {
      int type = getNodeTypeTest(what);
      int extendedType = dtm.getExpandedTypeID(namespace, localName, type);
View Full Code Here

Examples of com.sun.rowset.CachedRowSetImpl.first()

    this.rs = this.stmt
        .executeQuery("select firstName as 'first person' from bug49516");

    crs = new CachedRowSetImpl();
    crs.populate(this.rs);
    crs.first();

    assertEquals("John", crs.getString(1));
  }

  public void testBug48820() throws Exception {
View Full Code Here

Examples of com.sun.star.sdbc.XResultSet.first()

            oInterface = oRowSet ;

            XResultSet xRes = (XResultSet) UnoRuntime.queryInterface
                (XResultSet.class, oRowSet) ;

            xRes.first() ;

            if (oInterface == null) {
                log.println("Service wasn't created") ;
                throw new StatusException("Service wasn't created",
                    new NullPointerException()) ;
View Full Code Here

Examples of com.taobao.metamorphosis.server.store.MessageStore.SegmentList.first()

        final Segment segment2 = new Segment(1024, file);
        final Segment segment3 = new Segment(2048, file);
        try {
            segmentList.append(segment1);
            assertEquals(1, segmentList.contents.get().length);
            assertSame(segment1, segmentList.first());
            assertSame(segment1, segmentList.last());
            segmentList.append(segment2);
            assertEquals(2, segmentList.contents.get().length);
            assertSame(segment1, segmentList.first());
            assertSame(segment2, segmentList.last());
View Full Code Here

Examples of com.trifork.clj_ds.ISeq.first()

   
    if (map.count() == 0) {
      return Native.am_$end_of_table;
    } else {
      ISeq entseq = map.seq();
      IMapEntry<EObject, EObject> ent = (IMapEntry<EObject, EObject>) entseq.first();
      return (EObject) ent.getKey();
    }
  }
 
  @Override
View Full Code Here

Examples of edu.stanford.nlp.util.Pair.first()

        return p22.compareTo(p12);
      });
      for (int i = 0, size = answers.size(); i < size; i++) {
        Pair p = (Pair) answers.get(i);
        double psd = ((Double) p.second()).doubleValue();
        System.out.println(p.first() + ": " + nf.format(psd));
        if (psd >= CUTOFFS[0]) {
          String annotatedLabel = (String) p.first();
          for (int j = 0; j < CUTOFFS.length; j++) {
            if (psd >= CUTOFFS[j]) {
              //javaSB[j].append("\"").append(annotatedLabel);
View Full Code Here

Examples of it.unimi.dsi.fastutil.longs.LongSortedSet.first()

    public void testMaskFirst() {
        LongKeyDomain keys = LongKeyDomain.create(2, 7, 8, 42, 639);
        keys.setActive(0, false);
        LongSortedSet set = new LongSortedArraySet(keys);
        assertThat(set, hasSize(4));
        assertThat(set.first(), equalTo(7l));
        assertThat(set.last(), equalTo(639l));
        assertTrue(set.contains(7));
        assertTrue(set.contains(42));
        assertFalse(set.contains(2));
        assertThat(LongIterators.unwrap(set.iterator()),
View Full Code Here

Examples of jadx.core.dex.regions.conditions.IfCondition.first()

    IfCondition a = makeSimpleCondition();
    IfCondition b = makeSimpleCondition();
    IfCondition c = merge(Mode.OR, a, b);

    assertEquals(c.getMode(), Mode.OR);
    assertEquals(c.first(), a);
    assertEquals(c.second(), b);
  }

  @Test
  public void testSimplifyNot() {
View Full Code Here

Examples of java.awt.CardLayout.first()

        for (Map.Entry<String, ParametersPanel> entry : parameterPanels.entrySet())
        {
            distributionCombo.addItem(entry.getKey());
            parametersPanel.add(entry.getValue(), entry.getKey());
        }
        parametersLayout.first(parametersPanel);

        distributionCombo.addItemListener(new ItemListener()
        {
            public void itemStateChanged(ItemEvent itemEvent)
            {
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.