BigIntegerDiscriminator

A BigIntegerDiscriminator discriminates BigIntegers. It discriminates its input by discriminating each element of the byte array of values that make up the BigInteger, as determined by calling toByteArray().

Example

Given the input...

  • {6, 6, 123456789012345678901234567890, 0, -56, 6, 56, -56, 1}

... a BigIntegerDiscriminator returns the following equivalence classes:

  • {123456789012345678901234567890}
  • {0}
  • {56}
  • {1}
  • {6, 6, 6}
  • {-56, -56}