public enum Packer extends Enum<Packer>
Enum Constant and Description |
---|
BIG_ENDIAN
packers who fill the Least Significant Bit First
int and byte packer have the same result on Big Endian architectures
|
LITTLE_ENDIAN
packers who fill the Most Significant Bit first
int and byte packer have the same result on Little Endian architectures
|
Modifier and Type | Method and Description |
---|---|
abstract BytePacker |
newBytePacker(int width) |
abstract IntPacker |
newIntPacker(int width) |
static Packer |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Packer[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Packer BIG_ENDIAN
public static final Packer LITTLE_ENDIAN
public static Packer[] values()
for (Packer c : Packer.values()) System.out.println(c);
public static Packer 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 abstract IntPacker newIntPacker(int width)
width
- the width in bits of the packed valuespublic abstract BytePacker newBytePacker(int width)
width
- the width in bits of the packed valuesCopyright © 2015. All rights reserved.