org.geotools.data.shapefile.indexed
Class CloseableArrayList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<Data>
          extended by org.geotools.data.shapefile.indexed.CloseableArrayList
All Implemented Interfaces:
java.lang.Iterable<Data>, java.util.Collection<Data>, java.util.List<Data>, CloseableCollection<Data>

public class CloseableArrayList
extends java.util.AbstractList<Data>
implements CloseableCollection<Data>

Currently just wraps ArrayList and delegates to that class

Author:
jesse

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
CloseableArrayList()
           
CloseableArrayList(int length)
           
 
Method Summary
 boolean add(Data o)
           
 void close()
          Close the collection so it cleans up its resources
 void closeIterator(java.util.Iterator<Data> iter)
          Close the collection so it cleans up its resources
 Data get(int index)
           
 int size()
           
 
Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, toArray, toArray
 
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 

Constructor Detail

CloseableArrayList

public CloseableArrayList(int length)

CloseableArrayList

public CloseableArrayList()
Method Detail

get

public Data get(int index)
Specified by:
get in interface java.util.List<Data>
Specified by:
get in class java.util.AbstractList<Data>

size

public int size()
Specified by:
size in interface java.util.Collection<Data>
Specified by:
size in interface java.util.List<Data>
Specified by:
size in class java.util.AbstractCollection<Data>

close

public void close()
           throws java.io.IOException
Description copied from interface: CloseableCollection
Close the collection so it cleans up its resources

Specified by:
close in interface CloseableCollection<Data>
Throws:
java.io.IOException

add

public boolean add(Data o)
Specified by:
add in interface java.util.Collection<Data>
Specified by:
add in interface java.util.List<Data>
Overrides:
add in class java.util.AbstractList<Data>

closeIterator

public void closeIterator(java.util.Iterator<Data> iter)
                   throws java.io.IOException
Description copied from interface: CloseableCollection
Close the collection so it cleans up its resources

Specified by:
closeIterator in interface CloseableCollection<Data>
Throws:
java.io.IOException


Copyright © 1996-2010 Geotools. All Rights Reserved.