Overview  Package   Class  Use  Tree  Deprecated  Index  Help 
PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

org.alfresco.util
Class Pair<F,S>
java.lang.Object
  org.alfresco.util.Pair<F,S>
All Implemented Interfaces:
Serializable

public final class Pair<F,S>
extends Object
implements Serializable
Utility class for containing two things that aren't like each other
See Also:
Serialized Form

Field Summary
static Pair
NULL_PAIR
Constructor Summary
Pair(F first, S second)
          Make a new one.
Method Summary
boolean
equals(Object other)
getFirst()
          Get the first member of the tuple.
getSecond()
          Get the second member of the tuple.
int
hashCode()
static <X,Y> Pair<X,Y>
nullPair()
void
setFirst(F first)
void
setSecond(S second)
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Field Detail
NULL_PAIR
public static final Pair NULL_PAIR
Constructor Detail
Pair
public Pair(F first,
            S second)
Make a new one.
Parameters:
first - The first member.
second - The second member.
Method Detail
nullPair
public static final <X,Y> Pair<X,Y> nullPair()

getFirst
public final F getFirst()
Get the first member of the tuple.
Returns:
The first member.

getSecond
public final S getSecond()
Get the second member of the tuple.
Returns:
The second member.

setFirst
public final void setFirst(F first)

setSecond
public final void setSecond(S second)

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

hashCode
public int hashCode()
Overrides:
hashCode in class Object

toString
public String toString()
Overrides:
toString in class Object

Overview  Package   Class  Use  Tree  Deprecated  Index  Help 
PREV CLASS   NEXT CLASS FRAMES    NO FRAMES    All Classes
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD

Copyright © 2005–2016 Alfresco Software. All rights reserved.

Java API documentation generated with DocFlex/Javadoc 1.6.1 using JavadocPro template set.