Package org.eclipse.jface.text.source
Interface IAnnotationMap
- All Superinterfaces:
- ISynchronizable,- Map<Annotation,- Position> 
An annotation map is a map specialized for the requirements of an annotation
 model. The annotation map supports a customizable lock object which is used
 to synchronize concurrent operations on the map (see
 
ISynchronizable. The map supports two
 iterator methods, one for the values and one for the keys of the map. The
 returned iterators are robust, i.e. they work on a copy of the values and
 keys set that is made at the point in time the iterator methods are called.
 
 The returned collections of the methods values,
 entrySet, and keySet are not synchronized on
 the annotation map's lock object.
 
- Since:
- 3.0
- See Also:
- 
Nested Class Summary
- 
Method SummaryModifier and TypeMethodDescriptionentrySet()The returned set is not synchronized on this annotation map's lock object.keySet()The returned set is not synchronized on this annotation map's lock object.Returns an iterator for a copy of this map's key set.values()The returned collection is not synchronized on this annotation map's lock object.Returns an iterator for a copy of this annotation map's values.Methods inherited from interface org.eclipse.jface.text.ISynchronizablegetLockObject, setLockObjectMethods inherited from interface java.util.Mapclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, equals, forEach, get, getOrDefault, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size
- 
Method Details- 
valuesIteratorReturns an iterator for a copy of this annotation map's values.- Returns:
- an iterator for a copy of this map's values
 
- 
keySetIteratorIterator<Annotation> keySetIterator()Returns an iterator for a copy of this map's key set.- Returns:
- an iterator for a copy of this map's key set
 
- 
entrySetSet<Map.Entry<Annotation,Position>> entrySet()The returned set is not synchronized on this annotation map's lock object.- Specified by:
- entrySetin interface- Map<Annotation,- Position> 
 
- 
keySetSet<Annotation> keySet()The returned set is not synchronized on this annotation map's lock object.- Specified by:
- keySetin interface- Map<Annotation,- Position> 
 
- 
valuesCollection<Position> values()The returned collection is not synchronized on this annotation map's lock object.- Specified by:
- valuesin interface- Map<Annotation,- Position> 
 
 
-