T
- the interface which inherits from this interface, example: interface Category extends Resource<Category>
public interface Resource<T> extends ResourceView<T,T>, Referenceable<T>, Versioned<T>
Modifier and Type | Method and Description |
---|---|
ZonedDateTime |
getCreatedAt() |
String |
getId()
The unique ID of this object.
|
ZonedDateTime |
getLastModifiedAt() |
Long |
getVersion() |
Reference<T> |
toReference()
Creates a reference to this resource, the reference may not be filled.
|
hasSameIdAs, toResourceIdentifier
String getId()
Identifiable
getId
in interface Identifiable<T>
getId
in interface ResourceView<T,T>
getId
in interface Versioned<T>
Long getVersion()
getVersion
in interface ResourceView<T,T>
getVersion
in interface Versioned<T>
ZonedDateTime getCreatedAt()
getCreatedAt
in interface CreationTimestamped
getCreatedAt
in interface ResourceView<T,T>
getCreatedAt
in interface Timestamped
ZonedDateTime getLastModifiedAt()
getLastModifiedAt
in interface ResourceView<T,T>
getLastModifiedAt
in interface Timestamped
Reference<T> toReference()
Referenceable
toReference
in interface Referenceable<T>