Record Class IntPair
java.lang.Object
java.lang.Record
com.ibm.wala.util.intset.IntPair
A pair of ints. Note that an IntPair has value semantics.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.intgetX()Deprecated, for removal: This API element is subject to removal in a future version.intgetY()Deprecated, for removal: This API element is subject to removal in a future version.Usey()insteadfinal inthashCode()Returns a hash code value for this object.static IntPairmake(int x, int y) toString()Returns a string representation of this record class.intx()Returns the value of thexrecord component.inty()Returns the value of theyrecord component.
-
Constructor Details
-
IntPair
public IntPair(int x, int y) Creates an instance of aIntPairrecord class.- Parameters:
x- the value for thexrecord componenty- the value for theyrecord component
-
-
Method Details
-
getX
Deprecated, for removal: This API element is subject to removal in a future version.Usex()instead -
getY
Deprecated, for removal: This API element is subject to removal in a future version.Usey()instead -
toString
-
make
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
x
public int x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public int y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
x()instead