Show / Hide Table of Contents

    Class Transition

    Automaton transition.

    A transition, which belongs to a source state, consists of a Unicode codepoint interval and a destination state.

    This is a Lucene.NET EXPERIMENTAL API, use at your own risk
    Inheritance
    System.Object
    Transition
    Namespace: Lucene.Net.Util.Automaton
    Assembly: Lucene.Net.dll
    Syntax
    public class Transition : object

    Constructors

    | Improve this Doc View Source

    Transition(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.

    | Improve this Doc View Source

    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 Source

    COMPARE_BY_DEST_THEN_MIN_MAX

    Declaration
    public static readonly IComparer<Transition> COMPARE_BY_DEST_THEN_MIN_MAX
    Field Value
    Type Description
    IComparer<Transition>
    | Improve this Doc View Source

    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 Source

    Dest

    Returns destination of this transition.

    Declaration
    public virtual State Dest { get; }
    Property Value
    Type Description
    State
    | Improve this Doc View Source

    Max

    Returns maximum of this transition interval.

    Declaration
    public virtual int Max { get; }
    Property Value
    Type Description
    System.Int32
    | Improve this Doc View Source

    Min

    Returns minimum of this transition interval.

    Declaration
    public virtual int Min { get; }
    Property Value
    Type Description
    System.Int32

    Methods

    | Improve this Doc View Source

    Clone()

    Clones this transition.

    Declaration
    public virtual object Clone()
    Returns
    Type Description
    System.Object

    Clone with same character interval and destination state.

    | Improve this Doc View Source

    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

    true if obj is a transition with same character interval and destination state as this transition.

    | Improve this Doc View Source

    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.

    | Improve this Doc View Source

    ToString()

    Returns a string describing this state. Normally invoked via ToString().

    Declaration
    public override string ToString()
    Returns
    Type Description
    System.String
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)