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/BoundLazyPair.java | 40 +++++++++++----------- 1 file changed, 20 insertions(+), 20 deletions(-) (limited to 'src/main/java/bjc/data/internals/BoundLazyPair.java') diff --git a/src/main/java/bjc/data/internals/BoundLazyPair.java b/src/main/java/bjc/data/internals/BoundLazyPair.java index e081c04..91981de 100644 --- a/src/main/java/bjc/data/internals/BoundLazyPair.java +++ b/src/main/java/bjc/data/internals/BoundLazyPair.java @@ -4,8 +4,8 @@ import java.util.function.BiFunction; import java.util.function.Function; import java.util.function.Supplier; -import bjc.data.IHolder; -import bjc.data.IPair; +import bjc.data.Holder; +import bjc.data.Pair; import bjc.data.Identity; import bjc.data.LazyPair; @@ -16,17 +16,17 @@ import bjc.data.LazyPair; */ @SuppressWarnings("javadoc") public class BoundLazyPair - implements IPair { + implements Pair { /* The supplier of the left value. */ private final Supplier leftSupplier; /* The supplier of the right value. */ private final Supplier rightSupplier; /* The binder to transform values. */ - private final BiFunction> binder; + private final BiFunction> binder; /* The bound pair. */ - private IPair boundPair; + private Pair boundPair; /* Whether the pair has been bound yet. */ private boolean pairBound; @@ -46,20 +46,20 @@ public class BoundLazyPair */ public BoundLazyPair(final Supplier leftSupp, final Supplier rightSupp, - final BiFunction> bindr) { + final BiFunction> bindr) { leftSupplier = leftSupp; rightSupplier = rightSupp; binder = bindr; } @Override - public IPair bind( - final BiFunction> bindr) { + public Pair bind( + final BiFunction> bindr) { if (bindr == null) throw new NullPointerException("Binder must not be null"); - final IHolder> newPair = new Identity<>(boundPair); - final IHolder newPairMade = new Identity<>(pairBound); + final Holder> newPair = new Identity<>(boundPair); + final Holder newPairMade = new Identity<>(pairBound); final Supplier leftSupp = () -> { if (!newPairMade.getValue()) { @@ -91,13 +91,13 @@ public class BoundLazyPair } @Override - public IPair - bindLeft(final Function> leftBinder) { + public Pair + bindLeft(final Function> leftBinder) { if (leftBinder == null) throw new NullPointerException("Left binder must not be null"); final Supplier leftSupp = () -> { - IPair newPair = boundPair; + Pair newPair = boundPair; if (!pairBound) { /* @@ -113,13 +113,13 @@ public class BoundLazyPair } @Override - public IPair - bindRight(final Function> rightBinder) { + public Pair + bindRight(final Function> rightBinder) { if (rightBinder == null) throw new NullPointerException("Right binder must not be null"); final Supplier rightSupp = () -> { - IPair newPair = boundPair; + Pair newPair = boundPair; if (!pairBound) { /* @@ -136,8 +136,8 @@ public class BoundLazyPair @Override public - IPair - combine(final IPair otherPair, + Pair + combine(final Pair otherPair, final BiFunction leftCombiner, final BiFunction rightCombiner) { if (otherPair == null) { @@ -157,7 +157,7 @@ public class BoundLazyPair } @Override - public IPair + public Pair mapLeft(final Function mapper) { if (mapper == null) throw new NullPointerException("Mapper must not be null"); @@ -184,7 +184,7 @@ public class BoundLazyPair } @Override - public IPair + public Pair mapRight(final Function mapper) { if (mapper == null) throw new NullPointerException("Mapper must not be null"); -- cgit v1.2.3