pl.edu.agh.cast.common.collections
Class UniformPair<T>
java.lang.Object
pl.edu.agh.cast.common.collections.Pair<T,T>
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
Method Summary |
void |
switchPair()
Switches the objects in this pair. |
UniformPair
public UniformPair(T first,
T second)
- Constructor.
- Parameters:
first
- first objectsecond
- second object
switchPair
public void switchPair()
- Switches the objects in this pair.
Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.