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 Summary
Constructors Modifier Constructor Description protected
AbstractCacheDTOBuilder(CachedEntry<R> cachedEntry)
Default constructor -
Method Summary
Modifier and Type Method Description AbstractCacheDTO
build()
Builds the DTOprotected R
getResult()
Gets the cached resultprotected boolean
isResultExist()
Gets if the result exists
-
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
-