public class Identity<T> extends java.lang.Object implements Higher<Witness.identity,T>, java.lang.Iterable<T>
Modifier and Type | Class and Description |
---|---|
static class |
Identity.Instances |
Constructor and Description |
---|
Identity() |
Modifier and Type | Method and Description |
---|---|
Active<Witness.identity,T> |
allTypeclasses() |
AnyMValue<Witness.identity,T> |
anyM() |
<R> Identity<R> |
coflatMap(java.util.function.Function<? super Identity<? super T>,? extends R> fn) |
<W1> Coproduct<W1,Witness.identity,T> |
coproduct(InstanceDefinitions<W1> def2) |
T |
extract() |
<R> Identity<R> |
flatMap(java.util.function.Function<? super T,? extends Identity<? extends R>> fn) |
T |
get() |
java.util.Iterator<T> |
iterator() |
static <T> Cokleisli<Witness.identity,T,Identity<T>> |
kindCokleisli() |
static <T> Kleisli<Witness.identity,Identity<T>,T> |
kindKleisli() |
<R> Identity<R> |
map(java.util.function.Function<? super T,? extends R> fn) |
<W2,R> Nested<Witness.identity,W2,R> |
mapM(java.util.function.Function<? super T,? extends Higher<W2,R>> fn,
InstanceDefinitions<W2> defs) |
static <T> Identity<T> |
narrow(Identity<? extends T> id) |
static <T> Identity<T> |
narrowK(Higher<Witness.identity,T> ds) |
Identity<Identity<T>> |
nest() |
static <W1,T> Nested<Witness.identity,W1,T> |
nested(Identity<Higher<W1,T>> nested,
InstanceDefinitions<W1> def2) |
static <T> Identity<T> |
of(T value) |
<W1> Product<Witness.identity,W1,T> |
product(Active<W1,T> active) |
static <T,R> Identity<R> |
tailRec(T initial,
java.util.function.Function<? super T,? extends Identity<? extends Xor<T,R>>> fn) |
<R> R |
visit(java.util.function.Function<? super T,? extends R> fn) |
static <T> Higher<Witness.identity,T> |
widen(Identity<T> narrow) |
public static <T,R> Identity<R> tailRec(T initial, java.util.function.Function<? super T,? extends Identity<? extends Xor<T,R>>> fn)
public static <T> Identity<T> of(T value)
public static <W1,T> Nested<Witness.identity,W1,T> nested(Identity<Higher<W1,T>> nested, InstanceDefinitions<W1> def2)
public <W1> Product<Witness.identity,W1,T> product(Active<W1,T> active)
public <W1> Coproduct<W1,Witness.identity,T> coproduct(InstanceDefinitions<W1> def2)
public T get()
public T extract()
public <R> R visit(java.util.function.Function<? super T,? extends R> fn)
public <R> Identity<R> coflatMap(java.util.function.Function<? super Identity<? super T>,? extends R> fn)
public <R> Identity<R> flatMap(java.util.function.Function<? super T,? extends Identity<? extends R>> fn)
public AnyMValue<Witness.identity,T> anyM()
public static <T> Identity<T> narrowK(Higher<Witness.identity,T> ds)
public Active<Witness.identity,T> allTypeclasses()
public <W2,R> Nested<Witness.identity,W2,R> mapM(java.util.function.Function<? super T,? extends Higher<W2,R>> fn, InstanceDefinitions<W2> defs)
public java.util.Iterator<T> iterator()
iterator
in interface java.lang.Iterable<T>
public static <T> Kleisli<Witness.identity,Identity<T>,T> kindKleisli()
public static <T> Higher<Witness.identity,T> widen(Identity<T> narrow)
public static <T> Cokleisli<Witness.identity,T,Identity<T>> kindCokleisli()