Class Duo<T>
java.lang.Object
ghidra.util.datastruct.Duo<T>
- Type Parameters:
T- The type of item that is stored in this Duo.
Class for holding two objects of the same type. We are using the idiom of LEFT and RIGHT to
refer to each item in this pair of objects.
The enum "Side" is used to represent either the LEFT (or first) or RIGHT (or second) item.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInvokes the given consumer on both the left and right values.booleanbooleanReturns true if both values are equals to this objects values.Gets the value for the given side.inthashCode()Creates a new Duo, replacing the value for just one side.
-
Constructor Details
-
Duo
public Duo()Constructor with no values. -
Duo
-
-
Method Details
-
get
-
with
-
each
-
equals
Returns true if both values are equals to this objects values.- Parameters:
otherLeft- the value to compare to our left side valueotherRight- the value to compare to our right side value- Returns:
- true if both values are equals to this objects values
-
hashCode
-
equals
-