TntFill Fixed & Code Cleanup
This commit is contained in:
27
src/main/java/com/massivecraft/factions/util/Pair.java
Normal file
27
src/main/java/com/massivecraft/factions/util/Pair.java
Normal file
@@ -0,0 +1,27 @@
|
||||
package com.massivecraft.factions.util;
|
||||
|
||||
/**
|
||||
* Factions - Developed by FactionsUUID Team.
|
||||
*/
|
||||
public class Pair<Left, Right> {
|
||||
|
||||
public static <Left, Right> Pair<Left, Right> of(Left left, Right right) {
|
||||
return new Pair<>(left, right);
|
||||
}
|
||||
|
||||
private final Left left;
|
||||
private final Right right;
|
||||
|
||||
private Pair(Left left, Right right) {
|
||||
this.left = left;
|
||||
this.right = right;
|
||||
}
|
||||
|
||||
public Left getLeft() {
|
||||
return this.left;
|
||||
}
|
||||
|
||||
public Right getRight() {
|
||||
return this.right;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user