Class 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 Detail

      • DefaultValueResource

        public DefaultValueResource​(java.net.URI uri,
                                    java.lang.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:
        java.lang.NullPointerException - if the given value class and/or value is null.
    • Method Detail

      • getURI

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