From c8a00b789671d59589bcb5520c1e9d208bcc27f6 Mon Sep 17 00:00:00 2001 From: bculkin2442 Date: Mon, 11 Apr 2016 21:54:44 -0400 Subject: Work on restructing data. --- BJC-Utils2/src/main/java/bjc/utils/data/IPair.java | 26 +++------------------- 1 file changed, 3 insertions(+), 23 deletions(-) (limited to 'BJC-Utils2/src/main/java/bjc/utils/data/IPair.java') diff --git a/BJC-Utils2/src/main/java/bjc/utils/data/IPair.java b/BJC-Utils2/src/main/java/bjc/utils/data/IPair.java index a20ff36..98f425f 100644 --- a/BJC-Utils2/src/main/java/bjc/utils/data/IPair.java +++ b/BJC-Utils2/src/main/java/bjc/utils/data/IPair.java @@ -2,7 +2,6 @@ package bjc.utils.data; import java.util.function.BiConsumer; import java.util.function.BiFunction; -import java.util.function.Function; /** * An interface representing a pair of values @@ -14,26 +13,7 @@ import java.util.function.Function; * @param * The type stored in the right side of the pair */ -public interface IPair { - - /** - * Create a new pair by applying the given functions to the left/right. - * Does not change the internal contents of this pair. - * - * @param - * The new left type of the pair - * @param - * The new right type of the pair - * - * @param leftTransformer - * The function to apply to the left value. - * @param rightTransformer - * The function to apply to the right value. - * @return A new pair containing the two modified values. - */ - public IPair apply(Function leftTransformer, - Function rightTransformer); - +public interface IPair { /** * Apply a function to the two internal values that returns a new pair. * @@ -47,8 +27,8 @@ public interface IPair { * The function to use as a bind * @return The new pair */ - public IPair - bind(BiFunction> binder); + public IPair bind( + BiFunction> binder); /** * Execute an action with the values of this pair. Has no effect on the -- cgit v1.2.3