Enum Class CollectionKind
- All Implemented Interfaces:
Serializable
,Comparable<CollectionKind>
,Constable
@ClassVersion(sourceVersion="$Id: CollectionKind.java 1002 2022-02-01 21:33:00Z tquadrat $")
@API(status=INTERNAL,
since="0.1.0")
public enum CollectionKind
extends Enum<CollectionKind>
The kind of collection for a property type that is a collection.
- Author:
- Thomas Thrien (thomas.thrien@tquadrat.org)
- Version:
- $Id: CollectionKind.java 1002 2022-02-01 21:33:00Z tquadrat $
- Since:
- 0.1.0
- UML Diagram
-
UML Diagram for "org.tquadrat.foundation.config.ap.CollectionKind"
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe type is a List.The type is a Map.The type is not a collection at all.The type is a Set. -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
CollectionKind
(TypeName accessor) Creates a newCollectionKind
instance. -
Method Summary
Modifier and TypeMethodDescriptionfinal TypeName
Returns the accessor type for the collection kind.static CollectionKind
Returns the enum constant of this class with the specified name.static CollectionKind[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
LIST
The type is a List. -
MAP
The type is a Map. -
SET
The type is a Set. -
NO_COLLECTION
The type is not a collection at all.
-
-
Field Details
-
m_AccessorType
The type name for the accessor.
-
-
Constructor Details
-
CollectionKind
Creates a newCollectionKind
instance.- Parameters:
accessor
- The type name for the accessor.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getAccessorType
Returns the accessor type for the collection kind.- Returns:
- The accessor type.
-