Serializable, Comparable<Region.Op>public static enum Region.Op extends Enum<Region.Op>
| 枚举常量 | 说明 |
|---|---|
DIFFERENCE |
Indicates an operation to obtain the part of the current region, which is different from the target region.
|
INTERSECT |
Indicates an operation to obtain the part where the current region intersects the target region.
|
REPLACE |
Indicates an operation to replace the current region with the target region.
|
REVERSE_DIFFERENCE |
Obtains the part of the target region, which is different from the current region.
|
UNION |
Indicates an operation to obtain the union of the current region and the target region.
|
XOR |
Indicates an operation to obtain the union of the current region and the target region,
with the intersection between the two removed.
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
int |
value() |
Obtains the enumeration identifier of the region operation type.
|
static Region.Op |
valueOf(String name) |
返回带有指定名称的该类型的枚举常量。
字符串必须与用于声明该类型的枚举常量的
标识符完全匹配。(不允许有多余
的空格字符。)
|
static Region.Op[] |
values() |
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。该方法可用于迭代
常量, 如下所示:
for (Region.Op c : Region.Op.values()) System.out.println(c); |
public static final Region.Op DIFFERENCE
public static final Region.Op INTERSECT
public static final Region.Op UNION
public static final Region.Op XOR
public static final Region.Op REVERSE_DIFFERENCE
public static final Region.Op REPLACE
public static Region.Op[] values()
for (Region.Op c : Region.Op.values()) System.out.println(c);
public static Region.Op valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public int value()