Total Complexity | 0 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | /* |
||
29 | public interface MapStructureCache { |
||
30 | /** |
||
31 | * Retrieve map data from the cache |
||
32 | * If the map is not on cache, an empty optional is returned |
||
33 | * |
||
34 | * @param id The map id |
||
35 | * |
||
36 | * @return The stored structure |
||
37 | */ |
||
38 | public Optional<SwfMapStructure> retrieve(int id); |
||
39 | |||
40 | /** |
||
41 | * Store a map into the cache |
||
42 | * |
||
43 | * @param structure Map to store |
||
44 | */ |
||
45 | public void store(SwfMapStructure structure); |
||
46 | |||
47 | /** |
||
48 | * Clear the cache |
||
49 | */ |
||
50 | public void clear(); |
||
51 | } |
||
52 |