VCollections – Release 1
Uses of Class org.violetlib.collections.ListUsage
-
-
Modifier and Type |
Method and Description |
static ListUsage |
ListUsage.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ListUsage[] |
ListUsage.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type |
Method and Description |
static <V> ListBuilder<V> |
IList.builder(ListUsage usage)
Return a new list builder that constructs lists supporting the specified usage.
|
static <V> Collector<V,ListBuilder<V>,IList<V>> |
IList.collector(ListUsage usage)
Return a new list builder that constructs lists supporting the specified usage.
|
static <V> IList<V> |
IList.create(ListUsage usage,
Iterable<? extends V> it)
Return a list containing the specified elements, optimized for the specified usage.
|
static <V> IList<V> |
IList.empty(ListUsage usage)
Return a list containing no elements.
|
abstract IList<V> |
IList.optimize(ListUsage usage)
Return an equivalent list whose representation efficiently supports the specified usage.
|