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

io.polaris.core.tuple.Triple Maven / Gradle / Ivy

There is a newer version: 3.2.1
Show newest version
package io.polaris.core.tuple;

import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;

/**
 * @author Qt
 * @since 1.8
 */
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class Triple extends Tuple3 implements Serializable {
	private static final long serialVersionUID = 1L;

	public Triple(final A first, final B second, final C third) {
		super(first, second, third);
	}

	public static  Triple of(T1 first, T2 second, T3 third) {
		return new Triple<>(first, second, third);
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy