@Generated(value="net.morimekta.providence:providence-generator-java", comments="java:serializable") public enum PServiceCallType extends Enum<PServiceCallType> implements PEnumValue<PServiceCallType>
| Modifier and Type | Class and Description |
|---|---|
static class |
PServiceCallType._Builder |
| Enum Constant and Description |
|---|
CALL
Normal service method call request.
|
EXCEPTION
An application exception, i.e. either a non-declared exception, or a
providence service or serialization exception.
|
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(Integer 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, valueOfcompareTopublic 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.Stringable@Nullable public static PServiceCallType findById(Integer id)
id - Id of value@Nullable public 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(@Nonnull String name)
name - Name of valueIllegalArgumentException - If no value for name is found, or null name@Nonnull public PEnumDescriptor<PServiceCallType> descriptor()
descriptor in interface PEnumValue<PServiceCallType>descriptor in interface PValue<PServiceCallType>public static PEnumDescriptorProvider<PServiceCallType> provider()
Copyright © 2015–2020 morimekta.net. All rights reserved.