public interface SerializedResourceData extends ResourceRegistration
Resource
data. Instances of classes implementing this interface provide optional
access to Resource
object that can be serialized and deserialized.
These instances usually hold a serializable resource. A serializable
resource is a concrete implementation of Resource
interface
also implementing the Serializable
interface.
Note: Holding serialized resource data or a serializable resource object is optional.
Modifier and Type | Method and Description |
---|---|
com.google.common.base.Optional<Resource<?>> |
getSerializedResource()
Gets the serialized resource if available.
|
boolean |
hasSerializedResource()
Returns
true if this object holds
a serialized resource, false otherwise. |
equals, getListenerType, getResource, getResourceName, hashCode
getAnnotation, getAnnotations, hasAnnotation
isProvided, isRegistered
boolean hasSerializedResource()
true
if this object holds
a serialized resource, false
otherwise.
More formally, this method returns true
if and
only if getSerializedResource().isPresent() == true
.
com.google.common.base.Optional<Resource<?>> getSerializedResource()