Class AbstractCacheDTOBuilder<R extends CachedResult>

java.lang.Object
eu.europa.esig.dss.tsl.dto.builder.AbstractCacheDTOBuilder<R>
Type Parameters:
R - type of the cache result
Direct Known Subclasses:
DownloadCacheDTOBuilder, ParsingCacheDTOBuilder, ValidationCacheDTOBuilder

public abstract class AbstractCacheDTOBuilder<R extends CachedResult> extends Object
An abstract builder of a Cache DTO
  • Constructor Details

    • AbstractCacheDTOBuilder

      protected AbstractCacheDTOBuilder(CachedEntry<R> cachedEntry)
      Default constructor
      Parameters:
      cachedEntry - the entry
  • Method Details

    • build

      public AbstractCacheDTO build()
      Builds the DTO
      Returns:
      AbstractCacheDTO
    • getResult

      protected final R getResult()
      Gets the cached result
      Returns:
      cached result
    • isResultExist

      protected boolean isResultExist()
      Gets if the result exists
      Returns:
      TRUE if the result exists, FALSE otherwise