Package net.morimekta.providence
Interface PUnion<Union extends PUnion<Union>>
-
- All Superinterfaces:
java.lang.Comparable<Union>
,PMessage<Union>
,PMessageOrBuilder<Union>
,PValue<Union>
,net.morimekta.util.Stringable
public interface PUnion<Union extends PUnion<Union>> extends PMessage<Union>
Base class for all unions.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description PField<Union>
unionField()
The user should be able to assume that this value never is null.boolean
unionFieldIsSet()
-
Methods inherited from interface net.morimekta.providence.PMessage
asString, get, has, mergeWith, mutate
-
Methods inherited from interface net.morimekta.providence.PMessageOrBuilder
descriptor, get, has, toBuilder, toMessage
-
-
-
-
Method Detail
-
unionFieldIsSet
boolean unionFieldIsSet()
- Returns:
- Returns true if the union has a field set. If true
unionField()
will not throw an exception.
-
-