Code example for List

Methods: clear

0
 
    /** 
     * Reinitialize the network state 
     */ 
    public void resetNetworkState() { 
        mStateDepository.clear();
        mTransitionDirection = StateTransitionDirection.DO_NOTHING;
        mTransitionTarget = State.UNKNOWN;
    } 
 
    /** 
     * Set the transition criteria 
     * @param initState initial {@link State} 
     * @param transitionDir explicit {@link StateTransitionDirection} 
     * @param targetState desired {@link State} 
     */ 
    public void setStateTransitionCriteria(State initState, StateTransitionDirection transitionDir,
            State targetState) {
        if (!mStateDepository.isEmpty()) {
            mStateDepository.clear();
        }