|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.android.sdklib.repositoryv2.IdDisplay
public abstract class IdDisplay
A string with both user-friendly and easily-parsed versions. Contains stubs to be overridden by xjc-generated classes.
| Constructor Summary | |
|---|---|
IdDisplay()
|
|
| Method Summary | |
|---|---|
int |
compareTo(IdDisplay o)
|
static IdDisplay |
create(java.lang.String id,
java.lang.String display)
|
boolean |
equals(java.lang.Object o)
|
abstract java.lang.String |
getDisplay()
Gets the user-friendly version of the string. |
abstract java.lang.String |
getId()
Gets the machine-friendly version of the string. |
int |
hashCode()
|
static java.lang.String |
idToDisplay(java.lang.String id)
Computes a display-friendly tag string based on the id. |
abstract void |
setDisplay(java.lang.String display)
Sets the user-friendly version of the string. |
abstract void |
setId(java.lang.String id)
Sets the machine-friendly version of the string. |
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()
| Method Detail |
|---|
public static IdDisplay create(@NonNull
java.lang.String id,
@NonNull
java.lang.String display)
public abstract void setId(@NonNull
java.lang.String id)
public abstract void setDisplay(@NonNull
java.lang.String display)
@NonNull public abstract java.lang.String getId()
@NonNull public abstract java.lang.String getDisplay()
public int compareTo(IdDisplay o)
compareTo in interface java.lang.Comparable<IdDisplay>public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
@NonNull
public static java.lang.String idToDisplay(@NonNull
java.lang.String id)
id - A non-null id to sanitize for display.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||