From 27bf571d6413c3cc6a5d664b5bddd38d21d7b1cd Mon Sep 17 00:00:00 2001 From: EVE Date: Mon, 13 Mar 2017 16:42:21 -0400 Subject: Formatting --- BJC-Utils2/src/main/java/bjc/utils/data/Pair.java | 25 +++++++++++++---------- 1 file changed, 14 insertions(+), 11 deletions(-) (limited to 'BJC-Utils2/src/main/java/bjc/utils/data/Pair.java') diff --git a/BJC-Utils2/src/main/java/bjc/utils/data/Pair.java b/BJC-Utils2/src/main/java/bjc/utils/data/Pair.java index 74040e8..b22fd28 100644 --- a/BJC-Utils2/src/main/java/bjc/utils/data/Pair.java +++ b/BJC-Utils2/src/main/java/bjc/utils/data/Pair.java @@ -9,16 +9,16 @@ import java.util.function.Function; * @author ben * * @param - * The type of the left value + * The type of the left value * @param - * The type of the right value + * The type of the right value */ public class Pair implements IPair { // The left value - private LeftType leftValue; + private LeftType leftValue; // The right value - private RightType rightValue; + private RightType rightValue; /** * Create a new pair with both sides set to null @@ -31,9 +31,9 @@ public class Pair implements IPair { * Create a new pair with both sides set to the specified values * * @param left - * The value of the left side + * The value of the left side * @param right - * The value of the right side + * The value of the right side */ public Pair(LeftType left, RightType right) { leftValue = left; @@ -51,7 +51,8 @@ public class Pair implements IPair { } @Override - public IPair bindLeft(Function> leftBinder) { + public IPair bindLeft( + Function> leftBinder) { if (leftBinder == null) { throw new NullPointerException("Binder must not be null"); } @@ -60,7 +61,8 @@ public class Pair implements IPair { } @Override - public IPair bindRight(Function> rightBinder) { + public IPair bindRight( + Function> rightBinder) { if (rightBinder == null) { throw new NullPointerException("Binder must not be null"); } @@ -73,9 +75,10 @@ public class Pair implements IPair { IPair otherPair, BiFunction leftCombiner, BiFunction rightCombiner) { - return otherPair.bind((otherLeft, otherRight) -> { - return new Pair<>(leftCombiner.apply(leftValue, otherLeft), rightCombiner.apply(rightValue, otherRight)); - }); + return otherPair.bind((otherLeft, otherRight) -> { + return new Pair<>(leftCombiner.apply(leftValue, otherLeft), + rightCombiner.apply(rightValue, otherRight)); + }); } @Override -- cgit v1.2.3