public class

Couple

extends Object
java.lang.Object
   ↳ com.pnfsoftware.jeb.util.base.Couple<A, B>

Class Overview

Handy class holding two typed elements. Null values are allowed.

See Also

Summary

Public Constructors
Couple(A a, B b)
Public Methods
boolean equals(Object obj)
A getFirst()
static <A, B> Collection<A> getFirstElements(Collection<Couple<A, B>> couples)
B getSecond()
static <A, B> Collection<B> getSecondElements(Collection<Couple<A, B>> couples)
int hashCode()
void setFirst(A a)
void setSecond(B b)
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Couple (A a, B b)

Public Methods

public boolean equals (Object obj)

public A getFirst ()

public static Collection<A> getFirstElements (Collection<Couple<A, B>> couples)

public B getSecond ()

public static Collection<B> getSecondElements (Collection<Couple<A, B>> couples)

public int hashCode ()

public void setFirst (A a)

public void setSecond (B b)

public String toString ()