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>
public class DefaultValueResource<V> extends AbstractValueResource<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
Constructors Constructor Description DefaultValueResource(java.net.URI uri, java.lang.Class<V> valueClass, V value)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.net.URI
getURI()
-
Methods inherited from class com.globalmentor.net.AbstractValueResource
getValue, getValueClass
-
-
-
-
Constructor Detail
-
DefaultValueResource
public DefaultValueResource(java.net.URI uri, java.lang.Class<V> valueClass, V value)
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:
java.lang.NullPointerException
- if the given value class and/or value isnull
.
-
-