pl.edu.agh.cast.common.collections
Class UniformPair<T>

java.lang.Object
  extended by pl.edu.agh.cast.common.collections.Pair<T,T>
      extended by pl.edu.agh.cast.common.collections.UniformPair<T>
Type Parameters:
T - type of both objects

public class UniformPair<T>
extends Pair<T,T>

A class for representing a pair of objects of same type.

Author:
AGH CAST Team

Constructor Summary
UniformPair(T first, T second)
          Constructor.
 
Method Summary
 void switchPair()
          Switches the objects in this pair.
 
Methods inherited from class pl.edu.agh.cast.common.collections.Pair
equals, getFirst, getSecond, hashCode, setFirst, setSecond
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UniformPair

public UniformPair(T first,
                   T second)
Constructor.

Parameters:
first - first object
second - second object
Method Detail

switchPair

public void switchPair()
Switches the objects in this pair.



Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.