@Generated(value="providence-maven-plugin") 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 |
findById(int id)
Find a value based in its ID
|
static PServiceCallType |
findByName(String name)
Find a value based in its name
|
static PEnumDescriptorProvider<PServiceCallType> |
provider() |
static PServiceCallType |
valueForId(int id)
Get a value based in its ID
|
static PServiceCallType |
valueForName(String name)
Get a value based in its name
|
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, valueOfgetId, getName, getValuecompareTopublic 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 asInteger()
asInteger in interface net.morimekta.util.Numeric@Nonnull public String asString()
asString in interface net.morimekta.util.Stringablepublic static PServiceCallType findById(int id)
id - Id of valuepublic static PServiceCallType findByName(String name)
name - Name of value@Nonnull public static PServiceCallType valueForId(int id)
id - Id of valueIllegalArgumentException - If no value for id is found@Nonnull public static PServiceCallType valueForName(String name)
name - Name of valueIllegalArgumentException - If no value for name is found, or null namepublic PEnumDescriptor<PServiceCallType> descriptor()
descriptor in interface PValue<PServiceCallType>public static PEnumDescriptorProvider<PServiceCallType> provider()
Copyright © 2015–2017 morimekta.net. All rights reserved.