public enum Cardinality extends Enum<Cardinality>
| Enum Constant and Description |
|---|
LIST
Multiple values and duplicate values may be associated with the given key.
|
SET
Multiple but distinct values may be associated with the given key.
|
SINGLE
Only a single value may be associated with the given key.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.tinkerpop.gremlin.structure.VertexProperty.Cardinality |
convert() |
static Cardinality |
convert(org.apache.tinkerpop.gremlin.structure.VertexProperty.Cardinality cardinality) |
static Cardinality |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Cardinality[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Cardinality SINGLE
public static final Cardinality LIST
public static final Cardinality SET
public static Cardinality[] values()
for (Cardinality c : Cardinality.values()) System.out.println(c);
public static Cardinality valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic org.apache.tinkerpop.gremlin.structure.VertexProperty.Cardinality convert()
public static Cardinality convert(org.apache.tinkerpop.gremlin.structure.VertexProperty.Cardinality cardinality)
Copyright © 2012–2015. All rights reserved.