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