com.softicar.platform.common.container.pair.ComparablePairFactory 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;
/**
* Provides static factory methods for {@link ComparablePair}.
*
* @author Oliver Richers
*/
public abstract class ComparablePairFactory {
/**
* Creates a new {@link ComparablePair} with the specified elements.
*/
public static , B extends Comparable> ComparablePair create(A first, B second) {
return new ComparablePair<>(first, second);
}
}