1 | public synchronized String toString() {↵ | | 1 | public synchronized String toString() {↵
|
2 | if (isReference()) {↵ | | 2 | if (isReference()) {↵
|
3 | return getCheckedRef().toString();↵ | | 3 | return getCheckedRef().toString();↵
|
4 | }↵ | | 4 | }↵
|
5 | if (cacheCollection().size() == 0) {↵ | | 5 | if (cacheCollection().size() == 0) {↵
|
6 | return "";↵ | | 6 | return "";↵
|
7 | }↵ | | 7 | }↵
|
8 | StringBuffer sb = new StringBuffer();↵ | | 8 | StringBuffer sb = new StringBuffer();↵
|
9 | for (Iterator i = coll.iterator(); i.hasNext();) {↵ | | 9 | for (Iterator i = coll.iterator(); i.hasNext();) {↵
|
10 | if (sb.length() > 0) {↵ | | 10 | if (sb.length() > 0) {↵
|
11 | sb.append(File.pathSeparatorChar);↵ | | 11 | sb.append(File.pathSeparatorChar);↵
|
12 | }↵ | | 12 | }↵
|
13 | sb.append(i.next());↵ | | 13 | sb.append(i.next());↵
|
14 | }↵ | | 14 | }↵
|
15 | return sb.toString();↵ | | 15 | return sb.toString();↵
|
16 | }↵ | | 16 | }↵
|
|
17 | private synchronized Collection cacheCollection() {↵ | | 17 | private synchronized Collection cacheCollection() {↵
|
18 | if (coll == null || !isCache()) {↵ | | 18 | if (coll == null || !isCache()) {↵
|
19 | coll = getCollection();↵ | | 19 | coll = getCollection();↵
|
20 | }↵ | | 20 | }↵
|
21 | return coll | | 21 | return coll
|