public abstract class PEnumBuilder<T> extends Object implements PBuilder<T>
Constructor and Description |
---|
PEnumBuilder() |
Modifier and Type | Method and Description |
---|---|
abstract PEnumBuilder<T> |
setById(int value)
Set the enum entity from integer value as it was defined in the thrift
IDL.
|
abstract PEnumBuilder<T> |
setByName(String name)
Set the enum entity from name as it was written in the thrift IDL.
|
abstract boolean |
valid()
Check if the enum builder has been given a valid value.
|
public abstract boolean valid()
@Nonnull public abstract PEnumBuilder<T> setById(int value)
value
- The value to match.@Nonnull public abstract PEnumBuilder<T> setByName(String name)
name
- The name to match.Copyright © 2015–2017 morimekta.net. All rights reserved.