Exemple #1
0
 @Override
 public void copyTo(ByteBuffer buffer) {
   buffer.put((byte) data.getType().ordinal());
   buffer.put(data.bufferForData());
 }
Exemple #2
0
 /**
  * Return the {@link Type} that describes the underlying data represented by this Value.
  *
  * @return the type
  */
 public Type getType() {
   return data.getType();
 }