Package VASSAL.tools.opcache
Interface Op<V>
- All Known Subinterfaces:
CropOp,GamePieceOp,ImageOp,RotateOp,RotateScaleOp,ScaleOp,SourceOp,SVGOp
- All Known Implementing Classes:
AbstractOpImpl,AbstractOpImpl,AbstractTiledOpImpl,AbstractTileOpImpl,CropOpBitmapImpl,GamePieceOpImpl,GridOp,ImageItem.BaseOp,ImageSourceOpBitmapImpl,Labeler.HTMLLabelOp,Labeler.LabelOp,OrthoRotateOpBitmapImpl,RotateScaleOpBitmapImpl,RotateScaleOpSVGImpl,ScaleOpBitmapImpl,ScaleOpTiledBitmapImpl,SolidColorOp,SourceOpBitmapImpl,SourceOpDiskCacheBitmapImpl,SourceOpSVGImpl,SourceOpTiledBitmapImpl,SourceTileOpBitmapImpl,SourceTileOpSVGImpl
public interface Op<V>
An operation with a cacheable result.
- Since:
- 3.1.0
- Author:
- Joel Uckelman
-
Method Details
-
eval
Runs theOp. This method should be called only by the caching framework.- Returns:
- the result of running this
Op - Throws:
Exception
-
getSources
Returns a list ofOps on which thisOpdepends.- Returns:
- the
Ops on which thisOpdepends
-
newKey
OpCache.Key<V> newKey()Returns the current cache key for thisOp.- Returns:
- the current cache key for this
Op
-
update
void update()Invalidates the current cache key for thisOp.
-