public final class Entity extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Entity.EntityType |
| Modifier and Type | Field and Description |
|---|---|
static Entity |
DISCOUNT_CAMPAIGN |
static Entity |
DISCOUNT_OFFER |
| Constructor and Description |
|---|
Entity(Entity.EntityType pLiteral)
Initialize object from real enumeration literal
|
Entity(String pLiteralName)
Initialize object using the name of the literal.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object pObject)
|
Entity.EntityType |
getLiteral()
Method returns the literal that is represented by this object.
|
String |
getUnknownLiteralName()
Method returns the actual name of the unknown literal
|
int |
hashCode()
|
boolean |
isUnknownLiteral()
Method checks if the represented literal is actually unknown or not.
|
String |
toString()
|
static Entity |
valueOf(String pLiteralName)
Method returns extensible enumeration based on the passed name.
|
public static final Entity DISCOUNT_CAMPAIGN
public static final Entity DISCOUNT_OFFER
public Entity(Entity.EntityType pLiteral)
pLiteral - Enumeration literal that should be used to initialize the extensible enumeration. The parameter
must not be null.public Entity(String pLiteralName)
pLiteralName - Literal name that should be used to initialize the extensible enumeration. If the parameter is
null or has an unknown literal name then a "unknown" version will be created.isUnknownLiteral()public static Entity valueOf(String pLiteralName)
pLiteral - Enumeration literal that should be used to initialize the extensible enumeration. The parameter
must not be null.public Entity.EntityType getLiteral()
Entity Literal that is represented by this object. The method never returns null.public boolean isUnknownLiteral()
public String getUnknownLiteralName()
String Name of the unknown literal or null in case that the literal is known.Copyright © 2022. All rights reserved.