Class DiscreteResourceId

    • Method Detail

      • child

        public ContinuousResourceId child​(Class<?> child)
        Description copied from class: ResourceId
        Returns a resource ID of a child of this resource based on the specified object.
        Specified by:
        child in class ResourceId
        Parameters:
        child - the last component of the child
        Returns:
        a child resource ID
      • parent

        public Optional<DiscreteResourceId> parent()
        Description copied from class: ResourceId
        Returns the parent resource ID of this instance.
        Specified by:
        parent in class ResourceId
        Returns:
        the parent resource ID of this instance. If there is no parent, empty instance will be returned.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object