public static class EntityCapsManager.Caps
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.String |
ext
The ext info of this Caps value.
|
java.lang.String |
hash
The hash (algorithm) of this Caps value.
|
java.lang.String |
node
The node of this Caps value.
|
java.lang.String |
ver
The ver of this Caps value.
|
Constructor and Description |
---|
Caps(java.lang.String node,
java.lang.String hash,
java.lang.String ver,
java.lang.String ext)
Initializes a new Caps instance which is to represent a
specific node, a specific hash (algorithm) and a specific ver.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getNodeVer()
Gets a String which represents the concatenation of the
node property of this instance, the character '#' and the
ver property of this instance.
|
int |
hashCode() |
boolean |
isValid(org.jivesoftware.smackx.packet.DiscoverInfo discoverInfo)
Determines whether a specific DiscoverInfo is valid
according to this Caps i.e.
|
public final java.lang.String hash
public final java.lang.String node
public java.lang.String ext
public final java.lang.String ver
public Caps(java.lang.String node, java.lang.String hash, java.lang.String ver, java.lang.String ext)
node
- the node to be represented by the new instancehash
- the hash (algorithm) to be represented by the new
instancever
- the ver to be represented by the new instanceext
- the ext to be represented by the new instancepublic final java.lang.String getNodeVer()
public boolean isValid(org.jivesoftware.smackx.packet.DiscoverInfo discoverInfo)
discoverInfo
- the DiscoverInfo to be validated by this
Capspublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.