@Beta public final class ContinuousResourceId extends ResourceId
ContinuousResource.| Modifier and Type | Method and Description |
|---|---|
ContinuousResourceId |
child(Class<?> child)
Returns a resource ID of a child of this resource based on the specified object.
|
DiscreteResourceId |
child(Object child)
Returns a resource ID of a child of this resource based on the specified object.
|
boolean |
equals(Object obj) |
int |
hashCode() |
Optional<DiscreteResourceId> |
parent()
Returns the parent resource ID of this instance.
|
String |
toString() |
public DiscreteResourceId child(Object child)
Class instance, IllegalArgumentException is thrown.
A child of a continuous-type resource is prohibited.
UnsupportedOperationException is always thrown.child in class ResourceIdchild - the last component of the childpublic ContinuousResourceId child(Class<?> child)
UnsupportedOperationException is always thrown.child in class ResourceIdchild - the last component of the childpublic Optional<DiscreteResourceId> parent()
ResourceIdparent in class ResourceId