Package com.mastfrog.abstractions.list
Interface IndexedResolvable<T>
- All Superinterfaces:
Indexed<T>,IntAddressable<T>,IntResolvable,IntSized
A minimal list-like abstraction of a List that lets items be retrieved by
index.
- Author:
- Tim Boudreau
-
Method Summary
Modifier and TypeMethodDescriptiondefault Collection<T>static <T> IndexedResolvable<T>compose(IntAddressable<T> lookup, int size, IntResolvable reverseLookup) static <T> IndexedResolvable<T>compose(IntAddressable<T> lookup, IntSupplier size, IntResolvable reverseLookup) static <T> IndexedResolvable<T>static IndexedResolvable<String>forSortedStringArray(String... strings) static IndexedResolvable<String>forStringList(List<String> set) static IndexedResolvable<String>forStringSet(Set<String> set) static <T extends Comparable<T>>
IndexedResolvable<T>fromArray(T[] arr) static <T extends Comparable<? super T>>
IndexedResolvable<T>fromCollection(Class<T> type, Collection<? extends T> coll) static <T> IndexedResolvable<T>fromCollection(Class<T> type, Collection<? extends T> coll, Comparator<? super T> comp) static <T> IndexedResolvable<T>static <T> IndexedResolvable<T>fromPreSortedArray(T[] arr) toList()default LongIndexedResolvable<T>Methods inherited from interface com.mastfrog.abstractions.list.Indexed
toIterable, toIterator, toLongIndexedMethods inherited from interface com.mastfrog.abstractions.list.IntAddressable
forIndex, toLongAddressableMethods inherited from interface com.mastfrog.abstractions.list.IntResolvable
indexOf, toLongResolvableMethods inherited from interface com.mastfrog.abstractions.list.IntSized
size, toLongSized
-
Method Details
-
fromList
-
compose
static <T> IndexedResolvable<T> compose(IntAddressable<T> lookup, int size, IntResolvable reverseLookup) -
fromArray
-
fromPreSortedArray
-
fromCollection
static <T extends Comparable<? super T>> IndexedResolvable<T> fromCollection(Class<T> type, Collection<? extends T> coll) -
fromCollection
static <T> IndexedResolvable<T> fromCollection(Class<T> type, Collection<? extends T> coll, Comparator<? super T> comp) -
compose
static <T> IndexedResolvable<T> compose(IntAddressable<T> lookup, IntSupplier size, IntResolvable reverseLookup) -
asIterable
-
populate
-
toList
-
forSortedStringArray
-
forStringSet
-
forStringList
-
forList
-
asCollection
-
toLongIndexedResolvable
-