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

com.g2forge.alexandria.java.tuple.implementations.Tuple1GSI Maven / Gradle / Ivy

There is a newer version: 0.0.18
Show newest version
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;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy