Package com.helger.commons.collection
Enum ECollectionBaseType
- java.lang.Object
-
- java.lang.Enum<ECollectionBaseType>
-
- com.helger.commons.collection.ECollectionBaseType
-
- All Implemented Interfaces:
Serializable,Comparable<ECollectionBaseType>
public enum ECollectionBaseType extends Enum<ECollectionBaseType>
This enum differentiates the different meta container types.- Author:
- Philip Helger
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ARRAYArraysCOLLECTIONThe collection type applies to all Collection objects that are not Sets, and will be compared in their regular order.ENUMERATIONEnumerationITERABLEIterableITERATORIteratorMAPMaps are key-value-containersSETSets represent unordered container
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ECollectionBaseTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ECollectionBaseType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
COLLECTION
public static final ECollectionBaseType COLLECTION
The collection type applies to all Collection objects that are not Sets, and will be compared in their regular order.
-
SET
public static final ECollectionBaseType SET
Sets represent unordered container
-
MAP
public static final ECollectionBaseType MAP
Maps are key-value-containers
-
ARRAY
public static final ECollectionBaseType ARRAY
Arrays
-
ITERATOR
public static final ECollectionBaseType ITERATOR
Iterator
-
ITERABLE
public static final ECollectionBaseType ITERABLE
Iterable
-
ENUMERATION
public static final ECollectionBaseType ENUMERATION
Enumeration
-
-
Method Detail
-
values
public static ECollectionBaseType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ECollectionBaseType c : ECollectionBaseType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ECollectionBaseType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-