de.team33.patterns.tuple.janus.Trip Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tuple-janus Show documentation
Show all versions of tuple-janus Show documentation
Provides generic tuple types.
package de.team33.patterns.tuple.janus;
import java.util.Arrays;
import java.util.List;
public class Trip extends Tuple {
private final R red;
private final G green;
private final B blue;
public Trip(final R red, final G green, final B blue) {
this.red = red;
this.green = green;
this.blue = blue;
}
public static Trip of(final R red, final G green, final B blue) {
return new Trip<>(red, green, blue);
}
public final R red() {
return red;
}
public final G green() {
return green;
}
public final B blue() {
return blue;
}
@Override
public final List