uk.ac.starlink.ttools.plot2.layer
Class ShortPair

java.lang.Object
  extended by uk.ac.starlink.ttools.plot2.layer.ShortPair

@Equality
public class ShortPair
extends Object

Aggregates two short integer values. Intended (and optimised) for use as a map key.

Since:
15 Jan 2015
Author:
Mark Taylor

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

ShortPair

public ShortPair(short x,
                 short y)
Constructor.

Parameters:
x - first value
y - second value
Method Detail

getX

public short getX()
Returns X value.

Returns:
x

getY

public short getY()
Returns Y value.

Returns:
y

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object


Copyright © 2015 Central Laboratory of the Research Councils. All Rights Reserved.