Package com.macrofocus.utils
Class RandomAccessIterables
- java.lang.Object
-
- com.macrofocus.utils.RandomAccessIterables
-
public class RandomAccessIterables extends java.lang.Object
Created by luc on 25.04.17.
-
-
Constructor Summary
Constructors Constructor Description RandomAccessIterables()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RandomAccessIterable<java.lang.Integer>
forArray(int... array)
static <T> RandomAccessIterable<T>
forArray(T... array)
static <T> RandomAccessIterable<T>
forList(java.util.List<T> array)
static <T> RandomAccessIterable<T>
forMap(IndexedNavigableMap<T,?> array)
static <T> RandomAccessIterable<T>
forMap(java.util.Map<T,?> array)
static <T> java.lang.Iterable<T>
sort(RandomAccessIterable<T> values)
static java.lang.String[]
sortToString(RandomAccessIterable<java.lang.Object> values)
static <T> java.util.ArrayList<T>
toArrayList(RandomAccessIterable<T> iterable)
-
-
-
Method Detail
-
forMap
public static <T> RandomAccessIterable<T> forMap(java.util.Map<T,?> array)
-
forMap
public static <T> RandomAccessIterable<T> forMap(IndexedNavigableMap<T,?> array)
-
forList
public static <T> RandomAccessIterable<T> forList(java.util.List<T> array)
-
forArray
public static RandomAccessIterable<java.lang.Integer> forArray(int... array)
-
forArray
public static <T> RandomAccessIterable<T> forArray(T... array)
-
toArrayList
public static <T> java.util.ArrayList<T> toArrayList(RandomAccessIterable<T> iterable)
-
sortToString
public static java.lang.String[] sortToString(RandomAccessIterable<java.lang.Object> values)
-
sort
public static <T> java.lang.Iterable<T> sort(RandomAccessIterable<T> values)
-
-