Package com.globalmentor.net
Class DefaultValueResource<V>
java.lang.Object
com.globalmentor.net.AbstractValueResource<V>
com.globalmentor.net.DefaultValueResource<V>
- Type Parameters:
V
- The type of value represented by the resource.
- All Implemented Interfaces:
Resource
,ValueResource<V>
An abstract implementation of a resource that represents some value object instance.
- Author:
- Garret Wilson
-
Field Summary
Fields inherited from interface com.globalmentor.net.Resource
URI_PROPERTY_NAME
-
Constructor Summary
-
Method Summary
Methods inherited from class com.globalmentor.net.AbstractValueResource
getValue, getValueClass
-
Constructor Details
-
DefaultValueResource
Constructor.- Parameters:
uri
- The resource identifier URI, ornull
if the identifier is not known.valueClass
- The class representing the type of value represented by the resource.value
- The non-null
value represented by the resource.- Throws:
NullPointerException
- if the given value class and/or value isnull
.
-
-
Method Details
-
getURI
- Returns:
- The resource identifier URI, or
null
if the identifier is not known.
-