com.dtolabs.rundeck.core.utils
Class PairImpl<T,W>

java.lang.Object
  extended by com.dtolabs.rundeck.core.utils.PairImpl<T,W>
All Implemented Interfaces:
Pair<T,W>
Direct Known Subclasses:
ProviderIdent, StateUtils.CtxItem

public class PairImpl<T,W>
extends java.lang.Object
implements Pair<T,W>

Pair implementation that disallows nulls, and provides setters.


Constructor Summary
PairImpl(T first, W second)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 T getFirst()
          Return the first item
 W getSecond()
          Return the second item
 int hashCode()
           
 void setFirst(T first)
          Set first item
 void setSecond(W second)
          Set second item
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PairImpl

public PairImpl(T first,
                W second)
Method Detail

getFirst

public T getFirst()
Description copied from interface: Pair
Return the first item

Specified by:
getFirst in interface Pair<T,W>

setFirst

public void setFirst(T first)
Set first item


getSecond

public W getSecond()
Description copied from interface: Pair
Return the second item

Specified by:
getSecond in interface Pair<T,W>

setSecond

public void setSecond(W second)
Set second item


equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object