org.geotools.data
Class Diff
java.lang.Object
org.geotools.data.Diff
public class Diff
- extends java.lang.Object
Field Summary |
java.util.Map |
added
Unmodifiable view of added features. |
java.util.Map |
modified2
Unmodifiable view of modified features. |
int |
nextFID
|
Method Summary |
void |
add(java.lang.String fid,
org.opengis.feature.simple.SimpleFeature f)
|
protected void |
addToSpatialIndex(org.opengis.feature.simple.SimpleFeature f)
|
void |
clear()
|
protected com.vividsolutions.jts.index.quadtree.Quadtree |
copySTRtreeFrom(Diff diff)
|
boolean |
isEmpty()
|
void |
modify(java.lang.String fid,
org.opengis.feature.simple.SimpleFeature f)
|
java.util.List |
queryIndex(com.vividsolutions.jts.geom.Envelope env)
|
void |
remove(java.lang.String fid)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
modified2
public final java.util.Map modified2
- Unmodifiable view of modified features.
It is imperative that the user manually synchronize on the
map when iterating over any of its collection views:
Set s = diff.modified2.keySet(); // Needn't be in synchronized block
...
synchronized(diff) { // Synchronizing on diff, not diff.modified2 or s!
Iterator i = s.iterator(); // Must be in synchronized block
while (i.hasNext())
foo(i.next());
}
Failure to follow this advice may result in non-deterministic behavior.
The returned map will be serializable if the specified map is
serializable.
added
public final java.util.Map added
- Unmodifiable view of added features.
It is imperative that the user manually synchronize on the
map when iterating over any of its collection views:
Set s = diff.added.keySet(); // Needn't be in synchronized block
...
synchronized(diff) { // Synchronizing on m, not diff.added or s!
Iterator i = s.iterator(); // Must be in synchronized block
while (i.hasNext())
foo(i.next());
}
Failure to follow this advice may result in non-deterministic behavior.
The returned map will be serializable if the specified map is
serializable.
nextFID
public int nextFID
Diff
public Diff()
Diff
public Diff(Diff other)
isEmpty
public boolean isEmpty()
clear
public void clear()
modify
public void modify(java.lang.String fid,
org.opengis.feature.simple.SimpleFeature f)
add
public void add(java.lang.String fid,
org.opengis.feature.simple.SimpleFeature f)
addToSpatialIndex
protected void addToSpatialIndex(org.opengis.feature.simple.SimpleFeature f)
remove
public void remove(java.lang.String fid)
queryIndex
public java.util.List queryIndex(com.vividsolutions.jts.geom.Envelope env)
copySTRtreeFrom
protected com.vividsolutions.jts.index.quadtree.Quadtree copySTRtreeFrom(Diff diff)
Copyright © 1996-2010 Geotools. All Rights Reserved.