Package org.apache.lucene.util.automaton
Class StatePair
- java.lang.Object
-
- org.apache.lucene.util.automaton.StatePair
-
public class StatePair extends java.lang.Object
Pair of states.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Checks for equality.State
getFirstState()
Returns first component of this pair.State
getSecondState()
Returns second component of this pair.int
hashCode()
Returns hash code.
-
-
-
Method Detail
-
getFirstState
public State getFirstState()
Returns first component of this pair.- Returns:
- first state
-
getSecondState
public State getSecondState()
Returns second component of this pair.- Returns:
- second state
-
equals
public boolean equals(java.lang.Object obj)
Checks for equality.- Overrides:
equals
in classjava.lang.Object
- Parameters:
obj
- object to compare with- Returns:
- true if obj represents the same pair of states as this pair
-
hashCode
public int hashCode()
Returns hash code.- Overrides:
hashCode
in classjava.lang.Object
- Returns:
- hash code
-
-