Last change
on this file since 8628 was 8628, checked in by wiktorn, 9 years ago |
findbugs fixes
|
-
Property svn:eol-style
set to
native
|
File size:
693 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.data.cache;
|
---|
3 |
|
---|
4 | import java.io.Serializable;
|
---|
5 | import java.util.Arrays;
|
---|
6 |
|
---|
7 | /**
|
---|
8 | * @author Wiktor Niesiobędzki
|
---|
9 | *
|
---|
10 | * Class that will hold JCS cache entries
|
---|
11 | *
|
---|
12 | */
|
---|
13 | public class CacheEntry implements Serializable {
|
---|
14 | private static final long serialVersionUID = 1L; //version
|
---|
15 | protected byte[] content;
|
---|
16 |
|
---|
17 | /**
|
---|
18 | * @param content of the cache entry
|
---|
19 | */
|
---|
20 | public CacheEntry(byte[] content) {
|
---|
21 | this.content = Arrays.copyOf(content, content.length);
|
---|
22 | }
|
---|
23 |
|
---|
24 | /**
|
---|
25 | * @return cache entry content
|
---|
26 | */
|
---|
27 | public byte[] getContent() {
|
---|
28 | return Arrays.copyOf(content, content.length);
|
---|
29 | }
|
---|
30 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.