org.geotools.geometry.jts.spatialschema.geometry
Class NotifyingArrayList<T>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<T>
org.geotools.geometry.jts.spatialschema.geometry.NotifyingArrayList<T>
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<T>, java.util.Collection<T>, java.util.List<T>, java.util.RandomAccess
- Direct Known Subclasses:
- PointArrayImpl
public class NotifyingArrayList<T>
- extends java.util.ArrayList<T>
Helper class that notifies the containing geometry when the list has changed
so that it can invalidate any cached JTS objects it had.
- See Also:
- Serialized Form
Fields inherited from class java.util.AbstractList |
modCount |
Methods inherited from class java.util.ArrayList |
clone, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, removeAll, removeRange, retainAll, size, subList, toArray, toArray, trimToSize |
Methods inherited from class java.util.AbstractList |
equals, hashCode |
Methods inherited from class java.util.AbstractCollection |
containsAll, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.List |
containsAll, equals, hashCode |
NotifyingArrayList
public NotifyingArrayList()
NotifyingArrayList
public NotifyingArrayList(JTSGeometry parent)
setJTSParent
public void setJTSParent(JTSGeometry parent)
getJTSParent
public JTSGeometry getJTSParent()
invalidateCachedJTSPeer
public void invalidateCachedJTSPeer()
add
public void add(int index,
T element)
- Specified by:
add
in interface java.util.List<T>
- Overrides:
add
in class java.util.ArrayList<T>
add
public boolean add(T o)
- Specified by:
add
in interface java.util.Collection<T>
- Specified by:
add
in interface java.util.List<T>
- Overrides:
add
in class java.util.ArrayList<T>
addAll
public boolean addAll(java.util.Collection<? extends T> c)
- Specified by:
addAll
in interface java.util.Collection<T>
- Specified by:
addAll
in interface java.util.List<T>
- Overrides:
addAll
in class java.util.ArrayList<T>
addAll
public boolean addAll(int index,
java.util.Collection<? extends T> c)
- Specified by:
addAll
in interface java.util.List<T>
- Overrides:
addAll
in class java.util.ArrayList<T>
clear
public void clear()
- Specified by:
clear
in interface java.util.Collection<T>
- Specified by:
clear
in interface java.util.List<T>
- Overrides:
clear
in class java.util.ArrayList<T>
remove
public T remove(int index)
- Specified by:
remove
in interface java.util.List<T>
- Overrides:
remove
in class java.util.ArrayList<T>
set
public T set(int index,
T element)
- Specified by:
set
in interface java.util.List<T>
- Overrides:
set
in class java.util.ArrayList<T>
Copyright © 1996-2010 Geotools. All Rights Reserved.