Class ByteEncoding

All Implemented Interfaces:
Encoding<Byte>, NaturalSortAware, Serializable, Comparator<Byte>

public class ByteEncoding extends IntegralEncoding<Byte>
byte primitive type.
See Also:
  • Constructor Details

    • ByteEncoding

      public ByteEncoding(EncodingId encodingId)
  • Method Details

    • withEncodingId

      public ByteEncoding withEncodingId(EncodingId encodingId)
      Description copied from interface: Encoding
      Build an encoding that has the given EncodingId but is otherwise equivalent to this encoding.

      If this encoding already has encodingId, then this method may (but is not required to) return this same instance.

      Parameters:
      encodingId - new encoding's EncodingId, or null for an anonymized encoding
      Returns:
      a version of this encoding with the given EncodingId
    • convertNumber

      protected Byte convertNumber(Number value)
      Specified by:
      convertNumber in class PrimitiveEncoding<Byte>
    • downCast

      protected Byte downCast(long value)
      Specified by:
      downCast in class IntegralEncoding<Byte>