@GwtCompatible(emulated=true) final class Platform extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
Platform() |
Modifier and Type | Method and Description |
---|---|
(package private) static <K,V> java.util.SortedMap<K,V> |
mapsAsMapSortedSet(java.util.SortedSet<K> set,
Function<? super K,V> function) |
(package private) static <K,V> java.util.SortedMap<K,V> |
mapsFilterSortedMap(java.util.SortedMap<K,V> map,
Predicate<? super java.util.Map.Entry<K,V>> predicate) |
(package private) static <K,V1,V2> java.util.SortedMap<K,V2> |
mapsTransformEntriesSortedMap(java.util.SortedMap<K,V1> fromMap,
Maps.EntryTransformer<? super K,? super V1,V2> transformer) |
(package private) static <T> T[] |
newArray(T[] reference,
int length)
Returns a new array of the given length with the same type as a reference
array.
|
(package private) static <E> java.util.Set<E> |
newSetFromMap(java.util.Map<E,java.lang.Boolean> map) |
(package private) static <E> java.util.SortedSet<E> |
setsFilterSortedSet(java.util.SortedSet<E> set,
Predicate<? super E> predicate) |
(package private) static MapMaker |
tryWeakKeys(MapMaker mapMaker)
Configures the given map maker to use weak keys, if possible; does nothing
otherwise (i.e., in GWT).
|
static <T> T[] newArray(T[] reference, int length)
reference
- any array of the desired typelength
- the length of the new arraystatic <E> java.util.Set<E> newSetFromMap(java.util.Map<E,java.lang.Boolean> map)
static MapMaker tryWeakKeys(MapMaker mapMaker)
static <K,V1,V2> java.util.SortedMap<K,V2> mapsTransformEntriesSortedMap(java.util.SortedMap<K,V1> fromMap, Maps.EntryTransformer<? super K,? super V1,V2> transformer)
static <K,V> java.util.SortedMap<K,V> mapsAsMapSortedSet(java.util.SortedSet<K> set, Function<? super K,V> function)
static <E> java.util.SortedSet<E> setsFilterSortedSet(java.util.SortedSet<E> set, Predicate<? super E> predicate)
static <K,V> java.util.SortedMap<K,V> mapsFilterSortedMap(java.util.SortedMap<K,V> map, Predicate<? super java.util.Map.Entry<K,V>> predicate)