All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.softicar.platform.common.container.pair.PairFactory Maven / Gradle / Ivy

Go to download

The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.

There is a newer version: 50.0.0
Show newest version
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);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy