Package net.morimekta.providence
Class PApplicationExceptionType._Builder
- java.lang.Object
-
- net.morimekta.providence.PEnumBuilder<PApplicationExceptionType>
-
- net.morimekta.providence.PApplicationExceptionType._Builder
-
- 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 PApplicationExceptionType
build()
PApplicationExceptionType._Builder
setById(int value)
Set the enum entity from integer value as it was defined in the thrift IDL.PApplicationExceptionType._Builder
setByName(java.lang.String name)
Set the enum entity from name as it was written in the thrift IDL.boolean
valid()
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:PEnumBuilder
Set the enum entity from integer value as it was defined in the thrift IDL.- Specified by:
setById
in 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:PEnumBuilder
Set the enum entity from name as it was written in the thrift IDL.- Specified by:
setByName
in classPEnumBuilder<PApplicationExceptionType>
- Parameters:
name
- The name to match.- Returns:
- The builder.
-
valid
public boolean valid()
Description copied from class:PEnumBuilder
Check if the enum builder has been given a valid value.- Specified by:
valid
in classPEnumBuilder<PApplicationExceptionType>
- Returns:
- True if valid.
-
build
public PApplicationExceptionType build()
- Specified by:
build
in classPEnumBuilder<PApplicationExceptionType>
-
-