ThisOrThat is unused; delete it

This commit is contained in:
Mariell Hoversholm committed 2020-09-05 16:22:39 +02:00
1 parent 8040c5fb72
commit 141992cd86
1 file changed
-31
@@ -1,31 +0,0 @@
package net.draycia.carbon.util;
import org.jetbrains.annotations.Nullable;
public class ThisOrThat<A, B> {
@Nullable A objectA;
@Nullable B objectB;
public ThisOrThat(@Nullable A objectA, @Nullable B objectB) {
this.objectA = objectA;
this.objectB = objectB;
}
public boolean isThis() {
return objectA != null;
}
public boolean isThat() {
return objectB != null;
}
public @Nullable A getThis() {
return objectA;
}
public @Nullable B getThat() {
return objectB;
}
}