public enum Multiplicity extends Enum<Multiplicity>
Enum Constant and Description |
---|
ONE
Match exactly once.
|
ZERO_OR_MORE
Match zero or more times.
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
isConsumed() |
abstract boolean |
isOptional() |
static Multiplicity |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Multiplicity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Multiplicity ONE
public static final Multiplicity ZERO_OR_MORE
public static Multiplicity[] values()
for (Multiplicity c : Multiplicity.values()) System.out.println(c);
public static Multiplicity 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 abstract boolean isOptional()
public abstract boolean isConsumed()
Copyright © 2016 GroupLens Research. All rights reserved.