public final class Feature extends Object implements Comparable<Feature>
This class is immutable.3. Discovering Information About a Jabber Entity
This information helps requesting entities determine what actions are possible with regard to this entity (registration, search, join, etc.), what protocols the entity supports, and specific feature types of interest, if any (e.g., for the purpose of feature negotiation).
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Feature o)
Implements a natural ordering of a feature, as suggested and required by XEP-0115: Entity Capabilities.
|
boolean |
equals(Object o)
A feature is considered equal to another one, if their 'var' attribute are equal.
|
String |
getVar()
Gets the 'var' attribute, whose value is either a protocol namespace or other feature offered by the entity.
|
int |
hashCode() |
String |
toString() |
public Feature(String var)
var - A protocol namespace or other feature offered by the entity.public final String getVar()
public final boolean equals(Object o)
public final int compareTo(Feature o)
compareTo in interface Comparable<Feature>o - The other feature.Copyright © 2014–2015 XMPP.rocks. All rights reserved.