public class AnalysisCacheHandler extends Object
Constructor and Description |
---|
AnalysisCacheHandler(Plan plugin)
Class Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
cache(AnalysisData data)
Saves the new analysis data to cache.
|
AnalysisData |
getData()
Returns the cached AnalysisData.
|
boolean |
isCached()
Check if the AnalysisData has been cached.
|
void |
updateCache()
Runs analysis, cache method is called after analysis is complete.
|
public AnalysisCacheHandler(Plan plugin)
plugin
- Current instance of Planpublic void updateCache()
public void cache(AnalysisData data)
data
- AnalysisData generated by Analysis.analyzepublic AnalysisData getData()
public boolean isCached()
Copyright © 2017. All rights reserved.