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
  • Constructor Details

    • DefaultValueResource

      public DefaultValueResource(URI uri, Class<V> valueClass, V value)
      Constructor.
      Parameters:
      uri - The resource identifier URI, or null 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 is null.
  • Method Details

    • getURI

      public URI getURI()
      Returns:
      The resource identifier URI, or null if the identifier is not known.