public class OrderedPair
extends java.lang.Object
Constructor and Description |
---|
OrderedPair(java.lang.Number x,
java.lang.Number y)
Constructs a new OrderedPair from the given Numbers.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.Number |
getPreciseX()
Returns the x value of this OrderedPair at full (original) precision.
|
java.lang.Number |
getPreciseY()
Returns the y value of this OrderedPair at full (original) precision.
|
int |
hashCode() |
java.lang.String |
toString()
Returns a String representation of this OrderedPair.
|
static OrderedPair |
valueOf(java.lang.String value)
Converts a String representation of a OrderedPair into a OrderedPair
object.
|
public OrderedPair(java.lang.Number x, java.lang.Number y)
x
- The x value of the OrderedPairy
- The y value of the OrderedPairjava.lang.IllegalArgumentException
- if either the x or y value is nullpublic java.lang.Number getPreciseX()
public java.lang.Number getPreciseY()
public static OrderedPair valueOf(java.lang.String value)
value
- The String representation to be converted into a OrderedPairjava.lang.IllegalArgumentException
- if the given String does not represent a valid OrderedPairpublic java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object