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