| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static <T extends @Nullable Object> T[] | |
| pack-priv static <E extends Enum | |
| pack-priv static <T extends @Nullable Object> T[] | newArray(T[]
any array of the desired type reference, int the length of the new array length)Returns a new array of the given length with the same type as a reference array. |
| pack-priv static <E> Set | |
| pack-priv static <K extends @Nullable Object, V extends @Nullable Object> Map | newHashMapWithExpectedSize(int expectedSize)
Returns the platform preferred implementation of a map based on a hash table. |
| pack-priv static <E extends @Nullable Object> Set | newHashSetWithExpectedSize(int expectedSize)
Returns the platform preferred implementation of a set based on a hash table. |
| pack-priv static <K extends @Nullable Object, V extends @Nullable Object> Map | newLinkedHashMapWithExpectedSize(int expectedSize)
Returns the platform preferred implementation of an insertion ordered map based on a hash table. |
| pack-priv static <E extends @Nullable Object> Set | newLinkedHashSetWithExpectedSize(int expectedSize)
Returns the platform preferred implementation of an insertion ordered set based on a hash table. |
| pack-priv static <E extends @Nullable Object> Set | preservesInsertionOrderOnAddsSet()
Returns the platform preferred set implementation that preserves insertion order when used only for insertions. |
| pack-priv static <K extends @Nullable Object, V extends @Nullable Object> Map | preservesInsertionOrderOnPutsMap()
Returns the platform preferred map implementation that preserves insertion order when used only for insertions. |
| pack-priv static int | |
| pack-priv static int | |
| pack-priv static MapMaker | tryWeakKeys(MapMaker mapMaker)
Configures the given map maker to use weak keys, if possible; does nothing otherwise (i.e., in GWT). |
| logger | back to summary |
|---|---|
| private static final Logger logger | |
| Platform | back to summary |
|---|---|
| private Platform() | |
| copy | back to summary |
|---|---|
| pack-priv static <T extends @Nullable Object> T[] copy(Object[] source, int from, int to, T[] arrayOfType) Equivalent to Arrays.copyOfRange(source, from, to, arrayOfType.getClass()).
| |
| getDeclaringClassOrObjectForJ2cl | back to summary |
|---|---|
| pack-priv static <E extends Enum | |
| newArray | back to summary |
|---|---|
| pack-priv static <T extends @Nullable Object> T[] newArray(T[] reference, int length) Returns a new array of the given length with the same type as a reference array.
| |
| newConcurrentHashSet | back to summary |
|---|---|
| pack-priv static <E> Set Returns the platform preferred implementation of a thread-safe hash set. | |
| newHashMapWithExpectedSize | back to summary |
|---|---|
| pack-priv static <K extends @Nullable Object, V extends @Nullable Object> Map Returns the platform preferred implementation of a map based on a hash table. | |
| newHashSetWithExpectedSize | back to summary |
|---|---|
| pack-priv static <E extends @Nullable Object> Set Returns the platform preferred implementation of a set based on a hash table. | |
| newLinkedHashMapWithExpectedSize | back to summary |
|---|---|
| pack-priv static <K extends @Nullable Object, V extends @Nullable Object> Map Returns the platform preferred implementation of an insertion ordered map based on a hash table. | |
| newLinkedHashSetWithExpectedSize | back to summary |
|---|---|
| pack-priv static <E extends @Nullable Object> Set Returns the platform preferred implementation of an insertion ordered set based on a hash table. | |
| preservesInsertionOrderOnAddsSet | back to summary |
|---|---|
| pack-priv static <E extends @Nullable Object> Set Returns the platform preferred set implementation that preserves insertion order when used only for insertions. | |
| preservesInsertionOrderOnPutsMap | back to summary |
|---|---|
| pack-priv static <K extends @Nullable Object, V extends @Nullable Object> Map Returns the platform preferred map implementation that preserves insertion order when used only for insertions. | |
| reduceExponentIfGwt | back to summary |
|---|---|
| pack-priv static int reduceExponentIfGwt(int exponent) | |
| reduceIterationsIfGwt | back to summary |
|---|---|
| pack-priv static int reduceIterationsIfGwt(int iterations) | |
| tryWeakKeys | back to summary |
|---|---|
| pack-priv static MapMaker tryWeakKeys(MapMaker mapMaker) Configures the given map maker to use weak keys, if possible; does nothing otherwise (i.e., in GWT). This is sometimes acceptable, when only server-side code could generate enough volume that reclamation becomes important.
| |