FloatDiscriminator

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

Example

Given the input...

  • {0.0f, -12.8f, 12.7f, 0.56f, -1.0f, 67.67f, 56.0f, -12.8f, 56.0f, -0.56f}

... a FloatDiscriminator returns the following equivalence classes:

  • {0.0f}
  • {12.7f}
  • {0.56f}
  • {-1.0f}
  • {67.67f}
  • {-0.56f}
  • {-12.8f, -12.8f}
  • {56.0f, 56.0f}