com.simonstl.gorille
Class CharRange
java.lang.Object
|
+--com.simonstl.gorille.CharRange
- public class CharRange
- extends java.lang.Object
This class stores a set of bounds for characters or a single acceptable value, making it easy to define rule sets separately from the vocabulary defined for the examples.
Version 0.02 changes from char values to int values in order to support Unicode characters outside of Plane 0.
- Version:
- 0.02 9 January 2001
- Author:
- Simon St.Laurent
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
start
protected int start
end
protected int end
singleton
protected boolean singleton
CharRange
public CharRange()
CharRange
public CharRange(int character)
CharRange
public CharRange(int _start,
int _end)
isInRange
public boolean isInRange(int test)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
print
public void print()
main
public static void main(java.lang.String[] args)