T
- Data type stored within the PStackpublic interface PStackType<T> extends com.aol.cyclops.hkt.alias.Higher<PStackType.µ,T>, org.pcollections.PStack<T>
Modifier and Type | Interface and Description |
---|---|
static class |
PStackType.µ
Witness type
|
static class |
PStackType.Box<T> |
Modifier and Type | Method and Description |
---|---|
static <T> com.aol.cyclops.data.collections.extensions.persistent.PStackX<T> |
narrow(com.aol.cyclops.hkt.alias.Higher<PStackType.µ,T> list)
Convert the HigherKindedType definition for a PStack into
|
static <T> PStackType<T> |
narrowK(com.aol.cyclops.hkt.alias.Higher<PStackType.µ,T> list)
Convert the raw Higher Kinded Type for PStack types into the PStackType type definition class
|
static <T> PStackType<T> |
of(T... values) |
static <T> PStackType<T> |
widen(org.pcollections.PStack<T> list)
Convert a PStack to a simulated HigherKindedType that captures PStack nature
and PStack element data type separately.
|
static <C2,T> com.aol.cyclops.hkt.alias.Higher<C2,com.aol.cyclops.hkt.alias.Higher<PStackType.µ,T>> |
widen2(com.aol.cyclops.hkt.alias.Higher<C2,PStackType<T>> list)
Widen a PStackType nested inside another HKT encoded type
|
minus, minus, minusAll, plus, plus, plusAll, plusAll, subList, subList, with
add, addAll, clear, remove, removeAll, retainAll
static <T> PStackType<T> of(T... values)
static <T> PStackType<T> widen(org.pcollections.PStack<T> list)
list
- PStack to widen to a PStackTypestatic <C2,T> com.aol.cyclops.hkt.alias.Higher<C2,com.aol.cyclops.hkt.alias.Higher<PStackType.µ,T>> widen2(com.aol.cyclops.hkt.alias.Higher<C2,PStackType<T>> list)
list
- HTK encoded type containing a PStack to widenstatic <T> PStackType<T> narrowK(com.aol.cyclops.hkt.alias.Higher<PStackType.µ,T> list)
list
- HKT encoded list into a PStackTypestatic <T> com.aol.cyclops.data.collections.extensions.persistent.PStackX<T> narrow(com.aol.cyclops.hkt.alias.Higher<PStackType.µ,T> list)
list
- Type Constructor to convert back into narrowed type