plugins.big.bigsnakeutils.icy.gui.pair
Class Pair

java.lang.Object
  extended by plugins.big.bigsnakeutils.icy.gui.pair.Pair
Direct Known Subclasses:
Pair.Double, Pair.Float, Pair.Integer

public abstract class Pair
extends java.lang.Object

Abstract class describing a pair of numbers.

Version:
May 3, 2014
Author:
Julien Jacquemot

Nested Class Summary
static class Pair.Double
          Double Pair (convenient class)
static class Pair.Float
          Float Pair (convenient class)
static class Pair.Integer
          Integer Pair (convenient class)
 
Constructor Summary
Pair()
           
 
Method Summary
abstract  Pair clone()
           
 boolean equals(java.lang.Object o)
           
abstract  double getFirst()
          Returns the first element of the pair.
abstract  double getSecond()
          Returns the second element of the pair.
abstract  void setFirst(double first)
          Set the first element of the pair.
 void setPair(double first, double second)
          Set the values of the pair.
 void setPair(Pair other)
          Set the values of the pair.
abstract  void setSecond(double second)
          Set the second element of the pair.
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pair

public Pair()
Method Detail

getFirst

public abstract double getFirst()
Returns the first element of the pair.


getSecond

public abstract double getSecond()
Returns the second element of the pair.


setFirst

public abstract void setFirst(double first)
Set the first element of the pair.


setSecond

public abstract void setSecond(double second)
Set the second element of the pair.


setPair

public void setPair(double first,
                    double second)
Set the values of the pair.


setPair

public void setPair(Pair other)
Set the values of the pair.


equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

clone

public abstract Pair clone()
Overrides:
clone in class java.lang.Object