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

java.lang.Object
  extended by com.dtolabs.rundeck.core.utils.NullablePairImpl<T,W>
All Implemented Interfaces:
Pair<T,W>
Direct Known Subclasses:
StepContextWorkflowExecutionListener.ctxPair

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

Pair implementation allowing null values

Since:
2014-06-26

Constructor Summary
NullablePairImpl(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

NullablePairImpl

public NullablePairImpl(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