Package net.morimekta.providence
Class PApplicationExceptionType._Builder
- java.lang.Object
-
- net.morimekta.providence.PEnumBuilder<PApplicationExceptionType>
-
- net.morimekta.providence.PApplicationExceptionType._Builder
-
- All Implemented Interfaces:
PBuilder<PApplicationExceptionType>
- Enclosing class:
- PApplicationExceptionType
public static final class PApplicationExceptionType._Builder extends PEnumBuilder<PApplicationExceptionType>
-
-
Constructor Summary
Constructors Constructor Description _Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PApplicationExceptionTypebuild()Build the instance value.PApplicationExceptionType._BuildersetById(int value)Set the enum entity from integer value as it was defined in the thrift IDL.PApplicationExceptionType._BuildersetByName(java.lang.String name)Set the enum entity from name as it was written in the thrift IDL.booleanvalid()Check if the enum builder has been given a valid value.
-
-
-
Method Detail
-
setById
@Nonnull public PApplicationExceptionType._Builder setById(int value)
Description copied from class:PEnumBuilderSet the enum entity from integer value as it was defined in the thrift IDL.- Specified by:
setByIdin classPEnumBuilder<PApplicationExceptionType>- Parameters:
value- The value to match.- Returns:
- The builder.
-
setByName
@Nonnull public PApplicationExceptionType._Builder setByName(java.lang.String name)
Description copied from class:PEnumBuilderSet the enum entity from name as it was written in the thrift IDL.- Specified by:
setByNamein classPEnumBuilder<PApplicationExceptionType>- Parameters:
name- The name to match.- Returns:
- The builder.
-
valid
public boolean valid()
Description copied from class:PEnumBuilderCheck if the enum builder has been given a valid value.- Specified by:
validin classPEnumBuilder<PApplicationExceptionType>- Returns:
- True if valid.
-
build
public PApplicationExceptionType build()
Description copied from interface:PBuilderBuild the instance value.- Returns:
- The instance value.
-
-