com.android.sdklib.repository.descriptors
Class IdDisplay
java.lang.Object
com.android.sdklib.repositoryv2.IdDisplay
com.android.sdklib.repository.descriptors.IdDisplay
- All Implemented Interfaces:
- java.lang.Comparable<IdDisplay>
public final class IdDisplay
- extends IdDisplay
Immutable structure that represents a tuple (id-string + display-string.)
Constructor Summary |
IdDisplay(java.lang.String id,
java.lang.String display)
Creates a new immutable tuple (id-string + display-string.) |
Method Summary |
java.lang.String |
getDisplay()
Gets the user-friendly version of the string. |
java.lang.String |
getId()
Gets the machine-friendly version of the string. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
IdDisplay
public IdDisplay(@NonNull
java.lang.String id,
@NonNull
java.lang.String display)
- Creates a new immutable tuple (id-string + display-string.)
- Parameters:
id
- The non-null id string.display
- The non-null display string.
getId
@NonNull
public java.lang.String getId()
- Description copied from class:
IdDisplay
- Gets the machine-friendly version of the string.
- Specified by:
getId
in class IdDisplay
getDisplay
@NonNull
public java.lang.String getDisplay()
- Description copied from class:
IdDisplay
- Gets the user-friendly version of the string.
- Specified by:
getDisplay
in class IdDisplay