FileDocCategorySizeDatePackage
State.javaAPI DocAndroid 5.1 API2078Thu Mar 12 22:22:10 GMT 2015com.android.internal.util

State

public class State extends Object implements IState
{@hide} The class for implementing states in a StateMachine

Fields Summary
Constructors Summary
protected State()
Constructor

    
Methods Summary
public voidenter()

    
public voidexit()

    
public java.lang.StringgetName()
Name of State for debugging purposes. This default implementation returns the class name, returning the instance name would better in cases where a State class is used for multiple states. But normally there is one class per state and the class name is sufficient and easy to get. You may want to provide a setName or some other mechanism for setting another name if the class name is not appropriate.

see
com.android.internal.util.IState#processMessage(android.os.Message)

        String name = getClass().getName();
        int lastDollar = name.lastIndexOf('$");
        return name.substring(lastDollar + 1);
    
public booleanprocessMessage(android.os.Message msg)

        return false;