ByteDiscriminator

A ByteDiscriminator discriminates Bytes. With Java's auto-boxing feature, it doesn't matter whether Byte objects or byte values are present; this Discriminator will discriminate them. It discriminates its input by discriminating directly on the byte values.

Example

Given the input...

  • {0, -128, 127, 56, -1, 67, 56, -128, 56, -56}

... a ByteDiscriminator returns the following equivalence classes:

  • {0}
  • {127}
  • {-1}
  • {67}
  • {-56}
  • {-128, -128}
  • {56, 56, 56}