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)  
    • 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.
      • 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