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 --- src/main/java/bjc/data/Lazy.java | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'src/main/java/bjc/data/Lazy.java') diff --git a/src/main/java/bjc/data/Lazy.java b/src/main/java/bjc/data/Lazy.java index 8573325..5fcd2ae 100644 --- a/src/main/java/bjc/data/Lazy.java +++ b/src/main/java/bjc/data/Lazy.java @@ -6,7 +6,7 @@ import java.util.function.UnaryOperator; import bjc.data.internals.BoundLazy; import bjc.funcdata.FunctionalList; -import bjc.funcdata.IList; +import bjc.funcdata.ListEx; /** * A holder that holds a means to create a value, but doesn't actually compute @@ -17,7 +17,7 @@ import bjc.funcdata.IList; * @param * The type of the value being held. */ -public class Lazy implements IHolder { +public class Lazy implements Holder { /* The supplier of the type. */ private Supplier valueSupplier; /* The actual type value. */ @@ -26,7 +26,7 @@ public class Lazy implements IHolder { private boolean valueMaterialized; /* The list of pending actions on the value. */ - private IList> actions = new FunctionalList<>(); + private ListEx> actions = new FunctionalList<>(); /** * Create a new lazy value from the specified seed value. @@ -54,16 +54,16 @@ public class Lazy implements IHolder { /* Create a new value from a supplier and a list of actions. */ private Lazy(final Supplier supp, - final IList> pendingActions) { + final ListEx> pendingActions) { valueSupplier = supp; actions = pendingActions; } @Override - public IHolder - bind(final Function> binder) { - final IList> pendingActions = new FunctionalList<>(); + public Holder + bind(final Function> binder) { + final ListEx> pendingActions = new FunctionalList<>(); for (UnaryOperator action : actions) { pendingActions.add(action); @@ -79,15 +79,15 @@ public class Lazy implements IHolder { } @Override - public Function> + public Function> lift(final Function func) { return val -> new Lazy<>(func.apply(val)); } @Override - public IHolder + public Holder map(final Function mapper) { - final IList> pendingActions = new FunctionalList<>(); + final ListEx> pendingActions = new FunctionalList<>(); for (UnaryOperator action : actions) { pendingActions.add(action); @@ -126,7 +126,7 @@ public class Lazy implements IHolder { } @Override - public IHolder + public Holder transform(final UnaryOperator transformer) { actions.add(transformer); -- cgit v1.2.3