| Package | Description |
|---|---|
| org.opencastproject.util.data |
| Modifier and Type | Method and Description |
|---|---|
static <A,B> Monadics.Matcher<A,B> |
Monadics.caseA(Function<A,B> f)
Matches lists with exactly one element.
|
static <A,B> Monadics.Matcher<A,B> |
Monadics.caseAN(Function2<A,List<A>,B> f)
Matches lists with at least one element.
|
static <A,B> Monadics.Matcher<A,B> |
Monadics.caseN(Function<List<A>,B> f)
Matches any list.
|
static <A,B> Monadics.Matcher<A,B> |
Monadics.caseNil(Function0<B> f)
Matches the empty list.
|
| Modifier and Type | Method and Description |
|---|---|
<B> B |
Monadics.ListMonadic.match(Monadics.Matcher<A,B>... ms)
Pattern matching on the wrapped list.
|
| Modifier and Type | Method and Description |
|---|---|
<B> B |
Monadics.ListMonadic.match(List<Monadics.Matcher<A,B>> ms)
Pattern matching on the wrapped list.
|
Copyright © 2009–2020 Opencast Project. All rights reserved.