@Beta public final class DiscreteResourceId extends ResourceId
DiscreteResource
.Modifier and Type | Method and 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() |
public DiscreteResourceId child(java.lang.Object child)
ResourceId
Class
instance, IllegalArgumentException
is thrown.child
in class ResourceId
child
- the last component of the childpublic ContinuousResourceId child(java.lang.Class<?> child)
ResourceId
child
in class ResourceId
child
- the last component of the childpublic java.util.Optional<DiscreteResourceId> parent()
ResourceId
parent
in class ResourceId
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object