public enum SourceSinkType extends Enum<SourceSinkType>
| 限定符和类型 | 方法和说明 |
|---|---|
SourceSinkType |
addType(SourceSinkType toAdd)
Adds the given source / sink type to the combined type.
|
static SourceSinkType |
fromFlags(boolean isSink,
boolean isSource)
Converts boolean flags (is source, is sink) into a source/sink type
|
static SourceSinkType |
fromString(String sourceSinkTypeString) |
boolean |
isSink()
Gets whether this type represents a sink
|
boolean |
isSource()
Gets whether this type represents a source
|
SourceSinkType |
removeType(SourceSinkType toRemove)
Removes the given source / sink type from the combined type.
|
static SourceSinkType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static SourceSinkType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final SourceSinkType Undefined
public static final SourceSinkType Source
public static final SourceSinkType Sink
public static final SourceSinkType Neither
public static final SourceSinkType Both
public static SourceSinkType[] values()
for (SourceSinkType c : SourceSinkType.values()) System.out.println(c);
public static SourceSinkType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public static SourceSinkType fromFlags(boolean isSink, boolean isSource)
isSink - True if this method is a sinkisSource - True if this method is a sourcepublic boolean isSource()
public boolean isSink()
public SourceSinkType removeType(SourceSinkType toRemove)
toRemove - The element to removepublic SourceSinkType addType(SourceSinkType toAdd)
toAdd - The element to addpublic static SourceSinkType fromString(String sourceSinkTypeString)
Copyright © 2022 Fraunhofer SIT. All rights reserved.