From b4f5f98c0aa7fc892e96771ff2df729e61c21f74 Mon Sep 17 00:00:00 2001 From: bculkin2442 Date: Mon, 18 Apr 2016 19:56:32 -0400 Subject: Minor code changes --- .../java/bjc/utils/funcdata/IFunctionalList.java | 24 ++++++++++++++-------- 1 file changed, 15 insertions(+), 9 deletions(-) (limited to 'BJC-Utils2/src/main/java/bjc/utils/funcdata/IFunctionalList.java') diff --git a/BJC-Utils2/src/main/java/bjc/utils/funcdata/IFunctionalList.java b/BJC-Utils2/src/main/java/bjc/utils/funcdata/IFunctionalList.java index f22df57..2c5d2ae 100644 --- a/BJC-Utils2/src/main/java/bjc/utils/funcdata/IFunctionalList.java +++ b/BJC-Utils2/src/main/java/bjc/utils/funcdata/IFunctionalList.java @@ -172,8 +172,8 @@ public interface IFunctionalList { * The predicate to match by * @return A list containing all elements that match the predicate */ - IFunctionalList getMatching( - Predicate matchPredicate); + IFunctionalList + getMatching(Predicate matchPredicate); /** * Retrieve the size of the wrapped list @@ -200,8 +200,8 @@ public interface IFunctionalList { * The function to apply to each element in the list * @return A new list containing the mapped elements of this list. */ - IFunctionalList map( - Function elementTransformer); + IFunctionalList + map(Function elementTransformer); /** * Zip two lists into a list of pairs @@ -214,8 +214,8 @@ public interface IFunctionalList { * @return A list containing pairs of this element and the specified * list */ - IFunctionalList> pairWith( - IFunctionalList rightList); + IFunctionalList> + pairWith(IFunctionalList rightList); /** * Partition this list into a list of sublists @@ -224,8 +224,8 @@ public interface IFunctionalList { * The size of elements to put into each one of the sublists * @return A list partitioned into partitions of size nPerPart */ - IFunctionalList> partition( - int numberPerPartition); + IFunctionalList> + partition(int numberPerPartition); /** * Prepend an item to the list @@ -325,10 +325,16 @@ public interface IFunctionalList { * @return An iterable view onto the list */ Iterable toIterable(); - + /** * Get the tail of this list (the list without the first element + * * @return The list without the first element */ public IFunctionalList tail(); + + /** + * Reverse the contents of this list in place + */ + void reverse(); } \ No newline at end of file -- cgit v1.2.3