public enum CollectionType extends java.lang.Enum<CollectionType> implements Type
Enum Constant and Description |
---|
ORDER
CollectionType Order, like a set, but with ordering.
|
SEQUENCE
CollectionType Sequence, ordered and allows to contain values multiple times.
|
SET
CollectionType Set, each value can only appear once, ordering does not matter.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Class<?> |
getTypeClass()
Gets the type class.
|
static CollectionType |
getTypeFor(java.lang.Class<?> typeClass)
Returns the CollectionType based on a typeClass.
|
static CollectionType |
parseCollectionType(java.lang.String input) |
java.lang.String |
toKey()
Returns the key of this type as string.
|
java.lang.String |
toString()
Returns the key of this type as string.
|
static CollectionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CollectionType[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
|
public static final CollectionType ORDER
public static final CollectionType SEQUENCE
public static final CollectionType SET
public java.lang.Class<?> getTypeClass()
Type
getTypeClass
in interface Type
public static CollectionType getTypeFor(java.lang.Class<?> typeClass)
typeClass
- Use this typeClass to derive the CollectionTypepublic static CollectionType parseCollectionType(java.lang.String input)
public java.lang.String toKey()
Type
public java.lang.String toString()
toKey()
.toString
in class java.lang.Enum<CollectionType>
public static CollectionType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static CollectionType[] values()
for (CollectionType c : CollectionType.values()) System.out.println(c);
Copyright © 2016, 2017 Oracle Corp. All Rights Reserved.