IntegerDiscriminator

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

Example

Given the input...

  • {0, -1280, 8675309, 56, -1, 67, 56, -1280, 56, -56}

... an IntegerDiscriminator returns the following equivalence classes:

  • {0}
  • {8675309}
  • {-1}
  • {67}
  • {-56}
  • {-1280, -1280}
  • {56, 56, 56}