diff options
| author | bculkin2442 <bjculkin@mix.wvu.edu> | 2016-04-18 19:56:32 -0400 |
|---|---|---|
| committer | bculkin2442 <bjculkin@mix.wvu.edu> | 2016-04-18 19:56:32 -0400 |
| commit | b4f5f98c0aa7fc892e96771ff2df729e61c21f74 (patch) | |
| tree | 09820cc267577c295be7bf33dc5deabf662cb37c /BJC-Utils2/src/main/java/bjc/utils/funcdata/IFunctionalList.java | |
| parent | 7c12fd8fe169944152ca73f0da4e8fe8e280f648 (diff) | |
Minor code changes
Diffstat (limited to 'BJC-Utils2/src/main/java/bjc/utils/funcdata/IFunctionalList.java')
| -rw-r--r-- | BJC-Utils2/src/main/java/bjc/utils/funcdata/IFunctionalList.java | 24 |
1 files changed, 15 insertions, 9 deletions
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<ContainedType> { * The predicate to match by * @return A list containing all elements that match the predicate */ - IFunctionalList<ContainedType> getMatching( - Predicate<ContainedType> matchPredicate); + IFunctionalList<ContainedType> + getMatching(Predicate<ContainedType> matchPredicate); /** * Retrieve the size of the wrapped list @@ -200,8 +200,8 @@ public interface IFunctionalList<ContainedType> { * The function to apply to each element in the list * @return A new list containing the mapped elements of this list. */ - <MappedType> IFunctionalList<MappedType> map( - Function<ContainedType, MappedType> elementTransformer); + <MappedType> IFunctionalList<MappedType> + map(Function<ContainedType, MappedType> elementTransformer); /** * Zip two lists into a list of pairs @@ -214,8 +214,8 @@ public interface IFunctionalList<ContainedType> { * @return A list containing pairs of this element and the specified * list */ - <OtherType> IFunctionalList<IPair<ContainedType, OtherType>> pairWith( - IFunctionalList<OtherType> rightList); + <OtherType> IFunctionalList<IPair<ContainedType, OtherType>> + pairWith(IFunctionalList<OtherType> rightList); /** * Partition this list into a list of sublists @@ -224,8 +224,8 @@ public interface IFunctionalList<ContainedType> { * The size of elements to put into each one of the sublists * @return A list partitioned into partitions of size nPerPart */ - IFunctionalList<IFunctionalList<ContainedType>> partition( - int numberPerPartition); + IFunctionalList<IFunctionalList<ContainedType>> + partition(int numberPerPartition); /** * Prepend an item to the list @@ -325,10 +325,16 @@ public interface IFunctionalList<ContainedType> { * @return An iterable view onto the list */ Iterable<ContainedType> toIterable(); - + /** * Get the tail of this list (the list without the first element + * * @return The list without the first element */ public IFunctionalList<ContainedType> tail(); + + /** + * Reverse the contents of this list in place + */ + void reverse(); }
\ No newline at end of file |
