T
- Type for the content of the option.public abstract static class MergeRuleUtils.Option<T>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
(package private) static class |
MergeRuleUtils.Option.None<T> |
(package private) static class |
MergeRuleUtils.Option.Some<T> |
Constructor and Description |
---|
Option() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
For Some values, the equality of the wrapped objects is used.
|
T |
getValue()
Returns the value of this object if is a Some; otherwise, an
exception is thrown.
|
boolean |
isSome() |
public boolean isSome()
public T getValue()
java.lang.IllegalAccessError
- If this object is a None.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object