coherence-community / oracle-bedrock

Oracle Bedrock
Other
55 stars 31 forks source link

Introduce Trilean (Tristate) type to support true, false and unknown return values #346

Closed brianoliver closed 8 years ago

brianoliver commented 8 years ago

As a developer I often need to return one of three values, true, false or unknown. While using Java 8 Optional may be possible, these aren't serializable and thus can be passed between application processes. Consequently we need a simple enum that provides this capability.