org.apache.oozie.util
Class Pair<T,S>

java.lang.Object
  extended by org.apache.oozie.util.Pair<T,S>
Type Parameters:
T - type of first data
S - type of second data

public class Pair<T,S>
extends Object

Utility class for holding a pair of data


Constructor Summary
Pair(T first, S second)
           
 
Method Summary
 boolean equals(Object other)
           
 T getFist()
           
 S getSecond()
           
 int hashCode()
           
static
<T,S> Pair<T,S>
of(T first, S second)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pair

public Pair(T first,
            S second)
Method Detail

of

public static <T,S> Pair<T,S> of(T first,
                                 S second)

getFist

public T getFist()

getSecond

public S getSecond()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


Copyright © 2015 Apache Software Foundation. All Rights Reserved.