Class DiscoverInfo.Feature

  • Enclosing class:
    DiscoverInfo

    public static final class DiscoverInfo.Feature
    extends java.lang.Object
    Represents the features offered by the item. This information helps the requester to determine what actions are possible with regard to this item (registration, search, join, etc.) as well as specific feature types of interest, if any (e.g., for the purpose of feature negotiation).
    • Constructor Summary

      Constructors 
      Constructor Description
      Feature​(java.lang.CharSequence variable)  
      Feature​(java.lang.String variable)
      Creates a new feature offered by an XMPP entity or item.
      Feature​(DiscoverInfo.Feature feature)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.lang.String getVar()
      Returns the feature's variable.
      int hashCode()  
      java.lang.String toString()  
      org.jivesoftware.smack.util.XmlStringBuilder toXML()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Feature

        public Feature​(java.lang.CharSequence variable)
      • Feature

        public Feature​(java.lang.String variable)
        Creates a new feature offered by an XMPP entity or item.
        Parameters:
        variable - the feature's variable.
    • Method Detail

      • getVar

        public java.lang.String getVar()
        Returns the feature's variable.
        Returns:
        the feature's variable.
      • toXML

        public org.jivesoftware.smack.util.XmlStringBuilder toXML()
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object