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

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

There is a newer version: 0.0.18
Show newest version
package com.g2forge.alexandria.java.tuple.implementations;

import java.util.Objects;

import com.g2forge.alexandria.java.tuple.ITuple1GS;

public class Tuple1GSO implements ITuple1GS {
	protected T0 value0;

	public Tuple1GSO() {
		this(null);
	}

	public Tuple1GSO(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 Objects.equals(get0(), that.get0());
	}

	@Override
	public T0 get0() {
		return value0;
	}

	@Override
	public int hashCode() {
		return Objects.hash(get0());
	}

	@Override
	public ITuple1GS set0(final T0 value) {
		this.value0 = value;
		return this;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy