Class TCollections
Collections class.-
Method Summary
Modifier and TypeMethodDescriptionstatic TByteCollectionReturns a synchronized (thread-safe) Trove collection backed by the specified Trove collection.static TCharCollectionReturns a synchronized (thread-safe) Trove collection backed by the specified Trove collection.static TDoubleCollectionReturns a synchronized (thread-safe) Trove collection backed by the specified Trove collection.static TFloatCollectionReturns a synchronized (thread-safe) Trove collection backed by the specified Trove collection.static TIntCollectionReturns a synchronized (thread-safe) Trove collection backed by the specified Trove collection.static TLongCollectionReturns a synchronized (thread-safe) Trove collection backed by the specified Trove collection.static TShortCollectionReturns a synchronized (thread-safe) Trove collection backed by the specified Trove collection.static TByteListsynchronizedList(TByteList list) Returns a synchronized (thread-safe) Trove list backed by the specified list.static TCharListsynchronizedList(TCharList list) Returns a synchronized (thread-safe) Trove list backed by the specified list.static TDoubleListsynchronizedList(TDoubleList list) Returns a synchronized (thread-safe) Trove list backed by the specified list.static TFloatListsynchronizedList(TFloatList list) Returns a synchronized (thread-safe) Trove list backed by the specified list.static TIntListsynchronizedList(TIntList list) Returns a synchronized (thread-safe) Trove list backed by the specified list.static TLongListsynchronizedList(TLongList list) Returns a synchronized (thread-safe) Trove list backed by the specified list.static TShortListsynchronizedList(TShortList list) Returns a synchronized (thread-safe) Trove list backed by the specified list.static TByteByteMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static TByteCharMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static TByteDoubleMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static TByteFloatMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static TByteIntMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static TByteLongMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static <V> TByteObjectMap<V> Returns a synchronized (thread-safe) Trove map backed by the specified map.static TByteShortMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static TCharByteMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static TCharCharMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static TCharDoubleMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static TCharFloatMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static TCharIntMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static TCharLongMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static <V> TCharObjectMap<V> Returns a synchronized (thread-safe) Trove map backed by the specified map.static TCharShortMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static TDoubleByteMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static TDoubleCharMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static TDoubleDoubleMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static TDoubleFloatMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static TDoubleIntMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static TDoubleLongMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static <V> TDoubleObjectMap<V> Returns a synchronized (thread-safe) Trove map backed by the specified map.static TDoubleShortMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static TFloatByteMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static TFloatCharMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static TFloatDoubleMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static TFloatFloatMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static TFloatIntMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static TFloatLongMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static <V> TFloatObjectMap<V> Returns a synchronized (thread-safe) Trove map backed by the specified map.static TFloatShortMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static TIntByteMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static TIntCharMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static TIntDoubleMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static TIntFloatMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static TIntIntMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static TIntLongMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static <V> TIntObjectMap<V> synchronizedMap(TIntObjectMap<V> m) Returns a synchronized (thread-safe) Trove map backed by the specified map.static TIntShortMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static TLongByteMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static TLongCharMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static TLongDoubleMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static TLongFloatMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static TLongIntMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static TLongLongMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static <V> TLongObjectMap<V> Returns a synchronized (thread-safe) Trove map backed by the specified map.static TLongShortMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static <K> TObjectByteMap<K> Returns a synchronized (thread-safe) Trove map backed by the specified map.static <K> TObjectCharMap<K> Returns a synchronized (thread-safe) Trove map backed by the specified map.static <K> TObjectDoubleMap<K> Returns a synchronized (thread-safe) Trove map backed by the specified map.static <K> TObjectFloatMap<K> Returns a synchronized (thread-safe) Trove map backed by the specified map.static <K> TObjectIntMap<K> synchronizedMap(TObjectIntMap<K> m) Returns a synchronized (thread-safe) Trove map backed by the specified map.static <K> TObjectLongMap<K> Returns a synchronized (thread-safe) Trove map backed by the specified map.static <K> TObjectShortMap<K> Returns a synchronized (thread-safe) Trove map backed by the specified map.static TShortByteMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static TShortCharMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static TShortDoubleMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static TShortFloatMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static TShortIntMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static TShortLongMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static <V> TShortObjectMap<V> Returns a synchronized (thread-safe) Trove map backed by the specified map.static TShortShortMapReturns a synchronized (thread-safe) Trove map backed by the specified map.static TByteSetReturns a synchronized (thread-safe) Trove set backed by the specified set.static TCharSetReturns a synchronized (thread-safe) Trove set backed by the specified set.static TDoubleSetReturns a synchronized (thread-safe) Trove set backed by the specified set.static TFloatSetReturns a synchronized (thread-safe) Trove set backed by the specified set.static TIntSetReturns a synchronized (thread-safe) Trove set backed by the specified set.static TLongSetReturns a synchronized (thread-safe) Trove set backed by the specified set.static TShortSetReturns a synchronized (thread-safe) Trove set backed by the specified set.static TByteCollectionReturns an unmodifiable view of the specified Trove primitive collection.static TCharCollectionReturns an unmodifiable view of the specified Trove primitive collection.static TDoubleCollectionReturns an unmodifiable view of the specified Trove primitive collection.static TFloatCollectionReturns an unmodifiable view of the specified Trove primitive collection.static TIntCollectionReturns an unmodifiable view of the specified Trove primitive collection.static TLongCollectionReturns an unmodifiable view of the specified Trove primitive collection.static TShortCollectionReturns an unmodifiable view of the specified Trove primitive collection.static TByteListunmodifiableList(TByteList list) Returns an unmodifiable view of the specified Trove primitive list.static TCharListunmodifiableList(TCharList list) Returns an unmodifiable view of the specified Trove primitive list.static TDoubleListunmodifiableList(TDoubleList list) Returns an unmodifiable view of the specified Trove primitive list.static TFloatListunmodifiableList(TFloatList list) Returns an unmodifiable view of the specified Trove primitive list.static TIntListunmodifiableList(TIntList list) Returns an unmodifiable view of the specified Trove primitive list.static TLongListunmodifiableList(TLongList list) Returns an unmodifiable view of the specified Trove primitive list.static TShortListunmodifiableList(TShortList list) Returns an unmodifiable view of the specified Trove primitive list.static TByteByteMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static TByteCharMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static TByteDoubleMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static TByteFloatMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static TByteIntMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static TByteLongMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static <V> TByteObjectMap<V> Returns an unmodifiable view of the specified Trove primitive/Object map.static TByteShortMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static TCharByteMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static TCharCharMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static TCharDoubleMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static TCharFloatMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static TCharIntMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static TCharLongMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static <V> TCharObjectMap<V> Returns an unmodifiable view of the specified Trove primitive/Object map.static TCharShortMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static TDoubleByteMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static TDoubleCharMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static TDoubleDoubleMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static TDoubleFloatMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static TDoubleIntMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static TDoubleLongMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static <V> TDoubleObjectMap<V> Returns an unmodifiable view of the specified Trove primitive/Object map.static TDoubleShortMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static TFloatByteMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static TFloatCharMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static TFloatDoubleMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static TFloatFloatMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static TFloatIntMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static TFloatLongMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static <V> TFloatObjectMap<V> Returns an unmodifiable view of the specified Trove primitive/Object map.static TFloatShortMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static TIntByteMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static TIntCharMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static TIntDoubleMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static TIntFloatMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static TIntIntMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static TIntLongMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static <V> TIntObjectMap<V> unmodifiableMap(TIntObjectMap<V> m) Returns an unmodifiable view of the specified Trove primitive/Object map.static TIntShortMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static TLongByteMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static TLongCharMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static TLongDoubleMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static TLongFloatMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static TLongIntMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static TLongLongMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static <V> TLongObjectMap<V> Returns an unmodifiable view of the specified Trove primitive/Object map.static TLongShortMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static <K> TObjectByteMap<K> Returns an unmodifiable view of the specified Trove Object/primitive map.static <K> TObjectCharMap<K> Returns an unmodifiable view of the specified Trove Object/primitive map.static <K> TObjectDoubleMap<K> Returns an unmodifiable view of the specified Trove Object/primitive map.static <K> TObjectFloatMap<K> Returns an unmodifiable view of the specified Trove Object/primitive map.static <K> TObjectIntMap<K> unmodifiableMap(TObjectIntMap<K> m) Returns an unmodifiable view of the specified Trove Object/primitive map.static <K> TObjectLongMap<K> Returns an unmodifiable view of the specified Trove Object/primitive map.static <K> TObjectShortMap<K> Returns an unmodifiable view of the specified Trove Object/primitive map.static TShortByteMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static TShortCharMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static TShortDoubleMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static TShortFloatMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static TShortIntMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static TShortLongMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static <V> TShortObjectMap<V> Returns an unmodifiable view of the specified Trove primitive/Object map.static TShortShortMapReturns an unmodifiable view of the specified Trove primitive/primitive map.static TByteSetReturns an unmodifiable view of the specified Trove primitive set.static TCharSetReturns an unmodifiable view of the specified Trove primitive set.static TDoubleSetReturns an unmodifiable view of the specified Trove primitive set.static TFloatSetReturns an unmodifiable view of the specified Trove primitive set.static TIntSetReturns an unmodifiable view of the specified Trove primitive set.static TLongSetReturns an unmodifiable view of the specified Trove primitive set.static TShortSetReturns an unmodifiable view of the specified Trove primitive set.
-
Method Details
-
unmodifiableCollection
Returns an unmodifiable view of the specified Trove primitive collection. This method allows modules to provide users with "read-only" access to internal collections. Query operations on the returned collection "read through" to the specified collection, and attempts to modify the returned collection, whether direct or via its iterator, result in an UnsupportedOperationException.The returned collection does not pass the hashCode and equals operations through to the backing collection, but relies on Object's equals and hashCode methods. This is necessary to preserve the contracts of these operations in the case that the backing collection is a set or a list.
The returned collection will be serializable if the specified collection is serializable.
- Parameters:
c- the collection for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive collection.
-
unmodifiableCollection
Returns an unmodifiable view of the specified Trove primitive collection. This method allows modules to provide users with "read-only" access to internal collections. Query operations on the returned collection "read through" to the specified collection, and attempts to modify the returned collection, whether direct or via its iterator, result in an UnsupportedOperationException.The returned collection does not pass the hashCode and equals operations through to the backing collection, but relies on Object's equals and hashCode methods. This is necessary to preserve the contracts of these operations in the case that the backing collection is a set or a list.
The returned collection will be serializable if the specified collection is serializable.
- Parameters:
c- the collection for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive collection.
-
unmodifiableCollection
Returns an unmodifiable view of the specified Trove primitive collection. This method allows modules to provide users with "read-only" access to internal collections. Query operations on the returned collection "read through" to the specified collection, and attempts to modify the returned collection, whether direct or via its iterator, result in an UnsupportedOperationException.The returned collection does not pass the hashCode and equals operations through to the backing collection, but relies on Object's equals and hashCode methods. This is necessary to preserve the contracts of these operations in the case that the backing collection is a set or a list.
The returned collection will be serializable if the specified collection is serializable.
- Parameters:
c- the collection for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive collection.
-
unmodifiableCollection
Returns an unmodifiable view of the specified Trove primitive collection. This method allows modules to provide users with "read-only" access to internal collections. Query operations on the returned collection "read through" to the specified collection, and attempts to modify the returned collection, whether direct or via its iterator, result in an UnsupportedOperationException.The returned collection does not pass the hashCode and equals operations through to the backing collection, but relies on Object's equals and hashCode methods. This is necessary to preserve the contracts of these operations in the case that the backing collection is a set or a list.
The returned collection will be serializable if the specified collection is serializable.
- Parameters:
c- the collection for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive collection.
-
unmodifiableCollection
Returns an unmodifiable view of the specified Trove primitive collection. This method allows modules to provide users with "read-only" access to internal collections. Query operations on the returned collection "read through" to the specified collection, and attempts to modify the returned collection, whether direct or via its iterator, result in an UnsupportedOperationException.The returned collection does not pass the hashCode and equals operations through to the backing collection, but relies on Object's equals and hashCode methods. This is necessary to preserve the contracts of these operations in the case that the backing collection is a set or a list.
The returned collection will be serializable if the specified collection is serializable.
- Parameters:
c- the collection for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive collection.
-
unmodifiableCollection
Returns an unmodifiable view of the specified Trove primitive collection. This method allows modules to provide users with "read-only" access to internal collections. Query operations on the returned collection "read through" to the specified collection, and attempts to modify the returned collection, whether direct or via its iterator, result in an UnsupportedOperationException.The returned collection does not pass the hashCode and equals operations through to the backing collection, but relies on Object's equals and hashCode methods. This is necessary to preserve the contracts of these operations in the case that the backing collection is a set or a list.
The returned collection will be serializable if the specified collection is serializable.
- Parameters:
c- the collection for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive collection.
-
unmodifiableCollection
Returns an unmodifiable view of the specified Trove primitive collection. This method allows modules to provide users with "read-only" access to internal collections. Query operations on the returned collection "read through" to the specified collection, and attempts to modify the returned collection, whether direct or via its iterator, result in an UnsupportedOperationException.The returned collection does not pass the hashCode and equals operations through to the backing collection, but relies on Object's equals and hashCode methods. This is necessary to preserve the contracts of these operations in the case that the backing collection is a set or a list.
The returned collection will be serializable if the specified collection is serializable.
- Parameters:
c- the collection for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive collection.
-
unmodifiableSet
Returns an unmodifiable view of the specified Trove primitive set. This method allows modules to provide users with "read-only" access to internal sets. Query operations on the returned set "read through" to the specified set, and attempts to modify the returned set, whether direct or via its iterator, result in an UnsupportedOperationException.The returned set will be serializable if the specified set is serializable.
- Parameters:
s- the set for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive set.
-
unmodifiableSet
Returns an unmodifiable view of the specified Trove primitive set. This method allows modules to provide users with "read-only" access to internal sets. Query operations on the returned set "read through" to the specified set, and attempts to modify the returned set, whether direct or via its iterator, result in an UnsupportedOperationException.The returned set will be serializable if the specified set is serializable.
- Parameters:
s- the set for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive set.
-
unmodifiableSet
Returns an unmodifiable view of the specified Trove primitive set. This method allows modules to provide users with "read-only" access to internal sets. Query operations on the returned set "read through" to the specified set, and attempts to modify the returned set, whether direct or via its iterator, result in an UnsupportedOperationException.The returned set will be serializable if the specified set is serializable.
- Parameters:
s- the set for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive set.
-
unmodifiableSet
Returns an unmodifiable view of the specified Trove primitive set. This method allows modules to provide users with "read-only" access to internal sets. Query operations on the returned set "read through" to the specified set, and attempts to modify the returned set, whether direct or via its iterator, result in an UnsupportedOperationException.The returned set will be serializable if the specified set is serializable.
- Parameters:
s- the set for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive set.
-
unmodifiableSet
Returns an unmodifiable view of the specified Trove primitive set. This method allows modules to provide users with "read-only" access to internal sets. Query operations on the returned set "read through" to the specified set, and attempts to modify the returned set, whether direct or via its iterator, result in an UnsupportedOperationException.The returned set will be serializable if the specified set is serializable.
- Parameters:
s- the set for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive set.
-
unmodifiableSet
Returns an unmodifiable view of the specified Trove primitive set. This method allows modules to provide users with "read-only" access to internal sets. Query operations on the returned set "read through" to the specified set, and attempts to modify the returned set, whether direct or via its iterator, result in an UnsupportedOperationException.The returned set will be serializable if the specified set is serializable.
- Parameters:
s- the set for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive set.
-
unmodifiableSet
Returns an unmodifiable view of the specified Trove primitive set. This method allows modules to provide users with "read-only" access to internal sets. Query operations on the returned set "read through" to the specified set, and attempts to modify the returned set, whether direct or via its iterator, result in an UnsupportedOperationException.The returned set will be serializable if the specified set is serializable.
- Parameters:
s- the set for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive set.
-
unmodifiableList
Returns an unmodifiable view of the specified Trove primitive list. This method allows modules to provide users with "read-only" access to internal lists. Query operations on the returned list "read through" to the specified list, and attempts to modify the returned list, whether direct or via its iterator, result in an UnsupportedOperationException.The returned list will be serializable if the specified list is serializable. Similarly, the returned list will implement
RandomAccessif the specified list does.- Parameters:
list- the list for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive list.
-
unmodifiableList
Returns an unmodifiable view of the specified Trove primitive list. This method allows modules to provide users with "read-only" access to internal lists. Query operations on the returned list "read through" to the specified list, and attempts to modify the returned list, whether direct or via its iterator, result in an UnsupportedOperationException.The returned list will be serializable if the specified list is serializable. Similarly, the returned list will implement
RandomAccessif the specified list does.- Parameters:
list- the list for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive list.
-
unmodifiableList
Returns an unmodifiable view of the specified Trove primitive list. This method allows modules to provide users with "read-only" access to internal lists. Query operations on the returned list "read through" to the specified list, and attempts to modify the returned list, whether direct or via its iterator, result in an UnsupportedOperationException.The returned list will be serializable if the specified list is serializable. Similarly, the returned list will implement
RandomAccessif the specified list does.- Parameters:
list- the list for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive list.
-
unmodifiableList
Returns an unmodifiable view of the specified Trove primitive list. This method allows modules to provide users with "read-only" access to internal lists. Query operations on the returned list "read through" to the specified list, and attempts to modify the returned list, whether direct or via its iterator, result in an UnsupportedOperationException.The returned list will be serializable if the specified list is serializable. Similarly, the returned list will implement
RandomAccessif the specified list does.- Parameters:
list- the list for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive list.
-
unmodifiableList
Returns an unmodifiable view of the specified Trove primitive list. This method allows modules to provide users with "read-only" access to internal lists. Query operations on the returned list "read through" to the specified list, and attempts to modify the returned list, whether direct or via its iterator, result in an UnsupportedOperationException.The returned list will be serializable if the specified list is serializable. Similarly, the returned list will implement
RandomAccessif the specified list does.- Parameters:
list- the list for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive list.
-
unmodifiableList
Returns an unmodifiable view of the specified Trove primitive list. This method allows modules to provide users with "read-only" access to internal lists. Query operations on the returned list "read through" to the specified list, and attempts to modify the returned list, whether direct or via its iterator, result in an UnsupportedOperationException.The returned list will be serializable if the specified list is serializable. Similarly, the returned list will implement
RandomAccessif the specified list does.- Parameters:
list- the list for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive list.
-
unmodifiableList
Returns an unmodifiable view of the specified Trove primitive list. This method allows modules to provide users with "read-only" access to internal lists. Query operations on the returned list "read through" to the specified list, and attempts to modify the returned list, whether direct or via its iterator, result in an UnsupportedOperationException.The returned list will be serializable if the specified list is serializable. Similarly, the returned list will implement
RandomAccessif the specified list does.- Parameters:
list- the list for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive list.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/Object map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/Object map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/Object map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/Object map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/Object map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/Object map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove primitive/Object map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove Object/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove Object/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove Object/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove Object/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove Object/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove Object/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
unmodifiableMap
Returns an unmodifiable view of the specified Trove Object/primitive map. This method allows modules to provide users with "read-only" access to internal maps. Query operations on the returned map "read through" to the specified map, and attempts to modify the returned map, whether direct or via its collection views, result in an UnsupportedOperationException.The returned map will be serializable if the specified map is serializable.
- Parameters:
m- the map for which an unmodifiable view is to be returned.- Returns:
- an unmodifiable view of the specified Trove primitive/primitive map.
-
synchronizedCollection
Returns a synchronized (thread-safe) Trove collection backed by the specified Trove collection. In order to guarantee serial access, it is critical that all access to the backing collection is accomplished through the returned collection.It is imperative that the user manually synchronize on the returned collection when iterating over it:
TDoubleCollection c = TCollections.synchronizedCollection( myCollection ); ... synchronized( c ) { TDoubleIterator i = c.iterator(); // Must be in the synchronized block while ( i.hasNext() ) foo( i.next() ); }Failure to follow this advice may result in non-deterministic behavior.The returned collection does not pass the hashCode and equals operations through to the backing collection, but relies on Object's equals and hashCode methods. This is necessary to preserve the contracts of these operations in the case that the backing collection is a set or a list.
The returned collection will be serializable if the specified collection is serializable.
- Parameters:
c- the collection to be "wrapped" in a synchronized collection.- Returns:
- a synchronized view of the specified collection.
-
synchronizedCollection
Returns a synchronized (thread-safe) Trove collection backed by the specified Trove collection. In order to guarantee serial access, it is critical that all access to the backing collection is accomplished through the returned collection.It is imperative that the user manually synchronize on the returned collection when iterating over it:
TFloatCollection c = TCollections.synchronizedCollection( myCollection ); ... synchronized( c ) { TFloatIterator i = c.iterator(); // Must be in the synchronized block while ( i.hasNext() ) foo( i.next() ); }Failure to follow this advice may result in non-deterministic behavior.The returned collection does not pass the hashCode and equals operations through to the backing collection, but relies on Object's equals and hashCode methods. This is necessary to preserve the contracts of these operations in the case that the backing collection is a set or a list.
The returned collection will be serializable if the specified collection is serializable.
- Parameters:
c- the collection to be "wrapped" in a synchronized collection.- Returns:
- a synchronized view of the specified collection.
-
synchronizedCollection
Returns a synchronized (thread-safe) Trove collection backed by the specified Trove collection. In order to guarantee serial access, it is critical that all access to the backing collection is accomplished through the returned collection.It is imperative that the user manually synchronize on the returned collection when iterating over it:
TIntCollection c = TCollections.synchronizedCollection( myCollection ); ... synchronized( c ) { TIntIterator i = c.iterator(); // Must be in the synchronized block while ( i.hasNext() ) foo( i.next() ); }Failure to follow this advice may result in non-deterministic behavior.The returned collection does not pass the hashCode and equals operations through to the backing collection, but relies on Object's equals and hashCode methods. This is necessary to preserve the contracts of these operations in the case that the backing collection is a set or a list.
The returned collection will be serializable if the specified collection is serializable.
- Parameters:
c- the collection to be "wrapped" in a synchronized collection.- Returns:
- a synchronized view of the specified collection.
-
synchronizedCollection
Returns a synchronized (thread-safe) Trove collection backed by the specified Trove collection. In order to guarantee serial access, it is critical that all access to the backing collection is accomplished through the returned collection.It is imperative that the user manually synchronize on the returned collection when iterating over it:
TLongCollection c = TCollections.synchronizedCollection( myCollection ); ... synchronized( c ) { TLongIterator i = c.iterator(); // Must be in the synchronized block while ( i.hasNext() ) foo( i.next() ); }Failure to follow this advice may result in non-deterministic behavior.The returned collection does not pass the hashCode and equals operations through to the backing collection, but relies on Object's equals and hashCode methods. This is necessary to preserve the contracts of these operations in the case that the backing collection is a set or a list.
The returned collection will be serializable if the specified collection is serializable.
- Parameters:
c- the collection to be "wrapped" in a synchronized collection.- Returns:
- a synchronized view of the specified collection.
-
synchronizedCollection
Returns a synchronized (thread-safe) Trove collection backed by the specified Trove collection. In order to guarantee serial access, it is critical that all access to the backing collection is accomplished through the returned collection.It is imperative that the user manually synchronize on the returned collection when iterating over it:
TByteCollection c = TCollections.synchronizedCollection( myCollection ); ... synchronized( c ) { TByteIterator i = c.iterator(); // Must be in the synchronized block while ( i.hasNext() ) foo( i.next() ); }Failure to follow this advice may result in non-deterministic behavior.The returned collection does not pass the hashCode and equals operations through to the backing collection, but relies on Object's equals and hashCode methods. This is necessary to preserve the contracts of these operations in the case that the backing collection is a set or a list.
The returned collection will be serializable if the specified collection is serializable.
- Parameters:
c- the collection to be "wrapped" in a synchronized collection.- Returns:
- a synchronized view of the specified collection.
-
synchronizedCollection
Returns a synchronized (thread-safe) Trove collection backed by the specified Trove collection. In order to guarantee serial access, it is critical that all access to the backing collection is accomplished through the returned collection.It is imperative that the user manually synchronize on the returned collection when iterating over it:
TShortCollection c = TCollections.synchronizedCollection( myCollection ); ... synchronized( c ) { TShortIterator i = c.iterator(); // Must be in the synchronized block while ( i.hasNext() ) foo( i.next() ); }Failure to follow this advice may result in non-deterministic behavior.The returned collection does not pass the hashCode and equals operations through to the backing collection, but relies on Object's equals and hashCode methods. This is necessary to preserve the contracts of these operations in the case that the backing collection is a set or a list.
The returned collection will be serializable if the specified collection is serializable.
- Parameters:
c- the collection to be "wrapped" in a synchronized collection.- Returns:
- a synchronized view of the specified collection.
-
synchronizedCollection
Returns a synchronized (thread-safe) Trove collection backed by the specified Trove collection. In order to guarantee serial access, it is critical that all access to the backing collection is accomplished through the returned collection.It is imperative that the user manually synchronize on the returned collection when iterating over it:
TCharCollection c = TCollections.synchronizedCollection( myCollection ); ... synchronized( c ) { TCharIterator i = c.iterator(); // Must be in the synchronized block while ( i.hasNext() ) foo( i.next() ); }Failure to follow this advice may result in non-deterministic behavior.The returned collection does not pass the hashCode and equals operations through to the backing collection, but relies on Object's equals and hashCode methods. This is necessary to preserve the contracts of these operations in the case that the backing collection is a set or a list.
The returned collection will be serializable if the specified collection is serializable.
- Parameters:
c- the collection to be "wrapped" in a synchronized collection.- Returns:
- a synchronized view of the specified collection.
-
synchronizedSet
Returns a synchronized (thread-safe) Trove set backed by the specified set. In order to guarantee serial access, it is critical that all access to the backing set is accomplished through the returned set.It is imperative that the user manually synchronize on the returned set when iterating over it:
TDoubleSet s = TCollections.synchronizedSet( new TDoubleHashSet() ); ... synchronized(s) { TDoubleIterator i = s.iterator(); // Must be in the synchronized block while ( i.hasNext() ) foo( i.next() ); }Failure to follow this advice may result in non-deterministic behavior.The returned set will be serializable if the specified set is serializable.
- Parameters:
s- the set to be "wrapped" in a synchronized set.- Returns:
- a synchronized view of the specified set.
-
synchronizedSet
Returns a synchronized (thread-safe) Trove set backed by the specified set. In order to guarantee serial access, it is critical that all access to the backing set is accomplished through the returned set.It is imperative that the user manually synchronize on the returned set when iterating over it:
TFloatSet s = TCollections.synchronizedSet( new TFloatHashSet() ); ... synchronized(s) { TFloatIterator i = s.iterator(); // Must be in the synchronized block while ( i.hasNext() ) foo( i.next() ); }Failure to follow this advice may result in non-deterministic behavior.The returned set will be serializable if the specified set is serializable.
- Parameters:
s- the set to be "wrapped" in a synchronized set.- Returns:
- a synchronized view of the specified set.
-
synchronizedSet
Returns a synchronized (thread-safe) Trove set backed by the specified set. In order to guarantee serial access, it is critical that all access to the backing set is accomplished through the returned set.It is imperative that the user manually synchronize on the returned set when iterating over it:
TIntSet s = TCollections.synchronizedSet( new TIntHashSet() ); ... synchronized(s) { TIntIterator i = s.iterator(); // Must be in the synchronized block while ( i.hasNext() ) foo( i.next() ); }Failure to follow this advice may result in non-deterministic behavior.The returned set will be serializable if the specified set is serializable.
- Parameters:
s- the set to be "wrapped" in a synchronized set.- Returns:
- a synchronized view of the specified set.
-
synchronizedSet
Returns a synchronized (thread-safe) Trove set backed by the specified set. In order to guarantee serial access, it is critical that all access to the backing set is accomplished through the returned set.It is imperative that the user manually synchronize on the returned set when iterating over it:
TLongSet s = TCollections.synchronizedSet( new TLongHashSet() ); ... synchronized(s) { TLongIterator i = s.iterator(); // Must be in the synchronized block while ( i.hasNext() ) foo( i.next() ); }Failure to follow this advice may result in non-deterministic behavior.The returned set will be serializable if the specified set is serializable.
- Parameters:
s- the set to be "wrapped" in a synchronized set.- Returns:
- a synchronized view of the specified set.
-
synchronizedSet
Returns a synchronized (thread-safe) Trove set backed by the specified set. In order to guarantee serial access, it is critical that all access to the backing set is accomplished through the returned set.It is imperative that the user manually synchronize on the returned set when iterating over it:
TByteSet s = TCollections.synchronizedSet( new TByteHashSet() ); ... synchronized(s) { TByteIterator i = s.iterator(); // Must be in the synchronized block while ( i.hasNext() ) foo( i.next() ); }Failure to follow this advice may result in non-deterministic behavior.The returned set will be serializable if the specified set is serializable.
- Parameters:
s- the set to be "wrapped" in a synchronized set.- Returns:
- a synchronized view of the specified set.
-
synchronizedSet
Returns a synchronized (thread-safe) Trove set backed by the specified set. In order to guarantee serial access, it is critical that all access to the backing set is accomplished through the returned set.It is imperative that the user manually synchronize on the returned set when iterating over it:
TShortSet s = TCollections.synchronizedSet( new TShortHashSet() ); ... synchronized(s) { TShortIterator i = s.iterator(); // Must be in the synchronized block while ( i.hasNext() ) foo( i.next() ); }Failure to follow this advice may result in non-deterministic behavior.The returned set will be serializable if the specified set is serializable.
- Parameters:
s- the set to be "wrapped" in a synchronized set.- Returns:
- a synchronized view of the specified set.
-
synchronizedSet
Returns a synchronized (thread-safe) Trove set backed by the specified set. In order to guarantee serial access, it is critical that all access to the backing set is accomplished through the returned set.It is imperative that the user manually synchronize on the returned set when iterating over it:
TCharSet s = TCollections.synchronizedSet( new TCharHashSet() ); ... synchronized(s) { TCharIterator i = s.iterator(); // Must be in the synchronized block while ( i.hasNext() ) foo( i.next() ); }Failure to follow this advice may result in non-deterministic behavior.The returned set will be serializable if the specified set is serializable.
- Parameters:
s- the set to be "wrapped" in a synchronized set.- Returns:
- a synchronized view of the specified set.
-
synchronizedList
Returns a synchronized (thread-safe) Trove list backed by the specified list. In order to guarantee serial access, it is critical that all access to the backing list is accomplished through the returned list.It is imperative that the user manually synchronize on the returned list when iterating over it:
TDoubleList list = TCollections.synchronizedList( new TDoubleArrayList() ); ... synchronized( list ) { TDoubleIterator i = list.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 list will be serializable if the specified list is serializable.
- Parameters:
list- the list to be "wrapped" in a synchronized list.- Returns:
- a synchronized view of the specified list.
-
synchronizedList
Returns a synchronized (thread-safe) Trove list backed by the specified list. In order to guarantee serial access, it is critical that all access to the backing list is accomplished through the returned list.It is imperative that the user manually synchronize on the returned list when iterating over it:
TFloatList list = TCollections.synchronizedList( new TFloatArrayList() ); ... synchronized( list ) { TFloatIterator i = list.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 list will be serializable if the specified list is serializable.
- Parameters:
list- the list to be "wrapped" in a synchronized list.- Returns:
- a synchronized view of the specified list.
-
synchronizedList
Returns a synchronized (thread-safe) Trove list backed by the specified list. In order to guarantee serial access, it is critical that all access to the backing list is accomplished through the returned list.It is imperative that the user manually synchronize on the returned list when iterating over it:
TIntList list = TCollections.synchronizedList( new TIntArrayList() ); ... synchronized( list ) { TIntIterator i = list.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 list will be serializable if the specified list is serializable.
- Parameters:
list- the list to be "wrapped" in a synchronized list.- Returns:
- a synchronized view of the specified list.
-
synchronizedList
Returns a synchronized (thread-safe) Trove list backed by the specified list. In order to guarantee serial access, it is critical that all access to the backing list is accomplished through the returned list.It is imperative that the user manually synchronize on the returned list when iterating over it:
TLongList list = TCollections.synchronizedList( new TLongArrayList() ); ... synchronized( list ) { TLongIterator i = list.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 list will be serializable if the specified list is serializable.
- Parameters:
list- the list to be "wrapped" in a synchronized list.- Returns:
- a synchronized view of the specified list.
-
synchronizedList
Returns a synchronized (thread-safe) Trove list backed by the specified list. In order to guarantee serial access, it is critical that all access to the backing list is accomplished through the returned list.It is imperative that the user manually synchronize on the returned list when iterating over it:
TByteList list = TCollections.synchronizedList( new TByteArrayList() ); ... synchronized( list ) { TByteIterator i = list.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 list will be serializable if the specified list is serializable.
- Parameters:
list- the list to be "wrapped" in a synchronized list.- Returns:
- a synchronized view of the specified list.
-
synchronizedList
Returns a synchronized (thread-safe) Trove list backed by the specified list. In order to guarantee serial access, it is critical that all access to the backing list is accomplished through the returned list.It is imperative that the user manually synchronize on the returned list when iterating over it:
TShortList list = TCollections.synchronizedList( new TShortArrayList() ); ... synchronized( list ) { TShortIterator i = list.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 list will be serializable if the specified list is serializable.
- Parameters:
list- the list to be "wrapped" in a synchronized list.- Returns:
- a synchronized view of the specified list.
-
synchronizedList
Returns a synchronized (thread-safe) Trove list backed by the specified list. In order to guarantee serial access, it is critical that all access to the backing list is accomplished through the returned list.It is imperative that the user manually synchronize on the returned list when iterating over it:
TCharList list = TCollections.synchronizedList( new TCharArrayList() ); ... synchronized( list ) { TCharIterator i = list.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 list will be serializable if the specified list is serializable.
- Parameters:
list- the list to be "wrapped" in a synchronized list.- Returns:
- a synchronized view of the specified list.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TDoubleDoubleMap m = TCollections.synchronizedMap( new TDoubleDoubleHashMap() ); ... TDoubleSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TDoubleIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TDoubleFloatMap m = TCollections.synchronizedMap( new TDoubleFloatHashMap() ); ... TDoubleSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TDoubleIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TDoubleIntMap m = TCollections.synchronizedMap( new TDoubleIntHashMap() ); ... TDoubleSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TDoubleIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TDoubleLongMap m = TCollections.synchronizedMap( new TDoubleLongHashMap() ); ... TDoubleSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TDoubleIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TDoubleByteMap m = TCollections.synchronizedMap( new TDoubleByteHashMap() ); ... TDoubleSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TDoubleIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TDoubleShortMap m = TCollections.synchronizedMap( new TDoubleShortHashMap() ); ... TDoubleSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TDoubleIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TDoubleCharMap m = TCollections.synchronizedMap( new TDoubleCharHashMap() ); ... TDoubleSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TDoubleIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TFloatDoubleMap m = TCollections.synchronizedMap( new TFloatDoubleHashMap() ); ... TFloatSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TFloatIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TFloatFloatMap m = TCollections.synchronizedMap( new TFloatFloatHashMap() ); ... TFloatSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TFloatIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TFloatIntMap m = TCollections.synchronizedMap( new TFloatIntHashMap() ); ... TFloatSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TFloatIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TFloatLongMap m = TCollections.synchronizedMap( new TFloatLongHashMap() ); ... TFloatSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TFloatIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TFloatByteMap m = TCollections.synchronizedMap( new TFloatByteHashMap() ); ... TFloatSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TFloatIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TFloatShortMap m = TCollections.synchronizedMap( new TFloatShortHashMap() ); ... TFloatSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TFloatIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TFloatCharMap m = TCollections.synchronizedMap( new TFloatCharHashMap() ); ... TFloatSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TFloatIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TIntDoubleMap m = TCollections.synchronizedMap( new TIntDoubleHashMap() ); ... TIntSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TIntIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TIntFloatMap m = TCollections.synchronizedMap( new TIntFloatHashMap() ); ... TIntSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TIntIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TIntIntMap m = TCollections.synchronizedMap( new TIntIntHashMap() ); ... TIntSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TIntIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TIntLongMap m = TCollections.synchronizedMap( new TIntLongHashMap() ); ... TIntSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TIntIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TIntByteMap m = TCollections.synchronizedMap( new TIntByteHashMap() ); ... TIntSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TIntIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TIntShortMap m = TCollections.synchronizedMap( new TIntShortHashMap() ); ... TIntSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TIntIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TIntCharMap m = TCollections.synchronizedMap( new TIntCharHashMap() ); ... TIntSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TIntIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TLongDoubleMap m = TCollections.synchronizedMap( new TLongDoubleHashMap() ); ... TLongSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TLongIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TLongFloatMap m = TCollections.synchronizedMap( new TLongFloatHashMap() ); ... TLongSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TLongIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TLongIntMap m = TCollections.synchronizedMap( new TLongIntHashMap() ); ... TLongSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TLongIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TLongLongMap m = TCollections.synchronizedMap( new TLongLongHashMap() ); ... TLongSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TLongIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TLongByteMap m = TCollections.synchronizedMap( new TLongByteHashMap() ); ... TLongSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TLongIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TLongShortMap m = TCollections.synchronizedMap( new TLongShortHashMap() ); ... TLongSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TLongIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TLongCharMap m = TCollections.synchronizedMap( new TLongCharHashMap() ); ... TLongSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TLongIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TByteDoubleMap m = TCollections.synchronizedMap( new TByteDoubleHashMap() ); ... TByteSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TByteIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TByteFloatMap m = TCollections.synchronizedMap( new TByteFloatHashMap() ); ... TByteSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TByteIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TByteIntMap m = TCollections.synchronizedMap( new TByteIntHashMap() ); ... TByteSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TByteIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TByteLongMap m = TCollections.synchronizedMap( new TByteLongHashMap() ); ... TByteSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TByteIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TByteByteMap m = TCollections.synchronizedMap( new TByteByteHashMap() ); ... TByteSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TByteIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TByteShortMap m = TCollections.synchronizedMap( new TByteShortHashMap() ); ... TByteSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TByteIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TByteCharMap m = TCollections.synchronizedMap( new TByteCharHashMap() ); ... TByteSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TByteIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TShortDoubleMap m = TCollections.synchronizedMap( new TShortDoubleHashMap() ); ... TShortSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TShortIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TShortFloatMap m = TCollections.synchronizedMap( new TShortFloatHashMap() ); ... TShortSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TShortIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TShortIntMap m = TCollections.synchronizedMap( new TShortIntHashMap() ); ... TShortSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TShortIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TShortLongMap m = TCollections.synchronizedMap( new TShortLongHashMap() ); ... TShortSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TShortIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TShortByteMap m = TCollections.synchronizedMap( new TShortByteHashMap() ); ... TShortSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TShortIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TShortShortMap m = TCollections.synchronizedMap( new TShortShortHashMap() ); ... TShortSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TShortIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TShortCharMap m = TCollections.synchronizedMap( new TShortCharHashMap() ); ... TShortSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TShortIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TCharDoubleMap m = TCollections.synchronizedMap( new TCharDoubleHashMap() ); ... TCharSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TCharIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TCharFloatMap m = TCollections.synchronizedMap( new TCharFloatHashMap() ); ... TCharSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TCharIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TCharIntMap m = TCollections.synchronizedMap( new TCharIntHashMap() ); ... TCharSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TCharIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TCharLongMap m = TCollections.synchronizedMap( new TCharLongHashMap() ); ... TCharSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TCharIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TCharByteMap m = TCollections.synchronizedMap( new TCharByteHashMap() ); ... TCharSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TCharIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TCharShortMap m = TCollections.synchronizedMap( new TCharShortHashMap() ); ... TCharSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TCharIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TCharCharMap m = TCollections.synchronizedMap( new TCharCharHashMap() ); ... TCharSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TCharIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TDoubleObjectMap m = TCollections.synchronizedMap( new TDoubleObjectHashMap() ); ... TDoubleSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TDoubleIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TFloatObjectMap m = TCollections.synchronizedMap( new TFloatObjectHashMap() ); ... TFloatSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TFloatIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TIntObjectMap m = TCollections.synchronizedMap( new TIntObjectHashMap() ); ... TIntSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TIntIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TLongObjectMap m = TCollections.synchronizedMap( new TLongObjectHashMap() ); ... TLongSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TLongIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TByteObjectMap m = TCollections.synchronizedMap( new TByteObjectHashMap() ); ... TByteSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TByteIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TShortObjectMap m = TCollections.synchronizedMap( new TShortObjectHashMap() ); ... TShortSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TShortIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TCharObjectMap m = TCollections.synchronizedMap( new TCharObjectHashMap() ); ... TCharSet s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not s! TCharIterator 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TObjectDoubleMap m = TCollections.synchronizedMap( new TObjectDoubleHashMap() ); ... Set s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TObjectFloatMap m = TCollections.synchronizedMap( new TObjectFloatHashMap() ); ... Set s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TObjectIntMap m = TCollections.synchronizedMap( new TObjectIntHashMap() ); ... Set s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TObjectLongMap m = TCollections.synchronizedMap( new TObjectLongHashMap() ); ... Set s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TObjectByteMap m = TCollections.synchronizedMap( new TObjectByteHashMap() ); ... Set s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TObjectShortMap m = TCollections.synchronizedMap( new TObjectShortHashMap() ); ... Set s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-
synchronizedMap
Returns a synchronized (thread-safe) Trove map backed by the specified map. In order to guarantee serial access, it is critical that all access to the backing map is accomplished through the returned map.It is imperative that the user manually synchronize on the returned map when iterating over any of its collection views:
TObjectCharMap m = TCollections.synchronizedMap( new TObjectCharHashMap() ); ... Set s = m.keySet(); // Needn't be in synchronized block ... synchronized( m ) { // Synchronizing on m, not 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.
- Parameters:
m- the map to be "wrapped" in a synchronized map.- Returns:
- a synchronized view of the specified map.
-