
public class CachedGeneratorResultImpl extends Object implements CachedGeneratorResult, Serializable
| Constructor and Description |
|---|
CachedGeneratorResultImpl(String resultTypeName,
ArtifactSet artifacts,
Map<String,GeneratedUnit> generatedUnitMap,
long timeGenerated) |
CachedGeneratorResultImpl(String resultTypeName,
ArtifactSet artifacts,
Map<String,GeneratedUnit> generatedUnitMap,
long timeGenerated,
Map<String,Serializable> clientDataMap) |
| Modifier and Type | Method and Description |
|---|---|
ArtifactSet |
getArtifacts() |
Object |
getClientData(String key)
Retrieves cached client data by key.
|
GeneratedUnit |
getGeneratedUnit(String typeName) |
Collection<GeneratedUnit> |
getGeneratedUnits() |
String |
getResultTypeName()
Returns the cached result rebind type name.
|
long |
getTimeGenerated()
Returns the time this generator result was created.
|
boolean |
isTypeCached(String typeName)
Check whether a given type is present in the cached result.
|
public CachedGeneratorResultImpl(String resultTypeName, ArtifactSet artifacts, Map<String,GeneratedUnit> generatedUnitMap, long timeGenerated, Map<String,Serializable> clientDataMap)
public CachedGeneratorResultImpl(String resultTypeName, ArtifactSet artifacts, Map<String,GeneratedUnit> generatedUnitMap, long timeGenerated)
public ArtifactSet getArtifacts()
public Object getClientData(String key)
CachedGeneratorResultgetClientData in interface CachedGeneratorResultpublic GeneratedUnit getGeneratedUnit(String typeName)
public Collection<GeneratedUnit> getGeneratedUnits()
public String getResultTypeName()
CachedGeneratorResultgetResultTypeName in interface CachedGeneratorResultpublic long getTimeGenerated()
CachedGeneratorResultgetTimeGenerated in interface CachedGeneratorResultpublic boolean isTypeCached(String typeName)
CachedGeneratorResultisTypeCached in interface CachedGeneratorResultCopyright © 2018. All rights reserved.