| Package | Description |
|---|---|
| org.organicdesign.fp |
A data definition language, and other tools for writing functional Java.
|
| Modifier and Type | Class and Description |
|---|---|
static class |
Or.Bad<G,B>
Represents the presence of a Bad value (and absence of a Good).
|
static class |
Or.Good<G,B>
Represents the presence of a Good value (and absence of a Bad).
|
| Modifier and Type | Method and Description |
|---|---|
static <B,G,R> R |
Or.patMatch(Or<G,B> either,
Function1<? super G,R> g,
Function1<? super B,R> b)
Pattern-match, applying the first function if the given either is a Bad, the second if it's a Good.
|
Copyright © 2017. All rights reserved.