public enum TOperationStatus extends java.lang.Enum<TOperationStatus> implements org.apache.thrift.TEnum
Enum Constant and Description |
---|
KEY_EMPTY |
KEY_EXIST |
NOT_FOUND |
SUCCESS |
Modifier and Type | Method and Description |
---|---|
static TOperationStatus |
findByValue(int value)
Find a the enum type by its integer value, as defined in the Thrift IDL.
|
int |
getValue()
Get the integer value of this enum value, as defined in the Thrift IDL.
|
static TOperationStatus |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TOperationStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TOperationStatus KEY_EMPTY
public static final TOperationStatus KEY_EXIST
public static final TOperationStatus NOT_FOUND
public static final TOperationStatus SUCCESS
public static TOperationStatus[] values()
for (TOperationStatus c : TOperationStatus.values()) System.out.println(c);
public static TOperationStatus valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()
getValue
in interface org.apache.thrift.TEnum
public static TOperationStatus findByValue(int value)
Copyright (c) 2016, 2019 Oracle and/or its affiliates. All rights reserved.