Package org.jboss.util.collection

Examples of org.jboss.util.collection.ReverseListIterator


  }

  protected List<Double> getValues(List<ProjectMeasure> measures) {
    List<Double> result = new ArrayList<Double>();
    Calendar lastDay = null;
    for (Iterator it = new ReverseListIterator(measures); it.hasNext();) {
      ProjectMeasure measure = (ProjectMeasure) it.next();
      Calendar day = getDay(measure.getSnapshot().getCreatedAt());
      if (lastDay == null || day.before(lastDay)) {
        result.add(measure.getValue());
      }
      lastDay = day;
View Full Code Here

TOP

Related Classes of org.jboss.util.collection.ReverseListIterator

Copyright © 2018 www.massapicom. 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.