org.powertac.util
Class Pair<L,R>

java.lang.Object
  extended by org.powertac.util.Pair<L,R>

public class Pair<L,R>
extends Object

Simple generic immutable pair structure

Author:
John Collins

Constructor Summary
Pair(L car, R cdr)
           
 
Method Summary
 L car()
           
 R cdr()
           
 boolean equals(Object thing)
           
 int hashCode()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pair

public Pair(L car,
            R cdr)
Method Detail

car

public L car()

cdr

public R cdr()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


Copyright © 2013. All Rights Reserved.