mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-03 22:15:45 +00:00
ThisOrThat is unused; delete it
This commit is contained in:
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;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
Reference in new issue
Block a user