diff options
| author | bculkin2442 <bjculkin@mix.wvu.edu> | 2016-03-31 11:43:21 -0400 |
|---|---|---|
| committer | bculkin2442 <bjculkin@mix.wvu.edu> | 2016-03-31 11:43:21 -0400 |
| commit | 8a8b457c98e207d809a7616e73eb59bfe197a7a5 (patch) | |
| tree | 36fcbb7f10e92adbfb866fced7f27af1ef89f636 /BJC-Utils2/src/main/java/bjc/utils/data/IHolder.java | |
| parent | 32b1b46fcc855fffe6b0dddd10442a9a4f1544d2 (diff) | |
More code maintenance
Diffstat (limited to 'BJC-Utils2/src/main/java/bjc/utils/data/IHolder.java')
| -rw-r--r-- | BJC-Utils2/src/main/java/bjc/utils/data/IHolder.java | 16 |
1 files changed, 8 insertions, 8 deletions
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 3675842..6290d5f 100644 --- a/BJC-Utils2/src/main/java/bjc/utils/data/IHolder.java +++ b/BJC-Utils2/src/main/java/bjc/utils/data/IHolder.java @@ -17,10 +17,10 @@ public interface IHolder<T> { /** * Call a provided function with the value being held * - * @param f + * @param action * The function to call */ - public void doWith(Consumer<T> f); + public void doWith(Consumer<T> action); /** * Return the result of applying the given transformation to the held @@ -29,21 +29,21 @@ public interface IHolder<T> { * @param <NewT> * The new type of the held value * - * @param f + * @param transformer * The transformation to apply * @return A holder with the transformed value */ - public <NewT> IHolder<NewT> map(Function<T, NewT> f); + public <NewT> IHolder<NewT> map(Function<T, NewT> transformer); /** * Apply the given transformation to the held value. Returns the holder * for allowing chaining of transforms * - * @param f + * @param transformer * The transform to apply to the value * @return The holder */ - public IHolder<T> transform(Function<T, T> f); + public IHolder<T> transform(Function<T, T> transformer); /** * Returns a raw mapped value, not contained in a GenHolder @@ -51,9 +51,9 @@ public interface IHolder<T> { * @param <E> * The type of the value that is the end result * - * @param f + * @param unwrapper * The function to use for mapping the value * @return The mapped value outside of a GenHolder */ - public <E> E unwrap(Function<T, E> f); + public <E> E unwrap(Function<T, E> unwrapper); }
\ No newline at end of file |
