private static class handle.DummyResource extends java.lang.Object implements WrappedResource
Modifier and Type | Field and Description |
---|---|
private java.lang.Long |
id
The set id of the resource
|
Constructor and Description |
---|
DummyResource(java.lang.Long id)
Basic constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
id()
Retrieves the id of the resource.
|
void |
id(long id)
Sets the id of the resource.
|
boolean |
unknown()
This type of resource is not unknown, but only invalid.
|
boolean |
valid()
This type of resource should be considered invalid at any time.
|
public DummyResource(java.lang.Long id)
id
- The id of this dummy resource.public boolean valid()
valid
in interface WrappedResource
true
if we are valid (can be used).public boolean unknown()
unknown
in interface WrappedResource
true
if object is unknown.public java.lang.Long id()
id
in interface WrappedResource
public void id(long id)
id
in interface WrappedResource
id
- The resource's ID.