net.sf.parser4j.parser.entity.data
Class TerminalCharRange
java.lang.Object
net.sf.parser4j.parser.entity.data.TerminalCharRange
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<TerminalCharRange>
public class TerminalCharRange
- extends java.lang.Object
- implements java.lang.Comparable<TerminalCharRange>, java.io.Serializable
terminal character range:
[ firstTerminalValue
, * lastTerminalValue
]
- Author:
- luc peuvrier
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
TerminalCharRange
public TerminalCharRange(int firstTerminalValue,
int lastTerminalValue)
getFirstTerminalValue
public int getFirstTerminalValue()
getLastTerminalValue
public int getLastTerminalValue()
contains
public boolean contains(int characterValue)
compareTo
public int compareTo(TerminalCharRange terminalCharRange)
- Specified by:
compareTo
in interface java.lang.Comparable<TerminalCharRange>
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2008-2009 Luc Peuvrier. All Rights Reserved.