Class Transition

java.lang.Object
org.apache.lucene.util.automaton.Transition

public class Transition extends Object
Holds one transition from an Automaton. This is typically used temporarily when iterating through transitions by invoking Automaton.initTransition(int, org.apache.lucene.util.automaton.Transition) and Automaton.getNextTransition(org.apache.lucene.util.automaton.Transition).
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    int
    Destination state.
    int
    Maximum accepted label (inclusive).
    int
    Minimum accepted label (inclusive).
    int
    Source state.
    (package private) int
    Remembers where we are in the iteration; init to -1 to provoke exception if nextTransition is called without first initTransition.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Sole constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • source

      public int source
      Source state.
    • dest

      public int dest
      Destination state.
    • min

      public int min
      Minimum accepted label (inclusive).
    • max

      public int max
      Maximum accepted label (inclusive).
    • transitionUpto

      int transitionUpto
      Remembers where we are in the iteration; init to -1 to provoke exception if nextTransition is called without first initTransition.
  • Constructor Details

    • Transition

      public Transition()
      Sole constructor.
  • Method Details