|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.shapelogic.calculation.CollectionCalc
public class CollectionCalc
Normal functional operations used on Java Collections.
Done as eager operations opposed to stream that are done as lazy operations.
Add these operations as they are needed.
Constructor Summary | |
---|---|
CollectionCalc()
|
Method Summary | ||
---|---|---|
static
|
filter(java.util.Collection<In> collection,
Calc1<In,java.lang.Boolean> predicateCalc)
Normal filter with predicate as a Calc1. |
|
static
|
filter(java.util.Collection<In> collection,
Predicate<In> calc)
Normal filter. |
|
static
|
map(java.util.Collection<In> collection,
Calc1<In,Out> calc)
Normal map operations. Maybe there is a better name to use in Java. |
|
static
|
map(java.util.Collection<In> collection,
CalcIndex1<In,Out> calc)
Index map operations. Maybe there is a better name to use in Java. |
|
static
|
mergeSorted(java.util.List<E> input1,
java.util.List<E> input2)
Normal merge of sorted lists. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CollectionCalc()
Method Detail |
---|
public static <In,Out> java.util.Collection<Out> map(java.util.Collection<In> collection, Calc1<In,Out> calc)
In
- Out
- collection
- calc
-
public static <In,Out> java.util.Collection<Out> map(java.util.Collection<In> collection, CalcIndex1<In,Out> calc)
In
- Out
- collection
- calc
-
public static <In> java.util.Collection<In> filter(java.util.Collection<In> collection, Calc1<In,java.lang.Boolean> predicateCalc)
In
- collection
- predicateCalc
-
public static <In> java.util.Collection<In> filter(java.util.Collection<In> collection, Predicate<In> calc)
In
- collection
- predicate
-
public static <E extends java.lang.Comparable<? super E>> java.util.List<E> mergeSorted(java.util.List<E> input1, java.util.List<E> input2)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |