public enum SourceSinkType extends Enum<SourceSinkType>
| Enum Constant and Description |
|---|
Both |
Neither |
Sink |
Source |
Undefined |
| Modifier and Type | Method and Description |
|---|---|
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
|
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)
Returns the enum constant of this type with the specified name.
|
static SourceSinkType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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 - 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 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 addCopyright © 2021 Fraunhofer SIT. All rights reserved.