/** * Retrieve a Java wrapper for the corresponding Trove list. * @param <TValue> Type * @param troveList - the trove list to wrap. * @return The wrapped GNU Trove list. * @throws IllegalStateException If GNU Trove cannot be found in the class map. * @throws IllegalArgumentException If troveList is NULL. * @throws FieldAccessException Error in wrapper method or lack of reflection permissions. */ public static <TValue> List<TValue> getDecoratedList(@Nonnull Object troveList) { @SuppressWarnings("unchecked") List<TValue> result = (List<TValue>) getDecorated(troveList); return result; }
/** * Retrieve a Java wrapper for the corresponding Trove set. * @param <TValue> Type * @param troveSet - the trove set to wrap. * @return The wrapped GNU Trove set. * @throws IllegalStateException If GNU Trove cannot be found in the class map. * @throws IllegalArgumentException If troveSet is NULL. * @throws FieldAccessException Error in wrapper method or lack of reflection permissions. */ public static <TValue> Set<TValue> getDecoratedSet(@Nonnull Object troveSet) { @SuppressWarnings("unchecked") Set<TValue> result = (Set<TValue>) getDecorated(troveSet); return result; }
/** * Retrieve a Java wrapper for the corresponding Trove map. * @param <TKey> Key type * @param <TValue> Value type * @param troveMap - the trove map to wrap. * @return The wrapped GNU Trove map. * @throws IllegalStateException If GNU Trove cannot be found in the class map. * @throws IllegalArgumentException If troveMap is NULL. * @throws FieldAccessException Error in wrapper method or lack of reflection permissions. */ public static <TKey, TValue> Map<TKey, TValue> getDecoratedMap(@Nonnull Object troveMap) { @SuppressWarnings("unchecked") Map<TKey, TValue> result = (Map<TKey, TValue>) getDecorated(troveMap); return result; }