This repository has been archived on 2023-10-27. You can view files and clone it, but cannot push or open issues or pull requests.
McGamerZone/commons/src/main/java/zone/themcgamer/common/Tuple.java

24 lines
496 B
Java
Raw Normal View History

2021-02-19 20:11:08 +00:00
package zone.themcgamer.common;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
/**
* @author Braydon
*/
@AllArgsConstructor @Setter @Getter
public class Tuple<L, R> implements Cloneable {
private L left;
private R right;
@Override
public Tuple<L, R> clone() {
try {
return (Tuple<L, R>) super.clone();
} catch (CloneNotSupportedException ex) {
ex.printStackTrace();
}
return null;
}
}