public enum LogicalOperation extends Enum<LogicalOperation>
Enum Constant and Description |
---|
LogicalAnd |
LogicalOr |
LogicalXor |
Modifier and Type | Method and Description |
---|---|
boolean |
apply(Collection<Boolean> items)
Apply the logical operation for the items
|
String |
toString() |
static LogicalOperation |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LogicalOperation[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LogicalOperation LogicalOr
public static final LogicalOperation LogicalAnd
public static final LogicalOperation LogicalXor
public static LogicalOperation[] values()
for (LogicalOperation c : LogicalOperation.values()) System.out.println(c);
public static LogicalOperation 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 boolean apply(Collection<Boolean> items)
items
- the itemspublic String toString()
toString
in class Enum<LogicalOperation>
Copyright © 2020–2022 Leibniz Institute for Natural Product Research and Infection Biology - Hans Knöll Institute (HKI). All rights reserved.