org.apache.oozie.util
Class Pair<T,S>
java.lang.Object
org.apache.oozie.util.Pair<T,S>
- Type Parameters:
T - type of first dataS - 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)
|
Pair
public Pair(T first,
S second)
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.