Class PersistentCapabilities

  • All Implemented Interfaces:
    Capabilities

    public class PersistentCapabilities
    extends java.lang.Object
    implements Capabilities
    • Constructor Detail

      • PersistentCapabilities

        public PersistentCapabilities()
      • PersistentCapabilities

        public PersistentCapabilities​(Capabilities source)
    • Method Detail

      • setCapability

        public PersistentCapabilities setCapability​(java.lang.String name,
                                                    java.lang.Object value)
      • asMap

        public java.util.Map<java.lang.String,​java.lang.Object> asMap()
        Specified by:
        asMap in interface Capabilities
        Returns:
        The capabilities as a Map.
      • getCapability

        public java.lang.Object getCapability​(java.lang.String capabilityName)
        Specified by:
        getCapability in interface Capabilities
        Parameters:
        capabilityName - The capability to return.
        Returns:
        The value, or null if not set.
        See Also:
        CapabilityType
      • toString

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

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

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