Package com.android.sdklib.devices
Class State
- java.lang.Object
-
- com.android.sdklib.devices.State
-
public class State extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description State()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StatedeepCopy()Returns a copy of the object that shares no state with it, but is initialized to equivalent values.booleanequals(java.lang.Object o)java.lang.StringgetDescription()HardwaregetHardware()com.android.resources.KeyboardStategetKeyState()java.lang.StringgetName()com.android.resources.NavigationStategetNavState()com.android.resources.ScreenOrientationgetOrientation()inthashCode()booleanisDefaultState()voidsetDefaultState(boolean defaultState)voidsetDescription(java.lang.String description)voidsetHardware(Hardware hw)voidsetKeyState(com.android.resources.KeyboardState keyState)voidsetName(java.lang.String name)voidsetNavState(com.android.resources.NavigationState navState)voidsetOrientation(com.android.resources.ScreenOrientation orientation)java.lang.StringtoString()
-
-
-
Method Detail
-
isDefaultState
public boolean isDefaultState()
-
setDefaultState
public void setDefaultState(boolean defaultState)
-
getName
@NonNull public java.lang.String getName()
-
setName
public void setName(@NonNull java.lang.String name)
-
getDescription
public java.lang.String getDescription()
-
setDescription
public void setDescription(java.lang.String description)
-
getOrientation
public com.android.resources.ScreenOrientation getOrientation()
-
setOrientation
public void setOrientation(com.android.resources.ScreenOrientation orientation)
-
getKeyState
public com.android.resources.KeyboardState getKeyState()
-
setKeyState
public void setKeyState(com.android.resources.KeyboardState keyState)
-
getNavState
public com.android.resources.NavigationState getNavState()
-
setNavState
public void setNavState(com.android.resources.NavigationState navState)
-
getHardware
@NonNull public Hardware getHardware()
-
setHardware
public void setHardware(@NonNull Hardware hw)
-
deepCopy
public State deepCopy()
Returns a copy of the object that shares no state with it, but is initialized to equivalent values.- Returns:
- A copy of the object.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-