com.softicar.platform.common.container.pair.IPair Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of platform-common Show documentation
Show all versions of platform-common Show documentation
The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.
package com.softicar.platform.common.container.pair;
/**
* General interface of a pair of two elements.
*
* A pair is a 2-tuple.
*
* @param
* type of the first element
* @param
* type of the second element
* @author Oliver Richers
*/
public interface IPair {
/**
* @return the first element, may be null
*/
A getFirst();
/**
* @return the second element, may be null
*/
B getSecond();
/**
* Sets the value of the first element.
*
* @param first
* the new value of the first element, may be null
*/
void setFirst(A first);
/**
* Sets the value of the second element.
*
* @param second
* the new value of the second element, may be null
*/
void setSecond(B second);
}