Interface Resourceful
public interface Resourceful
An interface to identify Resourceful objects - objects that support setting and getting a Resource.
-
Method Summary
Modifier and TypeMethodDescriptionGet the current Resource for the object.voidsetResource(Resource resource) Set the current Resource for the object.
-
Method Details
-
getResource
Resource getResource()Get the current Resource for the object.- Returns:
- The Resource for the object.
-
setResource
Set the current Resource for the object.- Parameters:
resource- The Resource for the object.
-