org.openmuc.framework.data
Class ByteStringValue

java.lang.Object
  extended by org.openmuc.framework.data.ByteStringValue
All Implemented Interfaces:
Value

public final class ByteStringValue
extends java.lang.Object
implements Value

Represents an immutable array of bytes.


Constructor Summary
ByteStringValue(byte[] value)
           
 
Method Summary
 boolean asBoolean()
           
 byte asByte()
           
 byte[] asByteArray()
          Returns a copy of the internal byte array.
 double asDouble()
           
 float asFloat()
           
 int asInt()
           
 long asLong()
           
 short asShort()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ByteStringValue

public ByteStringValue(byte[] value)
Method Detail

asDouble

public double asDouble()
Specified by:
asDouble in interface Value

asFloat

public float asFloat()
Specified by:
asFloat in interface Value

asLong

public long asLong()
Specified by:
asLong in interface Value

asInt

public int asInt()
Specified by:
asInt in interface Value

asShort

public short asShort()
Specified by:
asShort in interface Value

asByte

public byte asByte()
Specified by:
asByte in interface Value

asBoolean

public boolean asBoolean()
Specified by:
asBoolean in interface Value

asByteArray

public byte[] asByteArray()
Returns a copy of the internal byte array.

Specified by:
asByteArray in interface Value
Returns:
A copy of the internal byte array.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object