public static enum Type.Repetition extends Enum<Type.Repetition>
Enum Constant and Description |
---|
OPTIONAL
0 or 1
|
REPEATED
0 or more
|
REQUIRED
exactly 1
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
isMoreRestrictiveThan(Type.Repetition other) |
static Type.Repetition |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Type.Repetition[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Type.Repetition REQUIRED
public static final Type.Repetition OPTIONAL
public static final Type.Repetition REPEATED
public static Type.Repetition[] values()
for (Type.Repetition c : Type.Repetition.values()) System.out.println(c);
public static Type.Repetition 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 isMoreRestrictiveThan(Type.Repetition other)
other
- Copyright © 2015. All rights reserved.