Class Transition
Automaton transition.
A transition, which belongs to a source state, consists of a Unicode codepoint interval and a destination state.Note
This API is experimental and might change in incompatible ways in the next release.
Inherited Members
Namespace: Lucene.Net.Util.Automaton
Assembly: Lucene.Net.dll
Syntax
public class Transition
Constructors
Transition(int, State)
Constructs a new singleton interval transition.
Declaration
public Transition(int c, State to)
Parameters
Type | Name | Description |
---|---|---|
int | c | Transition codepoint. |
State | to | Destination state. |
Transition(int, int, 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 |
---|---|---|
int | min | Transition interval minimum. |
int | max | Transition interval maximum. |
State | to | Destination state. |
Fields
COMPARE_BY_DEST_THEN_MIN_MAX
Automaton transition.
A transition, which belongs to a source state, consists of a Unicode codepoint interval and a destination state.Note
This API is experimental and might change in incompatible ways in the next release.
Declaration
public static readonly IComparer<Transition> COMPARE_BY_DEST_THEN_MIN_MAX
Field Value
Type | Description |
---|---|
IComparer<Transition> |
COMPARE_BY_MIN_MAX_THEN_DEST
Automaton transition.
A transition, which belongs to a source state, consists of a Unicode codepoint interval and a destination state.Note
This API is experimental and might change in incompatible ways in the next release.
Declaration
public static readonly IComparer<Transition> COMPARE_BY_MIN_MAX_THEN_DEST
Field Value
Type | Description |
---|---|
IComparer<Transition> |
Properties
Dest
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 |
---|---|
int |
Min
Returns minimum of this transition interval.
Declaration
public virtual int Min { get; }
Property Value
Type | Description |
---|---|
int |
Methods
Clone()
Clones this transition.
Declaration
public virtual object Clone()
Returns
Type | Description |
---|---|
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 |
---|---|---|
object | obj | Object to compare with. |
Returns
Type | Description |
---|---|
bool |
|
Overrides
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 |
---|---|
int | Hash code. |
Overrides
ToString()
Returns a string describing this state. Normally invoked via ToString().
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
string |