Moves the portal owner name and owner UUID to the PortalOwner class which makes the TwoTuple unnecessary

This commit is contained in:
2021-10-22 19:51:46 +02:00
parent 485ca284b0
commit 9a0f16e558
9 changed files with 179 additions and 167 deletions

View File

@ -1,43 +0,0 @@
package net.knarcraft.stargate.container;
/**
* This class allows storing two values of any type
*
* @param <K> <p>The first type</p>
* @param <L> <p>The second type</p>
*/
public class TwoTuple<K, L> {
private final K firstValue;
private final L secondValue;
/**
* Instantiate a new TwoTuple
*
* @param firstValue <p>The first value</p>
* @param secondValue <p>The second value</p>
*/
public TwoTuple(K firstValue, L secondValue) {
this.firstValue = firstValue;
this.secondValue = secondValue;
}
/**
* Gets the first value
*
* @return <p>The first value</p>
*/
public K getFirstValue() {
return firstValue;
}
/**
* Gets the second value
*
* @return <p>The second value</p>
*/
public L getSecondValue() {
return secondValue;
}
}