|
Modifier and Type |
Static Method and Description |
 |
builder   |
static <K,V> MapBuilder<K,V> builder()
Return a new map builder.
-
Return a new map builder.
|
 |
builder   |
static <K,V> MapBuilder<K,V> builder(Option option)
Return a new map builder.
static <K,V> MapBuilder<K,V> builder(Option option)
-
Return a new map builder.
- Parameters:
option - If option is ORDERED , the iteration order of the map will be based on the order in which
the keys were first added.
|
 |
cast   |
static <K,V> IMap<K,V> cast(IMap<?,?> o)
Cast a map to a specific type.
static <K,V> IMap<K,V> cast( IMap<?,?> o)
-
Cast a map to a specific type. This method is no more reliable than an explicit type cast, but it prevents the
warning.
|
 |
create   |
static <K,V> IMap<K,V> create(Map<? extends K,? extends V> map)
Return a map containing the specified bindings.
static <K,V> IMap<K,V> create(Map<? extends K,? extends V> map)
-
Return a map containing the specified bindings.
|
 |
createWeak   |
static <K,V> IMap<K,V> createWeak(Map<? extends K,? extends V> map)
Return a map containing the specified bindings using weak references to the keys.
static <K,V> IMap<K,V> createWeak(Map<? extends K,? extends V> map)
-
Return a map containing the specified bindings using weak references to the keys.
|
 |
empty   |
static <K,V> IMap<K,V> empty()
Return a map containing no bindings.
static <K,V> IMap<K,V> empty()
-
Return a map containing no bindings.
|
 |
from   |
static <T> IIterable<T> from(Iterable<T> it)
Create an IIterable from an Iterable .
-
Create an IIterable from an Iterable . The iterators produced by the returned IIterable
will throw a runtime exception if an iterator produced by the Iterable returns a null value.
- Parameters:
it - The source iterable.
|
 |
mapListBuilder   |
static <K,V> UnorderedMapListBuilder<K,V> mapListBuilder()
Return a new map list builder.
-
Return a new map list builder.
|
 |
mapListBuilder   |
static <K,V> MapListBuilder<K,V> mapListBuilder(Option option)
Return a new map list builder.
-
Return a new map list builder.
- Parameters:
option - If option is ORDERED , the iteration order of the map list will be based on the order in
which keys and elements were first added.
|
 |
mapSetBuilder   |
static <K,V> MapSetBuilder<K,V> mapSetBuilder()
Return a new map set builder.
-
Return a new map set builder.
|
 |
mapSetBuilder   |
static <K,V> MapSetBuilder<K,V> mapSetBuilder(Option option)
Return a new map set builder.
-
Return a new map set builder.
- Parameters:
option - If option is ORDERED , the iteration order of the map set will be based on the order in
which keys and elements were first added.
|
 |
of   |
static <K,V> IMap<K,V> of(Binding<? extends K,? extends V> binding)
Return a map containing one binding.
static <K,V> IMap<K,V> of( Binding<? extends K,? extends V> binding)
-
Return a map containing one binding.
|
 |
singleton   |
static <K,V> IMap<K,V> singleton(K key,
V value)
Return a map containing one binding.
static <K,V> IMap<K,V> singleton(K key,
V value)
-
Return a map containing one binding.
|