Interface ValueResource<V>

  • Type Parameters:
    V - The type of value represented by the resource.
    All Superinterfaces:
    Resource
    All Known Implementing Classes:
    AbstractValueResource, DefaultValueResource

    public interface ValueResource<V>
    extends Resource
    A resource that represents some value object instance. The value object is normally immutable.
    Author:
    Garret Wilson
    • Method Detail

      • getValueClass

        java.lang.Class<V> getValueClass()
        Returns:
        The class representing the type of value represented by the resource.
      • getValue

        V getValue()
        Returns:
        The non-null value represented by the resource.