| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| private static boolean | checkCollectionMembers(Collection<?> c, Class<?> type)
Dynamically check that the members of the collection are all instances of the given type (or null). |
| pack-priv static < the collection's element type E, TypedC extends Collection | Returns: the dynamically-type checked collection.the collection to cast c, Class<E> the class of the collection's element type. type, Class<TypedC> collectionType)Dynamically check that the members of the collection are all instances of the given type (or null), and that the collection itself is of the given collection type. |
| pack-priv static < the list's element type E> List | Returns: the dynamically-type checked list.the list to cast list, Class<E> the class of the list's element type. type)Dynamically check that the members of the list are all instances of the given type (or null). |
| pack-priv static < the map's key type K, the map's value type V> Map | Returns: the dynamically-type checked map.the map to cast map, Class<K> the class of the map's key type. keyType, Class<V> the class of the map's value type. valueType)Dynamically check that the keys and values in the map are all instances of the correct types (or null). |
| pack-priv static < the set's element type E> Set | Returns: the dynamically-type checked set.the set to cast set, Class<E> the class of the set's element type. type)Dynamically check that the members of the set are all instances of the given type (or null). |
| TypedCollections | back to summary |
|---|---|
| pack-priv TypedCollections() | |
| checkCollectionMembers | back to summary |
|---|---|
| private static boolean checkCollectionMembers(Collection<?> c, Class<?> type) Dynamically check that the members of the collection are all instances of the given type (or null). | |
| dynamicallyCastCollection | back to summary |
|---|---|
| pack-priv static <E, TypedC extends Collection Dynamically check that the members of the collection are all instances of the given type (or null), and that the collection itself is of the given collection type.
| |
| dynamicallyCastList | back to summary |
|---|---|
| pack-priv static <E> List Dynamically check that the members of the list are all instances of the given type (or null).
| |
| dynamicallyCastMap | back to summary |
|---|---|
| pack-priv static <K, V> Map Dynamically check that the keys and values in the map are all instances of the correct types (or null).
| |
| dynamicallyCastSet | back to summary |
|---|---|
| pack-priv static <E> Set Dynamically check that the members of the set are all instances of the given type (or null).
| |