public class TroveWrapper
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
TroveWrapper.CannotFindTroveNoEntryValue |
| Constructor and Description |
|---|
TroveWrapper() |
| Modifier and Type | Method and Description |
|---|---|
static <TValue> java.util.List<TValue> |
getDecoratedList(java.lang.Object troveList)
Retrieve a Java wrapper for the corresponding Trove list.
|
static <TKey,TValue> |
getDecoratedMap(java.lang.Object troveMap)
Retrieve a Java wrapper for the corresponding Trove map.
|
static <TValue> java.util.Set<TValue> |
getDecoratedSet(java.lang.Object troveSet)
Retrieve a Java wrapper for the corresponding Trove set.
|
static boolean |
isTroveClass(java.lang.Class<?> clazz)
Determine if the given class is found within gnu.trove.
|
static void |
transformNoEntryValue(java.lang.Object troveMap,
com.google.common.base.Function<java.lang.Integer,java.lang.Integer> transform)
Transform the no entry value in the given map.
|
static ReadOnlyFieldAccessor |
wrapListField(FieldAccessor accessor)
Retrieve a read-only field accessor that automatically wraps the underlying Trove instance.
|
static ReadOnlyFieldAccessor |
wrapMapField(FieldAccessor accessor)
Retrieve a read-only field accessor that automatically wraps the underlying Trove instance.
|
static ReadOnlyFieldAccessor |
wrapMapField(FieldAccessor accessor,
com.google.common.base.Function<java.lang.Integer,java.lang.Integer> noEntryTransform)
Retrieve a read-only field accessor that automatically wraps the underlying Trove instance.
|
static ReadOnlyFieldAccessor |
wrapSetField(FieldAccessor accessor)
Retrieve a read-only field accessor that automatically wraps the underlying Trove instance.
|
public static ReadOnlyFieldAccessor wrapMapField(FieldAccessor accessor)
accessor - - the accessor.public static ReadOnlyFieldAccessor wrapMapField(FieldAccessor accessor, com.google.common.base.Function<java.lang.Integer,java.lang.Integer> noEntryTransform)
accessor - - the accessor.noEntryTransform - - transform the no entry value, or NULL to ignore.public static ReadOnlyFieldAccessor wrapSetField(FieldAccessor accessor)
accessor - - the accessor.public static ReadOnlyFieldAccessor wrapListField(FieldAccessor accessor)
accessor - - the accessor.public static <TKey,TValue> java.util.Map<TKey,TValue> getDecoratedMap(@Nonnull
java.lang.Object troveMap)
troveMap - - the trove map to wrap.java.lang.IllegalStateException - If GNU Trove cannot be found in the class map.java.lang.IllegalArgumentException - If troveMap is NULL.FieldAccessException - Error in wrapper method or lack of reflection permissions.public static <TValue> java.util.Set<TValue> getDecoratedSet(@Nonnull
java.lang.Object troveSet)
troveSet - - the trove set to wrap.java.lang.IllegalStateException - If GNU Trove cannot be found in the class map.java.lang.IllegalArgumentException - If troveSet is NULL.FieldAccessException - Error in wrapper method or lack of reflection permissions.public static <TValue> java.util.List<TValue> getDecoratedList(@Nonnull
java.lang.Object troveList)
troveList - - the trove list to wrap.java.lang.IllegalStateException - If GNU Trove cannot be found in the class map.java.lang.IllegalArgumentException - If troveList is NULL.FieldAccessException - Error in wrapper method or lack of reflection permissions.public static boolean isTroveClass(java.lang.Class<?> clazz)
clazz - - the clazz.public static void transformNoEntryValue(java.lang.Object troveMap,
com.google.common.base.Function<java.lang.Integer,java.lang.Integer> transform)
troveMap - - the trove map.transform - - the transform.