Examples of previous()


Examples of org.apache.tuscany.das.rdb.impl.PagerImpl.previous()

    customer2 = root.getDataObject("CUSTOMER[2]");
    assertEquals(3, customer1.getInt("ID"));
    assertEquals(4, customer2.getInt("ID"));
   
    // First page again
    root = pager.previous();
    customer1 = root.getDataObject("CUSTOMER[1]");
    customer2 = root.getDataObject("CUSTOMER[2]");
    assertEquals(1, customer1.getInt("ID"));
    assertEquals(2, customer2.getInt("ID"));
View Full Code Here

Examples of org.eclipse.xtext.parsetree.reconstr.impl.NodeIterator.previous()

    List<ILeafNode> currentComments = new ArrayList<ILeafNode>();

    NodeIterator nodeIterator = new NodeIterator(rootNode);
    // rewind to previous token with token owner
    while(nodeIterator.hasPrevious() && currentEObject == null) {
      INode node = nodeIterator.previous();
      if(tokenUtil.isToken(node)) {
        currentEObject = tokenUtil.getTokenOwner(node);
      }
    }
    while(nodeIterator.hasNext()) {
View Full Code Here

Examples of org.hibernate.ScrollableResults.previous()

    assertFalse( results.next() );
    assertFalse( results.isFirst() );
    assertFalse( results.isLast() );

    assertFalse( results.previous() );
    assertFalse( results.isFirst() );
    assertFalse( results.isLast() );

    results.beforeFirst();
    assertFalse( results.isFirst() );
View Full Code Here

Examples of org.jfree.data.time.Month.previous()

                        this.locale);
                Date standardDate = calculateDateForPosition(
                        month, this.tickMarkPosition);
                long millis = standardDate.getTime();
                if (millis >= date.getTime()) {
                    month = (Month) month.previous();
                    // need to peg the month in case the time zone isn't the
                    // default - see bug 2078057
                    month.peg(Calendar.getInstance(this.timeZone));
                    standardDate = calculateDateForPosition(
                            month, this.tickMarkPosition);
View Full Code Here

Examples of org.jfree.data.time.Quarter.previous()

        public static Calendar[] getLastQuarter(Calendar referenceCalendar) {
            Quarter quarter = new Quarter(referenceCalendar.getTime());
            Calendar startCal = getInstance();
            Calendar endCal = getInstance();
            long start = quarter.previous().getFirstMillisecond(getInstance());
            long end = quarter.previous().getLastMillisecond(getInstance());
            startCal.setTimeInMillis(start);
            endCal.setTimeInMillis(end);
            return new Calendar[] {startCal, endCal};
        }
View Full Code Here

Examples of org.jfree.data.time.RegularTimePeriod.previous()

        TimeSeries series = new TimeSeries(name, start.getClass());
        RegularTimePeriod period = start;
        double value = base;
        for (int i = 0; i < count; i++) {
            series.add(period, value);
            period = period.previous();
            value = value * (1 + (Math.random() - 0.495) / 10.0);
        }

        TimeSeriesCollection dataset = new TimeSeriesCollection();
        dataset.addSeries(series);
View Full Code Here

Examples of org.jitterbit.ui.graph.NavigationOrder.previous()

        protected void run(Object selected, ActionEvent evt) {
            NavigationOrder navigationOrder = graph.getNavigationOrder();
            if (navigationOrder == null) {
                return;
            }
            Object o = direction > 0 ? navigationOrder.next(selected) : navigationOrder.previous(selected);
            if (o != null && o != selected) {
                List<Object> newSelection = KongaListUtils.asList(o);
                graph.getSelectionModel().setSelection(newSelection);
                graph.getLayout().moveToTop(o);
                graph.ensureNodeIsVisible(o);
View Full Code Here

Examples of org.jmathml.TokenStream.TokenIterator.previous()

  public final void testIteratorPrevious() {
    TokenStream str = tokenizer.tokenize(test1);
    TokenIterator tokIt = str.iterator();
 
    assertEquals("vara",tokIt.next().getString() );
    assertNull(tokIt.previous());
    tokIt.next();
    assertEquals("vara",tokIt.previous().getString() );
   
  }
 
View Full Code Here

Examples of org.jwall.audit.script.utils.ListIteratorImpl.previous()

    Assert.assertNotNull(evt);

    AuditEvent first = database.getRealList().get(0);

    it.next();
    it.previous();
    evt = it.previous();
    Assert.assertEquals(first.get(ModSecurity.TX_ID),
        evt.get(ModSecurity.TX_ID));
  }
View Full Code Here

Examples of org.ofbiz.entity.util.EntityListIterator.previous()

            // check if we have hit the limit on number of password changes to be saved. If we did then delete the oldest password from history.
            eli.last();
            int rowIndex = eli.currentIndex();
            if (rowIndex==passwordChangeHistoryLimit) {
                eli.afterLast();
                pwdHist = eli.previous();
                pwdHist.remove();
            }
        }
        eli.close();
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.