public static enum TiConfiguration.ApiVersion extends Enum<TiConfiguration.ApiVersion>
Modifier and Type | Method and Description |
---|---|
static TiConfiguration.ApiVersion |
fromInt(int version) |
boolean |
isV1() |
boolean |
isV2() |
Kvrpcpb.APIVersion |
toPb() |
static TiConfiguration.ApiVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TiConfiguration.ApiVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TiConfiguration.ApiVersion V1
public static final TiConfiguration.ApiVersion V2
public static TiConfiguration.ApiVersion[] values()
for (TiConfiguration.ApiVersion c : TiConfiguration.ApiVersion.values()) System.out.println(c);
public static TiConfiguration.ApiVersion valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static TiConfiguration.ApiVersion fromInt(int version)
public boolean isV1()
public boolean isV2()
public Kvrpcpb.APIVersion toPb()
Copyright © 2024 PingCAP. All rights reserved.