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

com.neko233.toolchain.common.dataStruct.objects.Tuple4 Maven / Gradle / Ivy

package com.neko233.toolchain.common.dataStruct.objects;


import com.neko233.toolchain.common.annotation.ThreadSafe;

/**
 * 对向元组 3
 * T1~T3 = 按顺序的元素
 *
 * @author SolarisNeko on 2023-01-01
 */
@ThreadSafe
public final class Tuple4 {

    private final T1 t1;
    private final T2 t2;
    private final T3 t3;
    private final T4 t4;

    public Tuple4(T1 t1, T2 t2, T3 t3, T4 t4) {
        this.t1 = t1;
        this.t2 = t2;
        this.t3 = t3;
        this.t4 = t4;
    }

    public final T1 getT1() {
        return t1;
    }

    public final T2 getT2() {
        return t2;
    }

    public final T3 getT3() {
        return t3;
    }

    public T4 getT4() {
        return t4;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy