-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- removal of all reliance on its dependencies
- Loading branch information
1 parent
dd6c48c
commit 7bcab68
Showing
7 changed files
with
72 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
src/main/java/me/srrapero720/watermedia/tools/PairTool.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package me.srrapero720.watermedia.tools; | ||
|
||
import java.util.function.Supplier; | ||
|
||
public class PairTool<K, V> implements Supplier<V> { | ||
|
||
private final K left; | ||
private final V right; | ||
public PairTool(K left, V right) { | ||
this.left = left; | ||
this.right = right; | ||
} | ||
|
||
public K getLeft() { | ||
return left; | ||
} | ||
|
||
public V getRight() { | ||
return right; | ||
} | ||
|
||
public K getKey() { | ||
return left; | ||
} | ||
|
||
public V getValue() { | ||
return right; | ||
} | ||
|
||
@Override | ||
public V get() { | ||
return right; | ||
} | ||
} |