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