The library provides a kind of discriminated unions for Java: OneOf<T0, ..., Tn>
holds the only value of the listed
types T0
...Tn
.
Inspired by OneOf library for C#.
You can find latest release on Maven Central.
- Maven:
<dependency>
<groupId>io.upwake</groupId>
<artifactId>oneof</artifactId>
<version>1.0.0</version>
</dependency>
- Gradle:
implementation("io.upwake:oneof:1.0.0")
TODO: should be described