Class Transition
- java.lang.Object
-
- org.apache.pinot.segment.local.utils.nativefst.automaton.Transition
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Transition extends Object implements Serializable, Cloneable
Automaton transition.A transition, which belongs to a source state, consists of a Unicode character interval and a destination state.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Transition(char min, char max, State to)Constructs a new transition.Transition(char c, State to)Constructs a new singleton interval transition.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Transitionclone()Clones this transition.booleanequals(Object obj)Checks for equality.StategetDest()Returns destination of this transition.inthashCode()Returns hash code.StringtoString()Returns a string describing this state.
-
-
-
Field Detail
-
_min
public char _min
-
_max
public char _max
-
_to
public State _to
-
-
Constructor Detail
-
Transition
public Transition(char c, State to)Constructs a new singleton interval transition.- Parameters:
c- transition characterto- destination state
-
Transition
public Transition(char min, char max, State to)Constructs a new transition. Both end points are included in the interval.- Parameters:
min- transition interval minimummax- transition interval maximumto- destination state
-
-
Method Detail
-
getDest
public State getDest()
Returns destination of this transition.
-
equals
public boolean equals(Object obj)
Checks for equality.
-
hashCode
public int hashCode()
Returns hash code. The hash code is based on the character interval (not the destination state).
-
clone
public Transition clone()
Clones this transition.
-
toString
public String toString()
Returns a string describing this state. Normally invoked viaAutomaton.toString().
-
-