Class PseudoBoolean
- java.lang.Object
-
- net.ssehub.easy.instantiation.core.model.vilTypes.PseudoBoolean
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.BooleanDEFAULT
-
Constructor Summary
Constructors Modifier Constructor Description protectedPseudoBoolean()Prevents external instantiation.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanand(boolean b1, boolean b2)Represents the Boolean "and" operation.static booleanequals(boolean b1, boolean b2)Represents the equality operation for Booleans.static TypeDescriptor<?>getType(java.lang.Boolean value)Returns the type ofvalue.static booleaniff(boolean b1, boolean b2)Represents the Boolean "iff" operation.static booleanimplies(boolean b1, boolean b2)Represents the Boolean "implies" operation.static booleannot(boolean val)Represents the Boolean "or" operation.static booleanor(boolean b1, boolean b2)Represents the Boolean "or" operation.static java.lang.StringtoString(boolean b0)Returns the string value ofb0.static booleanunequals(boolean b1, boolean b2)Represents the unequality operation for Booleans.static booleanxor(boolean b1, boolean b2)Represents the Boolean "xor" operation.
-
-
-
Method Detail
-
and
public static boolean and(boolean b1, boolean b2)Represents the Boolean "and" operation.- Parameters:
b1- the first boolean to be consideredb2- the second boolean to be considered- Returns:
- b1 & b2
-
or
public static boolean or(boolean b1, boolean b2)Represents the Boolean "or" operation.- Parameters:
b1- the first boolean to be consideredb2- the second boolean to be considered- Returns:
- b1 | b2
-
xor
public static boolean xor(boolean b1, boolean b2)Represents the Boolean "xor" operation.- Parameters:
b1- the first boolean to be consideredb2- the second boolean to be considered- Returns:
- b1 ^ b2
-
not
public static boolean not(boolean val)
Represents the Boolean "or" operation.- Parameters:
val- the boolean to be negated- Returns:
- !val
-
equals
public static boolean equals(boolean b1, boolean b2)Represents the equality operation for Booleans.- Parameters:
b1- the first boolean to be consideredb2- the second boolean to be considered- Returns:
- b1 == b2
-
unequals
public static boolean unequals(boolean b1, boolean b2)Represents the unequality operation for Booleans.- Parameters:
b1- the first boolean to be consideredb2- the second boolean to be considered- Returns:
- b1 != b2
-
implies
public static boolean implies(boolean b1, boolean b2)Represents the Boolean "implies" operation.- Parameters:
b1- the first boolean to be consideredb2- the second boolean to be considered- Returns:
- b1 ^ b2
-
iff
public static boolean iff(boolean b1, boolean b2)Represents the Boolean "iff" operation.- Parameters:
b1- the first boolean to be consideredb2- the second boolean to be considered- Returns:
- b1 ^ b2
-
toString
public static java.lang.String toString(boolean b0)
Returns the string value ofb0.- Parameters:
b0- the boolean to be turned into a string- Returns:
- the string value
-
getType
public static TypeDescriptor<?> getType(java.lang.Boolean value)
Returns the type ofvalue. "Overrides"PseudoAny.getType(Object).- Parameters:
value- the Boolean to return the type for- Returns:
- the type of object (null if
obis null)
-
-