condivisi.cache

## Class Cache

- java.lang.Object
- - condivisi.cache.Cache

-     public class Cache
      extends Object

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `private List<ElementoCache>` | `cache`
    `private long` | `diff`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `Cache(long obsolescenza)`
    `Cache(long obsolescenza, int dimensione)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `add(ElementoCache e)`
    `boolean` | `contains(String subjectDN)` Restituisce il criterio di presenza di un elemento nella cache

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

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

- - ### Field Detail

    - #### cache

          private List<ElementoCache> cache

    - #### diff

          private long diff

  - ### Constructor Detail

    - #### Cache

          public Cache(long obsolescenza)

    - #### Cache

          public Cache(long obsolescenza,
                       int dimensione)

  - ### Method Detail

    - #### contains

          public boolean contains(String subjectDN)

      Restituisce il criterio di presenza di un elemento nella cache
      Parameters:
        `subjectDN` -
      Returns:
        0 - non presente, 1 - presente ma obsoleto, 2 - presente e valido

    - #### add

          public void add(ElementoCache e)