gvsig-tools / org.gvsig.tools / library / trunk / org.gvsig.tools / org.gvsig.tools.lib / src / main / java / org / gvsig / tools / util / UnmodifiableBasicList64.java @ 2241
History | View | Annotate | Download (945 Bytes)
1 |
|
---|---|
2 |
package org.gvsig.tools.util; |
3 |
|
4 |
import java.util.Collections; |
5 |
import java.util.Iterator; |
6 |
import java.util.List; |
7 |
|
8 |
/**
|
9 |
*
|
10 |
* @author jjdelcerro
|
11 |
*/
|
12 |
public interface UnmodifiableBasicList64<V> extends UnmodifiableBasicCollection64<V>, GetItemWithSizeAndIterator64<V> { |
13 |
|
14 |
public List<V> toList(); |
15 |
|
16 |
public final UnmodifiableBasicList64 EMPTY_UNMODIFIABLEBASICLIST = new UnmodifiableBasicList64() { |
17 |
@Override
|
18 |
public boolean isEmpty() { |
19 |
return true; |
20 |
} |
21 |
|
22 |
@Override
|
23 |
public List toList() { |
24 |
return Collections.EMPTY_LIST; |
25 |
} |
26 |
|
27 |
@Override
|
28 |
public Object get64(long position) { |
29 |
throw new IndexOutOfBoundsException(); |
30 |
} |
31 |
|
32 |
@Override
|
33 |
public long size64() { |
34 |
return 0; |
35 |
} |
36 |
|
37 |
@Override
|
38 |
public Iterator iterator() { |
39 |
return Collections.EMPTY_LIST.iterator(); |
40 |
} |
41 |
|
42 |
}; |
43 |
|
44 |
} |