Examples of last()


Examples of com.ibm.icu.text.RuleBasedBreakIterator.last()

        doTest(testString, p, q, 31, "it?");
        q = wordIter1.following(2);
        doTest(testString, 2, q, 4, "is");
        q = wordIter1.following(22);
        doTest(testString, 22, q, 27, "Isn't");
        wordIter1.last();
        p = wordIter1.next();
        q = wordIter1.following(wordIter1.last());
        if (p != BreakIterator.DONE || q != BreakIterator.DONE)
            errln("ERROR: next()/following() at last position returned #"
                    + p + " and " + q + " instead of" + testString.length() + "\n");
View Full Code Here

Examples of com.madgnome.jira.plugins.jirachievements.data.services.IUserLevelDaoService.last()

    LevelManager levelManager = new LevelManager(userStatisticDaoService, userWrapperDaoService, userLevelDaoService, levelDaoService);

    UserWrapper userWrapper = mock(UserWrapper.class);
    levelManager.checkLevels(userWrapper);
    when(userLevelDaoService.last(any(UserWrapper.class), any(Category.class))).thenReturn(level);

    levelManager.checkLevels(userWrapper);

    verify(userLevelDaoService, times(3)).addLevelToUser(any(Level.class), any(UserWrapper.class));
  }
View Full Code Here

Examples of com.s3auth.hosts.Range.last()

        MatcherAssert.assertThat(
            range.first(),
            Matchers.is(100L)
        );
        MatcherAssert.assertThat(
            range.last(),
            Matchers.is(200L)
        );
    }

    /**
 
View Full Code Here

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

                    new ifc.sdbc._XResultSetUpdate.UpdateTester() {
                        String lastUpdate = null ;

                        public int rowCount() throws SQLException {
                            int prevPos = xResSet.getRow() ;
                            xResSet.last() ;
                            int count = xResSet.getRow() ;
                            xResSet.absolute(prevPos) ;

                            return count ;
                        }
View Full Code Here

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

        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());
            segmentList.append(segment3);
View Full Code Here

Examples of com.tll.util.PropertyPath.last()

    final PropertyPath p = new PropertyPath(path);
    if(p.depth() > 2) {
      final String ppp = p.trim(1);
      final ISchemaProperty sp = schemaInfo.getSchemaProperty(entityClass, ppp);
      if(sp.getPropertyType().isNested()) {
        path = ppp + '_' + p.last();
      }
    }
    return path;
  }
View Full Code Here

Examples of connectivity.tools.RowSet.last()

        RowSet innerRowSet = m_database.getDatabase().createRowSet( _innerCommandType, _innerCommand );
        innerRowSet.execute();

        outerRowSet.last();
        innerRowSet.last();
        assure( "wrong record counts", outerRowSet.getRow() == innerRowSet.getRow() );

        outerRowSet.beforeFirst();
        innerRowSet.beforeFirst();
        assure( "wrong column counts", outerRowSet.getColumnCount() == innerRowSet.getColumnCount() );
View Full Code Here

Examples of difflib.Chunk.last()

      }
      count1 = orgChunk.getPosition();
      count2 = revChunk.getPosition();

      if (delta instanceof InsertDelta) {
        while (count2 <= revChunk.last()) {
          this.handler.add(this.text2.get(count2));
          count2++;
        }

      } else if (delta instanceof DeleteDelta) {
View Full Code Here

Examples of edu.ucla.sspace.dependency.DependencyPath.last()

                Iterator<DependencyPath> pathIter =
                    new FilteredDependencyIterator(nodes[i], acceptor, 1);

                while (pathIter.hasNext()) {
                    DependencyPath path = pathIter.next();
                    DependencyTreeNode last = path.last();

                    // Reject words that are not nouns, verbs, or adjectives.
                    if (!(last.pos().startsWith("N") ||
                          last.pos().startsWith("J") ||
                          last.pos().startsWith("V")))
View Full Code Here

Examples of edu.ucla.sspace.dependency.DependencyPath.last()

                // the path and add it to the semantic vector for the focus
                // word.  The index vector is permuted if a permutation
                // function has been provided based on the contents of the path.
                while (pathIter.hasNext()) {
                    DependencyPath path = pathIter.next();
                    TernaryVector termVector = indexMap.get(path.last().word());
                    if (permFunc != null)
                        termVector = permFunc.permute(termVector, path);
                    add(focusMeaning, termVector);
                }
            }
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.