|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plot2.layer.ShortPair
@Equality public class ShortPair
Aggregates two short integer values. Intended (and optimised) for use as a map key.
Constructor Summary | |
---|---|
ShortPair(short x,
short y)
Constructor. |
Method Summary | |
---|---|
boolean |
equals(Object other)
|
short |
getX()
Returns X value. |
short |
getY()
Returns Y value. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ShortPair(short x, short y)
x
- first valuey
- second valueMethod Detail |
---|
public short getX()
public short getY()
public int hashCode()
hashCode
in class Object
public boolean equals(Object other)
equals
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |