public abstract class CharSet extends java.lang.Object implements JustifyingStringSet
Modifier and Type | Field and Description |
---|---|
int |
_bitQty
Number of bits needed to represent the character.
|
java.lang.String |
_label
Free format character string which describes the set in one word or short phrase.
|
char |
_max
The highest character that the set contains.
|
Constructor and Description |
---|
CharSet(char max,
java.lang.String label) |
CharSet(int bitQty,
java.lang.String label) |
Modifier and Type | Method and Description |
---|---|
int |
firstOutCharPosition(java.lang.String s)
Determines the position of the first character which is not in the set.
|
abstract boolean |
isIn(char ch)
Determines whether a character is in the set.
|
boolean |
isIn(java.lang.String s)
Determines whether all character of a string are in the set.
|
java.lang.String |
outReason(java.lang.String s)
Gives a reason for the object being outside the set.
|
java.lang.String |
toString() |
public final char _max
public final int _bitQty
public final java.lang.String _label
public CharSet(char max, java.lang.String label)
public CharSet(int bitQty, java.lang.String label)
public abstract boolean isIn(char ch)
ch
- The character being tested for set membershippublic boolean isIn(java.lang.String s)
isIn
in interface GenericSet<java.lang.String>
s
- The string for which the characters are being tested for set membershippublic java.lang.String outReason(java.lang.String s)
JustifyingGenericSet
outReason
in interface JustifyingGenericSet<java.lang.String>
public int firstOutCharPosition(java.lang.String s)
s
- public java.lang.String toString()
toString
in class java.lang.Object