public class Transition
extends java.lang.Object
implements java.lang.Cloneable
A transition, which belongs to a source state, consists of a Unicode codepoint interval and a destination state.
| Modifier and Type | Field and Description |
|---|---|
static java.util.Comparator<Transition> |
CompareByDestThenMinMax |
static java.util.Comparator<Transition> |
CompareByMinMaxThenDest |
| Constructor and Description |
|---|
Transition(int min,
int max,
State to)
Constructs a new transition.
|
Transition(int c,
State to)
Constructs a new singleton interval transition.
|
| Modifier and Type | Method and Description |
|---|---|
Transition |
clone()
Clones this transition.
|
boolean |
equals(java.lang.Object obj)
Checks for equality.
|
State |
getDest()
Returns destination of this transition.
|
int |
getMax()
Returns maximum of this transition interval.
|
int |
getMin()
Returns minimum of this transition interval.
|
int |
hashCode()
Returns hash code.
|
java.lang.String |
toString()
Returns a string describing this state.
|
public static final java.util.Comparator<Transition> CompareByDestThenMinMax
public static final java.util.Comparator<Transition> CompareByMinMaxThenDest
public Transition(int c,
State to)
c - transition codepointto - destination statepublic Transition(int min,
int max,
State to)
min - transition interval minimummax - transition interval maximumto - destination statepublic int getMin()
public int getMax()
public State getDest()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - object to compare withpublic int hashCode()
hashCode in class java.lang.Objectpublic Transition clone()
clone in class java.lang.Objectpublic java.lang.String toString()
Automaton.toString().toString in class java.lang.ObjectCopyright © 2010 - 2024 Adobe. All Rights Reserved