Package org.apache.lucene.util.automaton
Class StatePair
- java.lang.Object
-
- org.apache.lucene.util.automaton.StatePair
-
public class StatePair extends java.lang.ObjectPair of states.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Checks for equality.StategetFirstState()Returns first component of this pair.StategetSecondState()Returns second component of this pair.inthashCode()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:
equalsin 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:
hashCodein classjava.lang.Object- Returns:
- hash code
-
-