Last change
on this file since 10808 was
10808,
checked in by mlg, 13 years ago
|
Adds a maximum size for the cache
Will limit memory consumption.
|
File size:
657 bytes
|
Line | |
---|
1 | package fr.mael.jiwigo.transverse; |
---|
2 | |
---|
3 | import java.awt.image.BufferedImage; |
---|
4 | import java.util.Date; |
---|
5 | |
---|
6 | public class CacheObjectManagement { |
---|
7 | |
---|
8 | private BufferedImage image; |
---|
9 | |
---|
10 | private Date lastAccessDate; |
---|
11 | |
---|
12 | public CacheObjectManagement(BufferedImage image, Date lastAccessDate) { |
---|
13 | this.lastAccessDate = lastAccessDate; |
---|
14 | this.image = image; |
---|
15 | } |
---|
16 | |
---|
17 | public BufferedImage getImage() { |
---|
18 | return image; |
---|
19 | } |
---|
20 | |
---|
21 | public void setImage(BufferedImage image) { |
---|
22 | this.image = image; |
---|
23 | } |
---|
24 | |
---|
25 | public Date getLastAccessDate() { |
---|
26 | return lastAccessDate; |
---|
27 | } |
---|
28 | |
---|
29 | public void setLastAccessDate(Date lastAccessDate) { |
---|
30 | this.lastAccessDate = lastAccessDate; |
---|
31 | } |
---|
32 | |
---|
33 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.