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 FieldunionField()The user should be able to assume that this value never is null.booleanunionFieldIsSet()
-
-
-
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.
-
-