Fork me on GitHub
  • API

    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.

    Note

    This API is experimental and might change in incompatible ways in the next release.

    Inheritance
    object
    Transition
    Inherited Members
    object.Equals(object, object)
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    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

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

    Overrides
    object.Equals(object)

    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
    object.GetHashCode()

    ToString()

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

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()
    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.