Package net.morimekta.providence
Interface PUnion<Union extends PUnion<Union,Field>,Field extends PField>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Field
unionField()
The user should be able to assume that this value never is null.boolean
unionFieldIsSet()
-
-
-
Method Detail
-
unionFieldIsSet
boolean unionFieldIsSet()
- Returns:
- Returns true if the union has a field set. If true
unionField()
will not throw an exception.
-
unionField
@Nonnull Field unionField()
The user should be able to assume that this value never is null.- Returns:
- The field set on the union.
- Throws:
java.lang.IllegalStateException
- If no field is set.
-
-