Class DiscreteResourceId

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ContinuousResourceId child​(java.lang.Class<?> child)
      Returns a resource ID of a child of this resource based on the specified object.
      DiscreteResourceId child​(java.lang.Object child)
      Returns a resource ID of a child of this resource based on the specified object.
      boolean equals​(java.lang.Object obj)  
      int hashCode()  
      java.util.Optional<DiscreteResourceId> parent()
      Returns the parent resource ID of this instance.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • child

        public DiscreteResourceId child​(java.lang.Object child)
        Description copied from class: ResourceId
        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.
        Specified by:
        child in class ResourceId
        Parameters:
        child - the last component of the child
        Returns:
        a child resource ID
      • child

        public ContinuousResourceId child​(java.lang.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 java.util.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 java.lang.Object
      • equals

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

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