public abstract class StateMachineUtils
extends java.lang.Object
Constructor and Description |
---|
StateMachineUtils() |
Modifier and Type | Method and Description |
---|---|
static <S> boolean |
containsAtleastOne(java.util.Collection<S> left,
java.util.Collection<S> right)
Checks if right hand collection has atleast one same item as left hand
collection.
|
static boolean |
containsAtleastOneEqualString(java.util.Collection<java.lang.String> left,
java.util.Collection<java.lang.String> right) |
static boolean |
containsAtleastOneEqualString(java.util.Collection<java.lang.String> left,
java.lang.String right) |
static <S,E> boolean |
isNormalPseudoState(State<S,E> state)
Checks if state is a normal pseudo state, meaning it is a pseudostate
and its kind is not initial or end.
|
static <S,E> boolean |
isPseudoState(State<S,E> state,
PseudoStateKind kind) |
static <S,E> boolean |
isSubstate(State<S,E> left,
State<S,E> right)
Checks if right hand side is a substate of a left hand side.
|
static <S> java.util.Collection<java.lang.String> |
toStringCollection(java.util.Collection<S> collection) |
static java.util.Collection<java.lang.String> |
toStringCollection(java.lang.Object object) |
public static <S,E> boolean isSubstate(State<S,E> left, State<S,E> right)
S
- the type of stateE
- the type of eventleft
- the super stateright
- the sub statepublic static <S> boolean containsAtleastOne(java.util.Collection<S> left, java.util.Collection<S> right)
S
- the generic typeleft
- the left collectionright
- the right collectionpublic static <S,E> boolean isNormalPseudoState(State<S,E> state)
S
- the type of stateE
- the type of eventstate
- the statepublic static <S,E> boolean isPseudoState(State<S,E> state, PseudoStateKind kind)
public static <S> java.util.Collection<java.lang.String> toStringCollection(java.util.Collection<S> collection)
public static java.util.Collection<java.lang.String> toStringCollection(java.lang.Object object)
public static boolean containsAtleastOneEqualString(java.util.Collection<java.lang.String> left, java.lang.String right)
public static boolean containsAtleastOneEqualString(java.util.Collection<java.lang.String> left, java.util.Collection<java.lang.String> right)