public enum PServiceCallType extends Enum<PServiceCallType> implements PEnumValue<PServiceCallType>
Modifier and Type | Class and Description |
---|---|
static class |
PServiceCallType._Builder |
Enum Constant and Description |
---|
CALL
The service method request.
|
EXCEPTION
An application exception, i.e.
|
ONEWAY
A one-way call is a request that does not expect a response at all.
|
REPLY
Normal method call reply.
|
Modifier and Type | Field and Description |
---|---|
static PEnumDescriptor<PServiceCallType> |
kDescriptor |
Modifier and Type | Method and Description |
---|---|
int |
asInteger() |
String |
asString() |
PEnumDescriptor<PServiceCallType> |
descriptor() |
static PServiceCallType |
forName(String name) |
static PServiceCallType |
forValue(int value) |
String |
getName() |
int |
getValue() |
static PEnumDescriptorProvider<PServiceCallType> |
provider() |
static PServiceCallType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PServiceCallType[] |
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, valueOf
compareTo
public static final PServiceCallType CALL
public static final PServiceCallType REPLY
public static final PServiceCallType EXCEPTION
public static final PServiceCallType ONEWAY
public static final PEnumDescriptor<PServiceCallType> kDescriptor
public static PServiceCallType[] values()
for (PServiceCallType c : PServiceCallType.values()) System.out.println(c);
public static PServiceCallType 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 int getValue()
getValue
in interface PEnumValue<PServiceCallType>
public String getName()
getName
in interface PEnumValue<PServiceCallType>
public int asInteger()
asInteger
in interface net.morimekta.util.Numeric
public String asString()
asString
in interface net.morimekta.util.Stringable
public static PServiceCallType forValue(int value)
public static PServiceCallType forName(String name)
public PEnumDescriptor<PServiceCallType> descriptor()
descriptor
in interface PValue<PServiceCallType>
public static PEnumDescriptorProvider<PServiceCallType> provider()
Copyright © 2015–2017 morimekta.net. All rights reserved.