A ShortDiscriminator discriminates Shorts. With Java's auto-boxing feature, it doesn't matter whether Short objects or short values are present; this Discriminator will discriminate them. It discriminates its input by discriminating directly on the byte values.
Given the input...
... a ShortDiscriminator returns the following equivalence classes: