Code example for LinkedList

Methods: remove

0
        finalStates.add((NaiveState) state);
    } 
 
    @Override 
    public void unmarkAsFinalState(State state) {
        finalStates.remove((NaiveState) state);
    } 
 
    @Override 
    public List<State> allStates() {
        return allStates;
    } 
 
    @Override 
    public List<OutgoingTransition> allOutgoingTransitions(State from) {
        LinkedList<OutgoingTransition> returnedList = new LinkedList<OutgoingTransition>();
 
        for (NaiveTransition transition : transitions) {
            if (transition.getSourceState() == from)
                returnedList.add(convertNaiveTransitionToOutgoingTransition(transition));
        }