Initial commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
package net.crankedpvp.tournaments.utils;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Getter;
|
||||
import lombok.Setter;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
@AllArgsConstructor
|
||||
public class Pair<L, R> {
|
||||
|
||||
private L left;
|
||||
private R right;
|
||||
|
||||
public boolean contains(L value) {
|
||||
return left.equals(value) || right.equals(value);
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
this.setLeft(null);
|
||||
this.setRight(null);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user