public abstract class AbstractTypeValue<T> extends Object implements ITypeValue<T>
NULL, UNDEFINED
Modifier and Type | Method and Description |
---|---|
String |
getRawValue()
Gets raw value.
|
Type |
getType()
Gets type of value.
|
abstract T |
getValue()
Gets value.
|
boolean |
isNull()
Returns true if value is null.
|
boolean |
isUndefined()
Returns true if value is undefined.
|
void |
setType(Type type) |
void |
setValue(T t)
Sets value.
|
byte[] |
toBytesValue()
Gets raw value.
|
byte[] |
toFIXValue()
Get data in tag/value representation
|
void |
toFIXValue(StringBuilder buffer)
Append tag/value representation of this instance to buffer
|
String |
toString() |
public void setType(Type type)
public Type getType()
ITypeValue
getType
in interface ITypeValue<T>
public String getRawValue()
ITypeValue
getRawValue
in interface ITypeValue<T>
public byte[] toFIXValue()
ITypeValue
toFIXValue
in interface ITypeValue<T>
public void toFIXValue(StringBuilder buffer)
ITypeValue
toFIXValue
in interface ITypeValue<T>
public abstract T getValue()
ITypeValue
getValue
in interface ITypeValue<T>
public boolean isNull()
ITypeValue
isNull
in interface ITypeValue<T>
public boolean isUndefined()
ITypeValue
isUndefined
in interface ITypeValue<T>
public void setValue(T t)
ITypeValue
setValue
in interface ITypeValue<T>
t
- the valuepublic byte[] toBytesValue()
ITypeValue
toBytesValue
in interface ITypeValue<T>
Copyright © 2000-2017 EPAM Systems. All Rights Reserved.