Package org.zkoss.util.resource

## Class Loader.Resource<V>

- java.lang.Object
- - org.zkoss.util.resource.Loader.Resource<V>

- Enclosing interface:
    Loader<K,​V>

      public static class Loader.Resource<V>
      extends java.lang.Object

  Represents the more information about an object loaded by `Loader.load(K)`.
  Since:
    5.0.0

- - ### Field Summary

    Fields
    Modifier and Type | Field | Description
    --- | --- | ---
    `boolean` | `cacheable` | Whether the resource shall be cached in `ResourceCache`.
    `V` | `resource` | The real resource that shall be returned by `ResourceCache.get(java.lang.Object)`.

  - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `Resource​(V resource, boolean cacheable)` |

  - ### Method Summary

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### resource

          public final V resource

      The real resource that shall be returned by `ResourceCache.get(java.lang.Object)`.

    - #### cacheable

          public final boolean cacheable

      Whether the resource shall be cached in `ResourceCache`.

  - ### Constructor Detail

    - #### Resource

          public Resource​(V resource,
                          boolean cacheable)