From dca8e9f586fd595a7995f07788318fb92b8cce79 Mon Sep 17 00:00:00 2001 From: bculkin2442 Date: Thu, 28 Jul 2016 16:44:36 -0400 Subject: Format/Cleanup pass --- .../src/main/java/bjc/utils/data/IHolder.java | 25 +++++++++++----------- 1 file changed, 12 insertions(+), 13 deletions(-) (limited to 'BJC-Utils2/src/main/java/bjc/utils/data/IHolder.java') diff --git a/BJC-Utils2/src/main/java/bjc/utils/data/IHolder.java b/BJC-Utils2/src/main/java/bjc/utils/data/IHolder.java index 58ae5db..b2e4369 100644 --- a/BJC-Utils2/src/main/java/bjc/utils/data/IHolder.java +++ b/BJC-Utils2/src/main/java/bjc/utils/data/IHolder.java @@ -25,8 +25,8 @@ public interface IHolder extends Functor { * The function to bind to the value * @return A holder from binding the value */ - public IHolder - bind(Function> binder); + public IHolder bind( + Function> binder); /** * Apply an action to the value @@ -43,9 +43,8 @@ public interface IHolder extends Functor { } @Override - default - Function, Functor> - fmap(Function func) { + default Function, Functor> fmap( + Function func) { return (argumentFunctor) -> { if (!(argumentFunctor instanceof IHolder)) { throw new IllegalArgumentException( @@ -72,8 +71,8 @@ public interface IHolder extends Functor { * The function to lift over the holder * @return The function lifted over the holder */ - public Function> - lift(Function func); + public Function> lift( + Function func); /** * Make this holder lazy @@ -114,8 +113,8 @@ public interface IHolder extends Functor { * The function to do mapping with * @return A holder with the mapped value */ - public IHolder - map(Function mapper); + public IHolder map( + Function mapper); /** * Replace the held value with a new one @@ -137,8 +136,8 @@ public interface IHolder extends Functor { * The function to transform the value with * @return The holder itself, for easy chaining */ - public IHolder - transform(UnaryOperator transformer); + public IHolder transform( + UnaryOperator transformer); /** * Unwrap the value contained in this holder so that it is no longer @@ -150,6 +149,6 @@ public interface IHolder extends Functor { * The function to use to unwrap the value * @return The unwrapped held value */ - public UnwrappedType - unwrap(Function unwrapper); + public UnwrappedType unwrap( + Function unwrapper); } -- cgit v1.2.3