Beispiel #1
0
 /**
  * Serializes {@code short} value to the {@linkplain ArrayByteIterable} entry.
  *
  * @param object value to serialize
  * @return {@linkplain ArrayByteIterable} entry
  */
 public static ArrayByteIterable shortToEntry(final short object) {
   return BINDING.objectToEntry(object);
 }
Beispiel #2
0
 /**
  * De-serializes {@linkplain ByteIterable} entry to a {@code short} value.
  *
  * @param entry {@linkplain ByteIterable} instance
  * @return de-serialized value
  */
 public static short entryToShort(@NotNull final ByteIterable entry) {
   return (Short) BINDING.entryToObject(entry);
 }