org.geotools.data.shapefile.indexed
Class CloseableArrayList

Object
  extended by AbstractCollection<E>
      extended by AbstractList<Data>
          extended by CloseableArrayList
All Implemented Interfaces:
Iterable<Data>, Collection<Data>, List<Data>, CloseableCollection<Data>

public class CloseableArrayList
extends AbstractList<Data>
implements CloseableCollection<Data>

Currently just wraps ArrayList and delegates to that class

Author:
jesse

Field Summary
 
Fields inherited from class 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(Iterator<Data> iter)
          Close the collection so it cleans up its resources
 Data get(int index)
           
 int size()
           
 
Methods inherited from class AbstractList
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
 
Methods inherited from class AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface Collection
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, iterator, remove, removeAll, retainAll, toArray, toArray
 
Methods inherited from interface 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 List<Data>
Specified by:
get in class AbstractList<Data>

size

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

close

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

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

add

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

closeIterator

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

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


Copyright © 1996-2009 Geotools. All Rights Reserved.