public class UnsignedShortIntegerType extends AbstractSourceType
Modifier and Type | Field and Description |
---|---|
static SourceType |
INSTANCE
A default instance with no scaling
|
static int |
LENGTH |
COMMON_HEADER
Constructor and Description |
---|
UnsignedShortIntegerType() |
UnsignedShortIntegerType(Double factor) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Variant |
getValue(int localOffset,
org.apache.mina.core.buffer.IoBuffer value)
parse the value to write from a write request
|
int |
hashCode() |
void |
putValue(org.apache.mina.core.buffer.IoBuffer slice,
Variant value)
Render the value itself to the buffer slice
|
getLength, render
public static final int LENGTH
public static final SourceType INSTANCE
public UnsignedShortIntegerType(Double factor)
public UnsignedShortIntegerType()
public void putValue(org.apache.mina.core.buffer.IoBuffer slice, Variant value)
AbstractSourceType
putValue
in class AbstractSourceType
slice
- the buffer slicevalue
- the value, or null
if "nothing" has to be encodedpublic Variant getValue(int localOffset, org.apache.mina.core.buffer.IoBuffer value)
SourceType
localOffset
- the local offset were the write was placed inside the data
type structurevalue
- the value to write, or null
if the value cannot
be writtennull
public int hashCode()
hashCode
in interface SourceType
hashCode
in class Object
public boolean equals(Object obj)
equals
in interface SourceType
equals
in class Object