1 | private Collection coll = null;↵ | | 1 | private Collection coll = null;↵
|
2 | private boolean cache = true;↵ | | 2 | private boolean cache = true;↵
|
|
3 | /**↵ | | 3 | /**↵
|
4 | * Set whether to cache collections.↵ | | 4 | * Set whether to cache collections.↵
|
5 | * @param b boolean cache flag.↵ | | 5 | * @param b boolean cache flag.↵
|
6 | */↵ | | 6 | */↵
|
7 | public synchronized void setCache(boolean b) {↵ | | 7 | public synchronized void setCache(boolean b) {↵
|
8 | cache = b;↵ | | 8 | cache = b;↵
|
9 | }↵ | | 9 | }↵
|
|
10 | /**↵ | | 10 | /**↵
|
11 | * Learn whether to cache collections. Default is <code>true</code>.↵ | | 11 | * Learn whether to cache collections. Default is <code>true</code>.↵
|
12 | * @return boolean cache flag.↵ | | 12 | * @return boolean cache flag.↵
|
13 | */↵ | | 13 | */↵
|
14 | public synchronized boolean isCache() {↵ | | 14 | public synchronized boolean isCache() {↵
|
15 | return cache; | | 15 | return cache;
|