Class ResourceId

    • Constructor Detail

      • ResourceId

        public ResourceId()
    • Method Detail

      • parent

        public abstract Optional<DiscreteResourceId> parent()
        Returns the parent resource ID of this instance.
        Returns:
        the parent resource ID of this instance. If there is no parent, empty instance will be returned.
      • child

        public abstract DiscreteResourceId child​(Object child)
        Returns a resource ID of a child of this resource based on the specified object. If the given object is a Class instance, IllegalArgumentException is thrown.
        Parameters:
        child - the last component of the child
        Returns:
        a child resource ID
      • child

        public abstract ContinuousResourceId child​(Class<?> child)
        Returns a resource ID of a child of this resource based on the specified object.
        Parameters:
        child - the last component of the child
        Returns:
        a child resource ID