public enum IntegerMarshaller extends Enum<IntegerMarshaller> implements AgileBytesMarshaller<Integer>
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
long |
hash(Integer e) |
Integer |
read(Bytes bytes,
long size) |
Integer |
read(Bytes bytes,
long size,
Integer e) |
long |
readSize(Bytes bytes) |
long |
size(Integer e) |
int |
sizeEncodingSize(long size) |
boolean |
startsWith(Bytes bytes,
Integer e) |
static IntegerMarshaller |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IntegerMarshaller[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
void |
write(Bytes bytes,
Integer e) |
void |
writeSize(Bytes bytes,
long size) |
public static final IntegerMarshaller INSTANCE
public static IntegerMarshaller[] values()
for (IntegerMarshaller c : IntegerMarshaller.values()) System.out.println(c);
public static IntegerMarshaller 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 long size(Integer e)
size
in interface BytesWriter<Integer>
public int sizeEncodingSize(long size)
sizeEncodingSize
in interface SizeMarshaller
public void writeSize(Bytes bytes, long size)
writeSize
in interface SizeMarshaller
public boolean startsWith(Bytes bytes, Integer e)
startsWith
in interface BytesInterop<Integer>
public long hash(Integer e)
hash
in interface BytesInterop<Integer>
public void write(Bytes bytes, Integer e)
write
in interface BytesWriter<Integer>
public long readSize(Bytes bytes)
readSize
in interface SizeMarshaller
public Integer read(Bytes bytes, long size)
read
in interface BytesReader<Integer>
Copyright © 2014. All rights reserved.