edu.pdx.cs399J.j2se15
Class Tuple<A,B>
java.lang.Object
edu.pdx.cs399J.j2se15.Tuple<A,B>
public final class Tuple<A,B>
- extends Object
A tuple class that holds two generic values. Demonstrates how
multiple values can be returned from a method in a type-safe manner
using Java generics.
- Since:
- Summer 2005
- Author:
- David Whitlock
- See Also:
TupleExample
|
Constructor Summary |
Tuple(A first,
B second)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Tuple
public Tuple(A first,
B second)
getFirst
public A getFirst()
getSecond
public B getSecond()
Copyright © 2000-2009 Portland State University. All Rights Reserved.