|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.joda.primitives.ByteUtils
public class ByteUtils
Provides utility methods and constants for byte
.
Field Summary | |
---|---|
static byte[] |
EMPTY_BYTE_ARRAY
Immutable empty array. |
Constructor Summary | |
---|---|
ByteUtils()
Constructor that should not usually be used. |
Method Summary | |
---|---|
static Byte |
toObject(byte value)
Wraps an byte with an Object wrapper. |
static byte |
toPrimitive(Object value)
Unwraps the Byte to retrieve the primitive byte . |
static byte[] |
toPrimitiveArray(Collection<?> coll)
Unwraps a Collection to retrieve the primitive byte . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final byte[] EMPTY_BYTE_ARRAY
Constructor Detail |
---|
public ByteUtils()
Method Detail |
---|
public static Byte toObject(byte value)
byte
with an Object wrapper.
value
- the primitive value
public static byte toPrimitive(Object value)
Byte
to retrieve the primitive byte
.
value
- the Object wrapper, must not be null
NullPointerException
- if the value if null
ClassCastException
- if the object is not Byte
public static byte[] toPrimitiveArray(Collection<?> coll)
Collection
to retrieve the primitive byte
.
coll
- the Collection of Byte, must not be null
NullPointerException
- if the collection if null
ClassCastException
- if any object is not Byte
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |