@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 <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 MapMaker |
tryWeakKeys(MapMaker mapMaker)
Configures the given map maker to use weak keys, if possible; does nothing
otherwise (i.e., in GWT).
|