LongDiscriminator

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

Example

Given the input...

  • {0L, -1280L, 1234567890123456789L, 56L, -1L, 67L, 56L, -1280L, 56L, -56L}

... a LongDiscriminator returns the following equivalence classes:

  • {0L}
  • {1234567890123456789L}
  • {-1L}
  • {67L}
  • {-56L}
  • {-1280L, -1280L}
  • {56L, 56L, 56L}