org.apache.accumulo.core.util
Class Pair<A,B>

java.lang.Object
  extended by org.apache.accumulo.core.util.Pair<A,B>
Direct Known Subclasses:
ComparablePair, IteratorSetting.Column

public class Pair<A,B>
extends Object


Constructor Summary
Pair(A f, B s)
           
 
Method Summary
 boolean equals(Object o)
           
static
<K,V> Pair<K,V>
fromEntry(Map.Entry<K,V> entry)
           
 A getFirst()
           
 B getSecond()
           
 int hashCode()
           
 Pair<B,A> swap()
           
 Map.Entry<A,B> toMapEntry()
           
 String toString()
           
 String toString(String prefix, String separator, String suffix)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Pair

public Pair(A f,
            B s)
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

getFirst

public A getFirst()

getSecond

public B getSecond()

toString

public String toString()
Overrides:
toString in class Object

toString

public String toString(String prefix,
                       String separator,
                       String suffix)

toMapEntry

public Map.Entry<A,B> toMapEntry()

swap

public Pair<B,A> swap()

fromEntry

public static <K,V> Pair<K,V> fromEntry(Map.Entry<K,V> entry)


Copyright © 2015 Apache Accumulo Project. All rights reserved.