|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.android.sdklib.repository.descriptors.IdDisplay
public final class 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 | |
---|---|
int |
compareTo(IdDisplay tag)
IdDisplay instances are the same if they have the same id. |
boolean |
equals(java.lang.Object obj)
Equality of IdDisplay instances only rely on the id equality. |
java.lang.String |
getDisplay()
|
java.lang.String |
getId()
|
int |
hashCode()
Hash code of IdDisplay instances only rely on the id hash code. |
java.lang.String |
toString()
Returns a string representation for *debug* purposes only, not for UI display. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IdDisplay(@NonNull java.lang.String id, @NonNull java.lang.String display)
id
- The non-null id string.display
- The non-null display string.Method Detail |
---|
@NonNull public java.lang.String getId()
@NonNull public java.lang.String getDisplay()
public int compareTo(IdDisplay tag)
IdDisplay
instances are the same if they have the same id.
The display value is not used for comparison or ordering.
compareTo
in interface java.lang.Comparable<IdDisplay>
public int hashCode()
IdDisplay
instances only rely on the id hash code.
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
IdDisplay
instances only rely on the id equality.
The display value is not used for comparison or ordering.
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |