public static class ServerStoredDetails.GenericDetail
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
detailDisplayName |
protected java.lang.Object |
value |
Constructor and Description |
---|
GenericDetail(java.lang.String detailDisplayName,
java.lang.Object value)
Instantiates this detail setting its value and display name
accordingly.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Compares two GenericDetails according
their DetailDisplayName and Value
|
java.lang.String |
getDetailDisplayName()
Returns a display name that may be used as a description when
visualizing the value of the detail (make sure you don't use this
string in internationalized versions).
|
java.lang.Object |
getDetailValue()
Returns the value of the detail.
|
int |
hashCode() |
java.lang.String |
toString()
Returns a String representation of the detail using both its value
and display name.
|
protected java.lang.Object value
protected java.lang.String detailDisplayName
public GenericDetail(java.lang.String detailDisplayName, java.lang.Object value)
detailDisplayName
- a display name that may be used as a
description when visualizing the value of the detailvalue
- the value of the detail.public java.lang.Object getDetailValue()
public java.lang.String getDetailDisplayName()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- Object expected GenericDetail otherwise return falsepublic int hashCode()
hashCode
in class java.lang.Object
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.