public enum RegistrarStrategy extends Enum<RegistrarStrategy>
| 限定符和类型 | 类和说明 |
|---|---|
private static class |
RegistrarStrategy.RegisterStrategyHolder |
| 枚举常量和说明 |
|---|
PARALLEL |
SEQUENTIAL |
| 限定符和类型 | 字段和说明 |
|---|---|
private int |
strategy |
| 限定符和类型 | 方法和说明 |
|---|---|
int |
getStrategy() |
static RegistrarStrategy |
ofStrategy(int strategy) |
static RegistrarStrategy |
ofStrategy(Integer strategy) |
static RegistrarStrategy |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static RegistrarStrategy[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final RegistrarStrategy SEQUENTIAL
public static final RegistrarStrategy PARALLEL
public static RegistrarStrategy[] values()
for (RegistrarStrategy c : RegistrarStrategy.values()) System.out.println(c);
public static RegistrarStrategy valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public int getStrategy()
public static RegistrarStrategy ofStrategy(Integer strategy)
public static RegistrarStrategy ofStrategy(int strategy)
Copyright © 2025 Zodiac. All rights reserved.