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
An abstract builder of a Cache DTO
-
Constructor Summary
ModifierConstructorDescriptionprotected
AbstractCacheDTOBuilder
(CachedEntry<R> cachedEntry) Default constructor -
Method Summary
-
Constructor Details
-
AbstractCacheDTOBuilder
Default constructor- Parameters:
cachedEntry
- the entry
-
-
Method Details
-
build
Builds the DTO- Returns:
AbstractCacheDTO
-
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
-