A CharSequenceDiscriminator discriminates CharSequences, which includes Strings, StringBuffers, and StringBuilders. It doesn't matter which concrete subclass of CharSequence is present; this Discriminator will discriminate them. It discriminates its input by calling charAt to extract the character values, then discriminating directly on the byte values.
Given the input...
... a CharSequenceDiscriminator returns the following equivalence classes: