org.nd4j.linalg.primitives.ImmutableTriple Maven / Gradle / Ivy
package org.nd4j.linalg.primitives;
import lombok.*;
import java.io.Serializable;
/**
* Simple triple elements holder implementation
* @author [email protected]
*/
@Data
@AllArgsConstructor
@Builder
public class ImmutableTriple implements Serializable {
private static final long serialVersionUID = 119L;
protected ImmutableTriple() {
}
@Setter(AccessLevel.NONE) protected F first;
@Setter(AccessLevel.NONE) protected S second;
@Setter(AccessLevel.NONE) protected T third;
public F getLeft() {
return first;
}
public S getMiddle() {
return second;
}
public T getRight() {
return third;
}
public static ImmutableTriple tripleOf(F first, S second, T third) {
return new ImmutableTriple(first, second, third);
}
public static ImmutableTriple of(F first, S second, T third) {
return new ImmutableTriple(first, second, third);
}
}