public State previous() {
        if (this == CREATED) {
            throw new NoSuchElementException();
        }
        return values()[ordinal() - 1];
    }
Returns the previous state.

@return the previous state
@throws java.util.NoSuchElementException if there are no previous state
common-parent/injector/src/main/java/com/speedment/common/injector/State.java