Class CapabilityRegistration<C extends Capability>

    • Constructor Detail

      • CapabilityRegistration

        public CapabilityRegistration​(C capability,
                                      CapabilityScope scope)
      • CapabilityRegistration

        public CapabilityRegistration​(CapabilityRegistration<C> toCopy)
        Copy constructor.
        Parameters:
        toCopy - the registration to copy. Cannot be null
    • Method Detail

      • getCapability

        public C getCapability()
        Gets the capability.
        Returns:
        the capability. Will not return null
      • getCapabilityScope

        public CapabilityScope getCapabilityScope()
        Gets the scope in which the capability is registered.
        Returns:
        the capability scope. Will not return null
      • getCapabilityName

        public String getCapabilityName()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • getOldestRegistrationPoint

        public RegistrationPoint getOldestRegistrationPoint()
        Gets the registration point that been associated with the registration for the longest period.
        Returns:
        the initial registration point, or null if there are no longer any registration points
      • getRegistrationPoints

        public Set<RegistrationPoint> getRegistrationPoints()
        Get all registration points associated with this registration.
        Returns:
        all registration points. Will not be null but may be empty
      • addRegistrationPoint

        public boolean addRegistrationPoint​(RegistrationPoint toAdd)
      • removeRegistrationPoint

        public boolean removeRegistrationPoint​(RegistrationPoint toAdd)
      • getRegistrationPointCount

        public int getRegistrationPointCount()