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