public class ClientPrimitiveValueImpl extends AbstractClientValue implements ClientPrimitiveValue
| Modifier and Type | Class and Description |
|---|---|
static class |
ClientPrimitiveValueImpl.BuilderImpl |
ClientPrimitiveValue.Builder| Modifier | Constructor and Description |
|---|---|
protected |
ClientPrimitiveValueImpl() |
| Modifier and Type | Method and Description |
|---|---|
ClientEnumValue |
asEnum()
Casts to enum value.
|
boolean |
equals(Object obj) |
EdmPrimitiveType |
getType() |
EdmPrimitiveTypeKind |
getTypeKind() |
String |
getTypeName()
Gets value type name.
|
int |
hashCode() |
boolean |
isComplex()
Check is is a complex value.
|
boolean |
isEnum()
Check is is an enum value.
|
<T> T |
toCastValue(Class<T> reference)
Returns the current value casted to the given type.
|
String |
toString()
Serialize the current value as String.
|
Object |
toValue()
Returns the current value as generic Object.
|
asCollection, asComplex, asPrimitive, isCollection, isPrimitiveclone, finalize, getClass, notify, notifyAll, wait, wait, waitasCollection, asComplex, asPrimitive, isCollection, isPrimitivepublic String getTypeName()
ClientValuegetTypeName in interface ClientValuegetTypeName in class AbstractClientValuepublic EdmPrimitiveTypeKind getTypeKind()
getTypeKind in interface ClientPrimitiveValuepublic EdmPrimitiveType getType()
getType in interface ClientPrimitiveValuepublic Object toValue()
ClientPrimitiveValuetoValue in interface ClientPrimitiveValuepublic <T> T toCastValue(Class<T> reference) throws EdmPrimitiveTypeException
ClientPrimitiveValuetoCastValue in interface ClientPrimitiveValueT - cast typereference - class referenceEdmPrimitiveTypeException - if the object is not assignable to the type T.public String toString()
ClientPrimitiveValuetoString in interface ClientPrimitiveValuetoString in class AbstractClientValuepublic boolean isEnum()
ClientValueisEnum in interface ClientValuepublic ClientEnumValue asEnum()
ClientValueasEnum in interface ClientValuepublic boolean isComplex()
AbstractClientValueisComplex in interface ClientValueisComplex in class AbstractClientValuepublic int hashCode()
hashCode in class AbstractClientValuepublic boolean equals(Object obj)
equals in class AbstractClientValueCopyright © 2023. All rights reserved.