/** * Create an epsilon transition from this state to the given state * * @param s */ public void addTransition(final State<T> s) { if (s == null) throw new NullPointerException(); final Transition<T> t = new Transition<>(s); _transitions.add(t); }
/** * Create an epsilon transition from this state to the given state * * @param s */ public void addTransition(final State<T> s) { if (s == null) throw new NullPointerException(); final Transition<T> t = new Transition<>(s); _transitions.add(t); }
/** * Create a transition from this state to the given state on given symbol * * @param symbol * @param s */ public void addTransition(final T symbol, final State<T> s) { if (symbol == null || s == null) throw new NullPointerException(); if (!(symbol instanceof Role)) throw new ClassCastException(); final Transition<T> t = new Transition<>(symbol, s); _transitions.add(t); }
/** * Create a transition from this state to the given state on given symbol * * @param symbol * @param s */ public void addTransition(final T symbol, final State<T> s) { if (symbol == null || s == null) throw new NullPointerException(); if (!(symbol instanceof Role)) throw new ClassCastException(); final Transition<T> t = new Transition<>(symbol, s); _transitions.add(t); }