Package com.helger.regrep.slot
Enum ERegRepCollectionType
- java.lang.Object
-
- java.lang.Enum<ERegRepCollectionType>
-
- com.helger.regrep.slot.ERegRepCollectionType
-
- All Implemented Interfaces:
com.helger.commons.id.IHasID<String>,Serializable,Comparable<ERegRepCollectionType>
public enum ERegRepCollectionType extends Enum<ERegRepCollectionType> implements com.helger.commons.id.IHasID<String>
Enumeration with collection types.- Author:
- Philip Helger
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BAGLISTSETSORTED_SET
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ERegRepCollectionTypegetFromIDOrNull(String sID)StringgetID()static ERegRepCollectionTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ERegRepCollectionType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BAG
public static final ERegRepCollectionType BAG
-
LIST
public static final ERegRepCollectionType LIST
-
SET
public static final ERegRepCollectionType SET
-
SORTED_SET
public static final ERegRepCollectionType SORTED_SET
-
-
Method Detail
-
values
public static ERegRepCollectionType[] 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 (ERegRepCollectionType c : ERegRepCollectionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ERegRepCollectionType 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
-
getID
@Nonnull @Nonempty public String getID()
- Specified by:
getIDin interfacecom.helger.commons.id.IHasID<String>
-
getFromIDOrNull
@Nullable public static ERegRepCollectionType getFromIDOrNull(@Nullable String sID)
-
-