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/Identity.java | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) (limited to 'BJC-Utils2/src/main/java/bjc/utils/data/Identity.java') diff --git a/BJC-Utils2/src/main/java/bjc/utils/data/Identity.java b/BJC-Utils2/src/main/java/bjc/utils/data/Identity.java index 8fcaf98..aa3f7aa 100644 --- a/BJC-Utils2/src/main/java/bjc/utils/data/Identity.java +++ b/BJC-Utils2/src/main/java/bjc/utils/data/Identity.java @@ -14,7 +14,7 @@ import java.util.function.UnaryOperator; * @author ben * * @param - * The type contained in the holder + * The type contained in the holder */ public class Identity implements IHolder { private ContainedType heldValue; @@ -30,15 +30,14 @@ public class Identity implements IHolder { * Create a holder holding the specified value * * @param value - * The value to hold + * The value to hold */ public Identity(ContainedType value) { heldValue = value; } @Override - public IHolder bind( - Function> binder) { + public IHolder bind(Function> binder) { return binder.apply(heldValue); } @@ -89,16 +88,14 @@ public class Identity implements IHolder { } @Override - public Function> lift( - Function func) { + public Function> lift(Function func) { return (val) -> { return new Identity<>(func.apply(val)); }; } @Override - public IHolder map( - Function mapper) { + public IHolder map(Function mapper) { return new Identity<>(mapper.apply(heldValue)); } @@ -108,16 +105,14 @@ public class Identity implements IHolder { } @Override - public IHolder transform( - UnaryOperator transformer) { + public IHolder transform(UnaryOperator transformer) { heldValue = transformer.apply(heldValue); return this; } @Override - public UnwrappedType unwrap( - Function unwrapper) { + public UnwrappedType unwrap(Function unwrapper) { return unwrapper.apply(heldValue); } } \ No newline at end of file -- cgit v1.2.3