de.team33.patterns.tuple.janus.Tuple 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.List;
abstract class Tuple {
@Override
public final boolean equals(final Object obj) {
return this == obj || (obj instanceof Tuple && toList().equals(((Tuple) obj).toList()));
}
@Override
public final int hashCode() {
return toList().hashCode();
}
@Override
public final String toString() {
return toList().toString();
}
public abstract List