From 0a8f34c27c6ef93c5c94d17728af62c7607e225f Mon Sep 17 00:00:00 2001 From: Ben Culkin Date: Thu, 3 Dec 2020 19:21:38 -0500 Subject: Rename types to match Java style This renames several interfaces that had names like IWhatever, since that isn't a style that Java uses --- .../java/bjc/data/internals/BoundListHolder.java | 24 +++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/main/java/bjc/data/internals/BoundListHolder.java') diff --git a/src/main/java/bjc/data/internals/BoundListHolder.java b/src/main/java/bjc/data/internals/BoundListHolder.java index 1193c8d..c944252 100644 --- a/src/main/java/bjc/data/internals/BoundListHolder.java +++ b/src/main/java/bjc/data/internals/BoundListHolder.java @@ -3,9 +3,9 @@ package bjc.data.internals; import java.util.function.Function; import java.util.function.UnaryOperator; -import bjc.data.IHolder; +import bjc.data.Holder; import bjc.data.ListHolder; -import bjc.funcdata.IList; +import bjc.funcdata.ListEx; /** * Holds a list, converted into a holder. @@ -13,9 +13,9 @@ import bjc.funcdata.IList; * @author Ben Culkin */ @SuppressWarnings("javadoc") -public class BoundListHolder implements IHolder { +public class BoundListHolder implements Holder { /* The list of contained holders. */ - private final IList> heldHolders; + private final ListEx> heldHolders; /** * Create a new list of holders. @@ -23,17 +23,17 @@ public class BoundListHolder implements IHolder { * @param toHold * The list of holders to, well, hold. */ - public BoundListHolder(final IList> toHold) { + public BoundListHolder(final ListEx> toHold) { heldHolders = toHold; } @Override - public IHolder - bind(final Function> binder) { + public Holder + bind(final Function> binder) { if (binder == null) throw new NullPointerException("Binder must not be null"); - final IList> boundHolders + final ListEx> boundHolders = heldHolders.map(containedHolder -> { return containedHolder.bind(binder); }); @@ -42,7 +42,7 @@ public class BoundListHolder implements IHolder { } @Override - public Function> + public Function> lift(final Function func) { if (func == null) throw new NullPointerException("Function to lift must not be null"); @@ -53,12 +53,12 @@ public class BoundListHolder implements IHolder { } @Override - public IHolder + public Holder map(final Function mapper) { if (mapper == null) throw new NullPointerException("Mapper must not be null"); - final IList> mappedHolders + final ListEx> mappedHolders = heldHolders.map(containedHolder -> { return containedHolder.map(mapper); }); @@ -67,7 +67,7 @@ public class BoundListHolder implements IHolder { } @Override - public IHolder + public Holder transform(final UnaryOperator transformer) { if (transformer == null) throw new NullPointerException("Transformer must not be null"); -- cgit v1.2.3