- java.lang.Object
-
- net.morimekta.providence.descriptor.PDeclaredDescriptor<T>
-
- net.morimekta.providence.descriptor.PMessageDescriptor<T,F>
-
- net.morimekta.providence.descriptor.PUnionDescriptor<T,F>
-
- All Implemented Interfaces:
PDescriptor
public abstract class PUnionDescriptor<T extends PMessage<T,F>,F extends PField> extends PMessageDescriptor<T,F>
The definition of a thrift union.
-
-
Constructor Summary
Constructors Constructor Description PUnionDescriptor(java.lang.String packageName, java.lang.String name, java.util.function.Supplier<PMessageBuilder<T,F>> builderSupplier, boolean simple)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PMessageVariant
getVariant()
-
Methods inherited from class net.morimekta.providence.descriptor.PMessageDescriptor
builder, equals, fieldForId, fieldForName, findFieldById, findFieldByName, getBuilderSupplier, getField, getField, getFields, getType, hashCode, isSimple
-
Methods inherited from class net.morimekta.providence.descriptor.PDeclaredDescriptor
getDefaultValue, getName, getProgramName, getQualifiedName, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.morimekta.providence.descriptor.PDescriptor
getQualifiedName
-
-
-
-
Constructor Detail
-
PUnionDescriptor
public PUnionDescriptor(java.lang.String packageName, java.lang.String name, java.util.function.Supplier<PMessageBuilder<T,F>> builderSupplier, boolean simple)
-
-
Method Detail
-
getVariant
@Nonnull public PMessageVariant getVariant()
- Specified by:
getVariant
in classPMessageDescriptor<T extends PMessage<T,F>,F extends PField>
- Returns:
- The struct variant.
-
-