org.msgpack.value.impl
Class BinaryValueImpl

java.lang.Object
  extended by org.msgpack.value.impl.AbstractValueRef
      extended by org.msgpack.value.impl.AbstractValue
          extended by org.msgpack.value.impl.RawValueImpl
              extended by org.msgpack.value.impl.BinaryValueImpl
All Implemented Interfaces:
BinaryValue, RawValue, Value, ValueRef

public class BinaryValueImpl
extends RawValueImpl
implements BinaryValue

Created on 5/30/14.


Field Summary
 
Fields inherited from class org.msgpack.value.impl.RawValueImpl
byteBuffer
 
Fields inherited from class org.msgpack.value.impl.AbstractValueRef
NUMBER_TYPE_MASK, RAW_TYPE_MASK
 
Constructor Summary
BinaryValueImpl(java.nio.ByteBuffer byteBuffer)
           
 
Method Summary
 void accept(ValueVisitor visitor)
           
 ValueType getValueType()
           
 BinaryValue toValue()
          Create an immutable value from this reference
 
Methods inherited from class org.msgpack.value.impl.RawValueImpl
equals, hashCode, toByteArray, toByteBuffer, toMessageBuffer, toString, writeTo
 
Methods inherited from class org.msgpack.value.impl.AbstractValue
isRef
 
Methods inherited from class org.msgpack.value.impl.AbstractValueRef
as, as, asArrayValue, asBinary, asBoolean, asExtended, asFloat, asInteger, asMapValue, asNil, asNumber, asRaw, asString, getArrayCursor, getMapCursor, isArray, isBinary, isBoolean, isExtended, isFloat, isInteger, isMap, isNil, isNumber, isRaw, isString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.msgpack.value.RawValue
toByteArray, toByteBuffer, toMessageBuffer, toString
 
Methods inherited from interface org.msgpack.value.Value
asArrayValue, asMapValue
 
Methods inherited from interface org.msgpack.value.ValueRef
asBinary, asBoolean, asExtended, asFloat, asInteger, asNil, asNumber, asRaw, asString, getArrayCursor, getMapCursor, isArray, isBinary, isBoolean, isExtended, isFloat, isInteger, isMap, isNil, isNumber, isRaw, isRef, isString, writeTo
 

Constructor Detail

BinaryValueImpl

public BinaryValueImpl(java.nio.ByteBuffer byteBuffer)
Method Detail

getValueType

public ValueType getValueType()
Specified by:
getValueType in interface ValueRef

accept

public void accept(ValueVisitor visitor)
Specified by:
accept in interface ValueRef

toValue

public BinaryValue toValue()
Description copied from interface: ValueRef
Create an immutable value from this reference

Specified by:
toValue in interface BinaryValue
Specified by:
toValue in interface RawValue
Specified by:
toValue in interface ValueRef
Overrides:
toValue in class RawValueImpl
Returns: