Search in sources :

Example 6 with TDoubleList

use of gnu.trove.list.TDoubleList in project Terasology by MovingBlocks.

the class TroveUtils method intToDouble.

public static TDoubleList intToDouble(TIntList list) {
    TDoubleList result = new TDoubleArrayList(list.size());
    TIntIterator iterator = list.iterator();
    while (iterator.hasNext()) {
        int i = iterator.next();
        result.add(i);
    }
    return result;
}
Also used : TDoubleList(gnu.trove.list.TDoubleList) TIntIterator(gnu.trove.iterator.TIntIterator) TDoubleArrayList(gnu.trove.list.array.TDoubleArrayList)

Aggregations

TDoubleList (gnu.trove.list.TDoubleList)6 TDoubleArrayList (gnu.trove.list.array.TDoubleArrayList)5 VisibleForTesting (com.google.common.annotations.VisibleForTesting)1 com.google.common.collect (com.google.common.collect)1 Coordinate (com.vividsolutions.jts.geom.Coordinate)1 Envelope (com.vividsolutions.jts.geom.Envelope)1 Geometry (com.vividsolutions.jts.geom.Geometry)1 TFloatIterator (gnu.trove.iterator.TFloatIterator)1 TIntIterator (gnu.trove.iterator.TIntIterator)1 TLongIterator (gnu.trove.iterator.TLongIterator)1 TDoubleLinkedList (gnu.trove.list.linked.TDoubleLinkedList)1 java.io (java.io)1 java.util (java.util)1 ConcurrentHashMap (java.util.concurrent.ConcurrentHashMap)1 Preferences (java.util.prefs.Preferences)1 Median (org.apache.commons.math3.stat.descriptive.rank.Median)1 DateTime (org.joda.time.DateTime)1 CalendarServiceImpl (org.onebusaway.gtfs.impl.calendar.CalendarServiceImpl)1 Agency (org.onebusaway.gtfs.model.Agency)1 AgencyAndId (org.onebusaway.gtfs.model.AgencyAndId)1