Class Transition
Automaton transition.
A transition, which belongs to a source state, consists of a Unicode codepoint interval and a destination state.
Inheritance
Namespace: Lucene.Net.Util.Automaton
Assembly: Lucene.Net.dll
Syntax
public class Transition : object
Constructors
| Improve this Doc View SourceTransition(Int32, State)
Constructs a new singleton interval transition.
Declaration
public Transition(int c, State to)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | c | Transition codepoint. |
State | to | Destination state. |
Transition(Int32, Int32, State)
Constructs a new transition. Both end points are included in the interval.
Declaration
public Transition(int min, int max, State to)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | min | Transition interval minimum. |
System.Int32 | max | Transition interval maximum. |
State | to | Destination state. |
Fields
| Improve this Doc View SourceCOMPARE_BY_DEST_THEN_MIN_MAX
Declaration
public static readonly IComparer<Transition> COMPARE_BY_DEST_THEN_MIN_MAX
Field Value
Type | Description |
---|---|
IComparer<Transition> |
COMPARE_BY_MIN_MAX_THEN_DEST
Declaration
public static readonly IComparer<Transition> COMPARE_BY_MIN_MAX_THEN_DEST
Field Value
Type | Description |
---|---|
IComparer<Transition> |
Properties
| Improve this Doc View SourceDest
Returns destination of this transition.
Declaration
public virtual State Dest { get; }
Property Value
Type | Description |
---|---|
State |
Max
Returns maximum of this transition interval.
Declaration
public virtual int Max { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Min
Returns minimum of this transition interval.
Declaration
public virtual int Min { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
Methods
| Improve this Doc View SourceClone()
Clones this transition.
Declaration
public virtual object Clone()
Returns
Type | Description |
---|---|
System.Object | Clone with same character interval and destination state. |
Equals(Object)
Checks for equality.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | Object to compare with. |
Returns
Type | Description |
---|---|
System.Boolean |
|
GetHashCode()
Returns hash code. The hash code is based on the character interval (not the destination state).
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
System.Int32 | Hash code. |
ToString()
Returns a string describing this state. Normally invoked via ToString().
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |