public class SortedSetComprehender extends java.lang.Object implements Comprehender<java.util.SortedSet>
| Constructor and Description |
|---|
SortedSetComprehender() |
| Modifier and Type | Method and Description |
|---|---|
java.util.SortedSet |
empty() |
java.lang.Object |
executeflatMap(java.util.SortedSet t,
java.util.function.Function fn)
Wrapper around flatMap
|
java.lang.Object |
flatMap(java.util.SortedSet t,
java.util.function.Function fn) |
java.util.SortedSet |
fromIterator(java.util.Iterator o) |
java.lang.Class |
getTargetClass() |
java.lang.Object |
map(java.util.SortedSet t,
java.util.function.Function fn)
Wrapper around map
|
java.util.SortedSet |
of(java.lang.Object o) |
java.lang.Object |
resolveForCrossTypeFlatMap(Comprehender comp,
java.util.SortedSet apply)
Answers the question how should this type behave when returned in a flatMap function
by another type? For example - Optional uses comp.of(opt.get()) when a value is present
and comp.empty() when no value is present.
|
java.util.SortedSet |
unwrap(java.lang.Object o) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitfilter, instanceOfT, liftAndFlatMap, liftObject, priority, unwrapOtherMonadTypespublic java.lang.Object resolveForCrossTypeFlatMap(Comprehender comp, java.util.SortedSet apply)
ComprehenderresolveForCrossTypeFlatMap in interface Comprehender<java.util.SortedSet>public java.lang.Object map(java.util.SortedSet t,
java.util.function.Function fn)
Comprehendermap in interface Comprehender<java.util.SortedSet>t - Monadic type being wrappedfn - JDK Function to wrap t.map( i -> fn.apply(i)); public java.lang.Object flatMap(java.util.SortedSet t,
java.util.function.Function fn)
flatMap in interface Comprehender<java.util.SortedSet>public java.util.SortedSet of(java.lang.Object o)
of in interface Comprehender<java.util.SortedSet>public java.util.SortedSet fromIterator(java.util.Iterator o)
fromIterator in interface Comprehender<java.util.SortedSet>public java.util.SortedSet empty()
empty in interface Comprehender<java.util.SortedSet>public java.lang.Class getTargetClass()
getTargetClass in interface Comprehender<java.util.SortedSet>public java.lang.Object executeflatMap(java.util.SortedSet t,
java.util.function.Function fn)
ComprehenderexecuteflatMap in interface Comprehender<java.util.SortedSet>t - Monadic type being wrappedfn - JDK Function to wrap t.flatMap( i -> fn.apply(i)); public java.util.SortedSet unwrap(java.lang.Object o)
unwrap in interface Comprehender<java.util.SortedSet>