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

cdc.util.tuples.CTuple1 Maven / Gradle / Ivy

package cdc.util.tuples;

/**
 * Tuple of 1 comparable value.
 *
 * @author Damien Carbonne
 *
 * @param  Value 0 type.
 */
public class CTuple1> extends Tuple1 implements CTuple> {
    public CTuple1(T0 value0) {
        super(value0);
    }

    @Override
    public Comparable getValue(int index) {
        return (Comparable) super.getValue(index);
    }

    @Override
    public int compareTo(CTuple1 other) {
        return CTuple.compare(value0, other.value0);
    }

    @Override
    public boolean equals(Object other) {
        return super.equals(other);
    }

    @Override
    public int hashCode() {
        return super.hashCode();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy