public enum Operator extends Enum<Operator> implements PEnumValue<Operator>
| Modifier and Type | Class and Description |
|---|---|
static class |
Operator._Builder |
| Enum Constant and Description |
|---|
ADD |
DIVIDE |
IDENTITY |
MULTIPLY |
SUBTRACT |
| Modifier and Type | Field and Description |
|---|---|
static PEnumDescriptor<Operator> |
kDescriptor |
| Modifier and Type | Method and Description |
|---|---|
PEnumDescriptor<Operator> |
descriptor() |
static Operator |
forName(String name) |
static Operator |
forValue(int value) |
String |
getComment() |
String |
getName() |
int |
getValue() |
static PEnumDescriptorProvider<Operator> |
provider() |
static Operator |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Operator[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfcompareTopublic static final Operator IDENTITY
public static final Operator ADD
public static final Operator SUBTRACT
public static final Operator MULTIPLY
public static final Operator DIVIDE
public static final PEnumDescriptor<Operator> kDescriptor
public static Operator[] values()
for (Operator c : Operator.values()) System.out.println(c);
public static Operator 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 String getComment()
getComment in interface PEnumValue<Operator>public int getValue()
getValue in interface PEnumValue<Operator>public String getName()
getName in interface PEnumValue<Operator>public static Operator forValue(int value)
public PEnumDescriptor<Operator> descriptor()
descriptor in interface PValue<Operator>public static PEnumDescriptorProvider<Operator> provider()
Copyright © 2016. All rights reserved.