Ternary Logic
akshaisarma
released this
30 Oct 18:01
·
60 commits
to master
since this release
This release adds ternary logic support and changes the return type for containsKey, containsValue, compareTo, equalTo in TypedObject to be the boxed types.
- TypedObject no longer implements Comparable since TypedObject#compareTo returns Integer instead of an int to be able return NULL
- TypedObject#equalTo now returns a Boolean to return NULL
- Type#canCompare now returns false if either Type is Type.NULL
- TypedObject#containsKey now returns Boolean and returns true if the key was found as before. It returns NULL if the key was not found within the type but null was (or if a nested MAP itself was null). It returns false otherwise.
- TypedObject#containsValue now returns Boolean and returns true if the value was found as before. It returns NULL if the value was not found but null was. It returns false otherwise.