public interface WrappedResource
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
id()
Get this resource's ID, if is already set.
|
void |
id(long id)
Set this resource's ID.
|
boolean |
unknown()
Reports if this object is unknown.
|
boolean |
valid()
Reports if this object is valid for use.
|
boolean valid()
true
if we are valid (can be used).boolean unknown()
true
if object is unknown.java.lang.Long id()
This is for internal usage only. If you need the resource ID, use handle.resourceId(com.goldencode.p2j.util.WrappedResource)
,
which will compute it and save it at the resource, too.
null
if not set.void id(long id)
id
- The resource's ID.