com.github.andrewoma.dexx.collection
Class Pair<C1,C2>

java.lang.Object
  extended by com.github.andrewoma.dexx.collection.Pair<C1,C2>

public class Pair<C1,C2>
extends Object

Pair is a generic container for two components of specified types.


Constructor Summary
Pair(C1 component1, C2 component2)
           
 
Method Summary
 C1 component1()
           
 C2 component2()
           
 boolean equals(Object o)
           
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Pair

public Pair(C1 component1,
            C2 component2)
Method Detail

component1

public C1 component1()

component2

public C2 component2()

toString

public String toString()
Overrides:
toString in class Object

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2014. All Rights Reserved.