com.softicar.platform.common.container.pair.PairFactory 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;
import java.util.Map.Entry;
/**
* Some static factory methods for {@link Pair}.
*
* @author Oliver Richers
*/
public abstract class PairFactory {
public static Pair create(Entry mapEntry) {
return create(mapEntry.getKey(), mapEntry.getValue());
}
public static Pair create(A first, B second) {
return new Pair<>(first, second);
}
}