Examples of previous()


Examples of org.onebusaway.gtfs.model.calendar.ServiceDate.previous()

            LOG.warn("RoutingContext has no CalendarService. Transit will never be boarded.");
            return;
        }

        for (String agency : graph.getAgencyIds()) {
            addIfNotExists(this.serviceDays, new ServiceDay(graph, serviceDate.previous(),
                    calendarService, agency));
            addIfNotExists(this.serviceDays, new ServiceDay(graph, serviceDate, calendarService, agency));
            addIfNotExists(this.serviceDays, new ServiceDay(graph, serviceDate.next(),
                    calendarService, agency));
        }
View Full Code Here

Examples of org.openiaml.iacleaner.inline.InlineStringWriter.previous()

      if (c == '\r') continue;
     
      if (Character.isWhitespace(c) /* && Character.isWhitespace(prev) */) {
        // skip
      } else if (c == '-' && reader.readAhead() == '-') {
        if (prev != -1 && !Character.isWhitespace(writer.previous())) {
          // we need to add whitespace before this comment
          writer.write(' ');
        }
       
        // a comment
View Full Code Here

Examples of org.tmatesoft.sqljet.core.table.ISqlJetCursor.previous()

                Assert.assertTrue(cursor.getRowCount() == 3);
                Assert.assertFalse(cursor.next());
                // now at eof
                Assert.assertTrue(cursor.eof());

                Assert.assertTrue(cursor.previous());
                // at 2.
                Assert.assertTrue(cursor.getRowCount() == 3);
                Assert.assertFalse(cursor.eof());

                Assert.assertTrue(cursor.previous());
View Full Code Here

Examples of org.waveprotocol.wave.client.paging.Traverser.MoveablePoint.previous()

    List<Point> actual = new ArrayList<Point>();

    MoveablePoint point = SimpleMoveablePoint.endOf(root);
    actual.add(SimplePoint.at(point));
    while (point.hasPrevious()) {
      point.previous();
      actual.add(SimplePoint.at(point));
    }

    assertEquals(expected, actual);
  }
View Full Code Here

Examples of serp.bytecode.Code.previous()

     */
    private void enhanceConstructor(BCClass bc) {
        BCMethod cons = bc.getDeclaredMethod("<init>", (String[]) null);
        Code code = cons.getCode(false);
        code.afterLast();
        code.previous();

        // private BitSet loaded = new BitSet();
        BCField loaded = addBeanField(bc, "loaded", BitSet.class);
        loaded.setFinal(true);
        code.aload().setThis();
View Full Code Here

Examples of sun.text.normalizer.NormalizerBase.previous()

        NormalizerBase tempText = (NormalizerBase)text.clone();

        // extract the next maxLength characters in the string (we have to do this using the
        // Normalizer to ensure that our offsets correspond to those the rest of the
        // iterator is using) and store it in "fragment".
        tempText.previous();
        key.setLength(0);
        int c = tempText.next()
        while (maxLength > 0 && c != NormalizerBase.DONE) {
            if (Character.isSupplementaryCodePoint(c)) {
                key.append(Character.toChars(c));
View Full Code Here

Examples of sun.text.normalizer.NormalizerBase.previous()

        NormalizerBase tempText = (NormalizerBase)text.clone();

        tempText.next();
        key.setLength(0);
        int c = tempText.previous();
        while (maxLength > 0 && c != NormalizerBase.DONE) {
            if (Character.isSupplementaryCodePoint(c)) {
                key.append(Character.toChars(c));
                maxLength -= 2;
            } else {
View Full Code Here

Examples of sun.text.normalizer.NormalizerBase.previous()

                maxLength -= 2;
            } else {
                key.append((char)c);
                --maxLength;
            }
            c = tempText.previous();
        }
        String fragment = key.toString();

        maxLength = 1;
        for (int i = list.size() - 1; i > 0; i--) {
View Full Code Here

Examples of util.iterators.DisposableRangeIterator.previous()

        rit = var.getRangeIterator(false);
        Assert.assertTrue(rit.hasPrevious());
        Assert.assertEquals(3, rit.min());
        Assert.assertEquals(5, rit.max());
        rit.previous();
        Assert.assertTrue(rit.hasPrevious());
        Assert.assertEquals(0, rit.min());
        Assert.assertEquals(0, rit.max());
        rit.previous();
        Assert.assertTrue(rit.hasPrevious());
View Full Code Here

Examples of util.iterators.DisposableValueIterator.previous()

        Assert.assertFalse(vit.hasNext());
        vit.dispose();

        vit = var.getValueIterator(false);
        Assert.assertTrue(vit.hasPrevious());
        Assert.assertEquals(5, vit.previous());
        Assert.assertTrue(vit.hasPrevious());
        Assert.assertEquals(4, vit.previous());
        Assert.assertTrue(vit.hasPrevious());
        Assert.assertEquals(3, vit.previous());
        Assert.assertTrue(vit.hasPrevious());
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.