Mainly for internal use within the framework.
| Modifier and Type | Field and Description |
|---|---|
| private static final Set | |
| private static final Set |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static Class | Returns: the given type as subtype ofEnumthe enum type, never enumType)nullCast the given type to a subtype of |
| public static <E> Collection | Returns: a new, empty collection instancethe original collection object, potentially collection, int nullthe initial capacity capacity)Create the most approximate collection for the given collection. |
| public static <K, V> Map | Returns: a new, empty map instancethe original map object, potentially map, int nullthe initial capacity capacity)Create the most approximate map for the given map. |
| public static <E> Collection | Returns: a new collection instancethe desired type of the target collection (never collectionType, int null)the initial capacity capacity)Create the most appropriate collection for the given collection type. |
| public static <E> Collection | Returns: a new collection instancethe desired type of the target collection (never collectionType, Class<?> null)the collection's element type, or elementType, int null if unknown
(note: only relevant for EnumSet creation)the initial capacity capacity)Create the most appropriate collection for the given collection type. |
| public static <K, V> Map | |
| public static <K, V> Map | |
| public static Properties | Returns: a newProperties instancetrue if comments should be omitted when
storing properties in a fileCreate a variant of |
| public static Properties | Returns: a newProperties instancethe properties, boolean Properties object from which to copy the
initial propertiestrue if comments should be omitted when
storing properties in a fileCreate a variant of |
| public static Properties | Returns: a newProperties instanceCreate a variant of |
| public static boolean | Returns: true if the type is approximablethe collection type to check collectionType)Determine whether the given collection type is an approximable type,
i.e. a type that |
| public static boolean | Returns: true if the type is approximablethe map type to check mapType)Determine whether the given map type is an approximable type,
i.e. a type that |
| approximableCollectionTypes | back to summary |
|---|---|
| private static final Set<Class<?>> approximableCollectionTypes | |
| approximableMapTypes | back to summary |
|---|---|
| private static final Set<Class<?>> approximableMapTypes | |
| CollectionFactory | back to summary |
|---|---|
| private CollectionFactory() | |
| asEnumType | back to summary |
|---|---|
| private static Class Cast the given type to a subtype of
| |
| createApproximateCollection | back to summary |
|---|---|
| public static <E> Collection Create the most approximate collection for the given collection. Warning Since the parameterized type
| |
| createApproximateMap | back to summary |
|---|---|
| public static <K, V> Map Create the most approximate map for the given map. Warning Since the parameterized type
| |
| createCollection | back to summary |
|---|---|
| public static <E> Collection Create the most appropriate collection for the given collection type. Delegates to
| |
| createCollection | back to summary |
|---|---|
| public static <E> Collection Create the most appropriate collection for the given collection type. Warning Since the parameterized type
| |
| createMap | back to summary |
|---|---|
| public static <K, V> Map Create the most appropriate map for the given map type. Delegates to
| |
| createMap | back to summary |
|---|---|
| public static <K, V> Map Create the most appropriate map for the given map type. Warning Since the parameterized type
| |
| createSortedProperties | back to summary |
|---|---|
| public static Properties createSortedProperties(boolean omitComments) Create a variant of This can be useful when storing the
| |
| createSortedProperties | back to summary |
|---|---|
| public static Properties createSortedProperties(Properties properties, boolean omitComments) Create a variant of This can be useful when storing the The returned
| |
| createStringAdaptingProperties | back to summary |
|---|---|
| public static Properties createStringAdaptingProperties() Create a variant of In addition, the returned
| |
| isApproximableCollectionType | back to summary |
|---|---|
| public static boolean isApproximableCollectionType(Class<?> collectionType) Determine whether the given collection type is an approximable type,
i.e. a type that
| |
| isApproximableMapType | back to summary |
|---|---|
| public static boolean isApproximableMapType(Class<?> mapType) Determine whether the given map type is an approximable type,
i.e. a type that
| |