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

com.alibaba.hologres.client.utils.Tuple Maven / Gradle / Ivy

There is a newer version: 2.5.5
Show newest version
/*
 * Copyright (c) 2022. Alibaba Group Holding Limited
 */

package com.alibaba.hologres.client.utils;

import java.util.Objects;

/**
 * 元组.
 * @param 
 * @param 
 */
public class Tuple {
	public L l;
	public R r;

	public Tuple(L l, R r) {
		this.l = l;
		this.r = r;
	}

	@Override
	public boolean equals(Object o) {
		if (this == o) {
			return true;
		}
		if (o == null || getClass() != o.getClass()) {
			return false;
		}
		Tuple tuple = (Tuple) o;
		return Objects.equals(l, tuple.l) &&
				Objects.equals(r, tuple.r);
	}

	@Override
	public int hashCode() {
		return Objects.hash(l, r);
	}

	@Override
    public String toString() {
        return "Tuple{" +
                "l=" + l +
                ", r=" + r +
                '}';
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy