com.g2forge.alexandria.java.tuple.implementations.Tuple1GSI Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ax-java Show documentation
Show all versions of ax-java Show documentation
Standard Java library and the basis of the ${alexandria.name} project.
package com.g2forge.alexandria.java.tuple.implementations;
import com.g2forge.alexandria.java.tuple.ITuple1GS;
public class Tuple1GSI implements ITuple1GS {
protected T0 value0;
public Tuple1GSI() {
this(null);
}
public Tuple1GSI(final T0 value0) {
this.value0 = value0;
}
@Override
public boolean equals(Object obj) {
if (this == obj) return true;
if (obj == null) return false;
if (getClass() != obj.getClass()) return false;
final Tuple1G_O> that = (Tuple1G_O>) obj;
return get0() == that.get0();
}
@Override
public T0 get0() {
return value0;
}
@Override
public int hashCode() {
return System.identityHashCode(get0());
}
@Override
public ITuple1GS set0(final T0 value) {
this.value0 = value;
return this;
}
}