public class CachedGeneratorResultImpl extends Object implements CachedGeneratorResult, Serializable
Constructor and Description |
---|
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 ArtifactSet getArtifacts()
public Object getClientData(String key)
CachedGeneratorResult
getClientData
in interface CachedGeneratorResult
public GeneratedUnit getGeneratedUnit(String typeName)
public Collection<GeneratedUnit> getGeneratedUnits()
public String getResultTypeName()
CachedGeneratorResult
getResultTypeName
in interface CachedGeneratorResult
public long getTimeGenerated()
CachedGeneratorResult
getTimeGenerated
in interface CachedGeneratorResult
public boolean isTypeCached(String typeName)
CachedGeneratorResult
isTypeCached
in interface CachedGeneratorResult
Copyright © 2018. All rights reserved.