Package org.apache.solr.common.util
Class Pair<T1,T2>
- java.lang.Object
-
- org.apache.solr.common.util.Pair<T1,T2>
-
- All Implemented Interfaces:
Serializable
,MapSerializable
,MapWriter
,NavigableObject
public class Pair<T1,T2> extends Object implements Serializable, MapWriter
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.solr.common.MapWriter
MapWriter.EntryWriter
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object that)
T1
first()
int
hashCode()
static Pair
parse(Map m)
T2
second()
String
toString()
void
writeMap(MapWriter.EntryWriter ew)
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.solr.common.NavigableObject
_forEachEntry, _forEachEntry, _forEachEntry, _get, _get, _getStr, _getStr
-
-
-
-
Method Detail
-
first
public T1 first()
-
second
public T2 second()
-
writeMap
public void writeMap(MapWriter.EntryWriter ew) throws IOException
- Specified by:
writeMap
in interfaceMapWriter
- Throws:
IOException
-
-