Class TCollections
Collections
class.-
Method Summary
Modifier and TypeMethodDescriptionstatic TByteCollection
Returns a synchronized (thread-safe) Trove collection backed by the specified Trove collection.static TCharCollection
Returns a synchronized (thread-safe) Trove collection backed by the specified Trove collection.static TDoubleCollection
Returns a synchronized (thread-safe) Trove collection backed by the specified Trove collection.static TFloatCollection
Returns a synchronized (thread-safe) Trove collection backed by the specified Trove collection.static TIntCollection
Returns a synchronized (thread-safe) Trove collection backed by the specified Trove collection.static TLongCollection
Returns a synchronized (thread-safe) Trove collection backed by the specified Trove collection.static TShortCollection
Returns a synchronized (thread-safe) Trove collection backed by the specified Trove collection.static TByteList
synchronizedList
(TByteList list) Returns a synchronized (thread-safe) Trove list backed by the specified list.static TCharList
synchronizedList
(TCharList list) Returns a synchronized (thread-safe) Trove list backed by the specified list.static TDoubleList
synchronizedList
(TDoubleList list) Returns a synchronized (thread-safe) Trove list backed by the specified list.static TFloatList
synchronizedList
(TFloatList list) Returns a synchronized (thread-safe) Trove list backed by the specified list.static TIntList
synchronizedList
(TIntList list) Returns a synchronized (thread-safe) Trove list backed by the specified list.static TLongList
synchronizedList
(TLongList list) Returns a synchronized (thread-safe) Trove list backed by the specified list.static TShortList
synchronizedList
(TShortList list) Returns a synchronized (thread-safe) Trove list backed by the specified list.static TByteByteMap
Returns a synchronized (thread-safe) Trove map backed by the specified map.static TByteCharMap
Returns a synchronized (thread-safe) Trove map backed by the specified map.static TByteDoubleMap
Returns a synchronized (thread-safe) Trove map backed by the specified map.static TByteFloatMap
Returns a synchronized (thread-safe) Trove map backed by the specified map.static TByteIntMap
Returns a synchronized (thread-safe) Trove map backed by the specified map.static TByteLongMap
Returns 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 TByteShortMap
Returns a synchronized (thread-safe) Trove map backed by the specified map.static TCharByteMap
Returns a synchronized (thread-safe) Trove map backed by the specified map.static TCharCharMap
Returns a synchronized (thread-safe) Trove map backed by the specified map.static TCharDoubleMap
Returns a synchronized (thread-safe) Trove map backed by the specified map.static TCharFloatMap
Returns a synchronized (thread-safe) Trove map backed by the specified map.static TCharIntMap
Returns a synchronized (thread-safe) Trove map backed by the specified map.static TCharLongMap
Returns 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 TCharShortMap
Returns a synchronized (thread-safe) Trove map backed by the specified map.static TDoubleByteMap
Returns a synchronized (thread-safe) Trove map backed by the specified map.static TDoubleCharMap
Returns a synchronized (thread-safe) Trove map backed by the specified map.static TDoubleDoubleMap
Returns a synchronized (thread-safe) Trove map backed by the specified map.static TDoubleFloatMap
Returns a synchronized (thread-safe) Trove map backed by the specified map.static TDoubleIntMap
Returns a synchronized (thread-safe) Trove map backed by the specified map.static TDoubleLongMap
Returns 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 TDoubleShortMap
Returns a synchronized (thread-safe) Trove map backed by the specified map.static TFloatByteMap
Returns a synchronized (thread-safe) Trove map backed by the specified map.static TFloatCharMap
Returns a synchronized (thread-safe) Trove map backed by the specified map.static TFloatDoubleMap
Returns a synchronized (thread-safe) Trove map backed by the specified map.static TFloatFloatMap
Returns a synchronized (thread-safe) Trove map backed by the specified map.static TFloatIntMap
Returns a synchronized (thread-safe) Trove map backed by the specified map.static TFloatLongMap
Returns 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 TFloatShortMap
Returns a synchronized (thread-safe) Trove map backed by the specified map.static TIntByteMap
Returns a synchronized (thread-safe) Trove map backed by the specified map.static TIntCharMap
Returns a synchronized (thread-safe) Trove map backed by the specified map.static TIntDoubleMap
Returns a synchronized (thread-safe) Trove map backed by the specified map.static TIntFloatMap
Returns a synchronized (thread-safe) Trove map backed by the specified map.static TIntIntMap
Returns a synchronized (thread-safe) Trove map backed by the specified map.static TIntLongMap
Returns 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 TIntShortMap
Returns a synchronized (thread-safe) Trove map backed by the specified map.static TLongByteMap
Returns a synchronized (thread-safe) Trove map backed by the specified map.static TLongCharMap
Returns a synchronized (thread-safe) Trove map backed by the specified map.static TLongDoubleMap
Returns a synchronized (thread-safe) Trove map backed by the specified map.static TLongFloatMap
Returns a synchronized (thread-safe) Trove map backed by the specified map.static TLongIntMap
Returns a synchronized (thread-safe) Trove map backed by the specified map.static TLongLongMap
Returns 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 TLongShortMap
Returns 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 TShortByteMap
Returns a synchronized (thread-safe) Trove map backed by the specified map.static TShortCharMap
Returns a synchronized (thread-safe) Trove map backed by the specified map.static TShortDoubleMap
Returns a synchronized (thread-safe) Trove map backed by the specified map.static TShortFloatMap
Returns a synchronized (thread-safe) Trove map backed by the specified map.static TShortIntMap
Returns a synchronized (thread-safe) Trove map backed by the specified map.static TShortLongMap
Returns 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 TShortShortMap
Returns a synchronized (thread-safe) Trove map backed by the specified map.static TByteSet
Returns a synchronized (thread-safe) Trove set backed by the specified set.static TCharSet
Returns a synchronized (thread-safe) Trove set backed by the specified set.static TDoubleSet
Returns a synchronized (thread-safe) Trove set backed by the specified set.static TFloatSet
Returns a synchronized (thread-safe) Trove set backed by the specified set.static TIntSet
Returns a synchronized (thread-safe) Trove set backed by the specified set.static TLongSet
Returns a synchronized (thread-safe) Trove set backed by the specified set.static TShortSet
Returns a synchronized (thread-safe) Trove set backed by the specified set.static TByteCollection
Returns an unmodifiable view of the specified Trove primitive collection.static TCharCollection
Returns an unmodifiable view of the specified Trove primitive collection.static TDoubleCollection
Returns an unmodifiable view of the specified Trove primitive collection.static TFloatCollection
Returns an unmodifiable view of the specified Trove primitive collection.static TIntCollection
Returns an unmodifiable view of the specified Trove primitive collection.static TLongCollection
Returns an unmodifiable view of the specified Trove primitive collection.static TShortCollection
Returns an unmodifiable view of the specified Trove primitive collection.static TByteList
unmodifiableList
(TByteList list) Returns an unmodifiable view of the specified Trove primitive list.static TCharList
unmodifiableList
(TCharList list) Returns an unmodifiable view of the specified Trove primitive list.static TDoubleList
unmodifiableList
(TDoubleList list) Returns an unmodifiable view of the specified Trove primitive list.static TFloatList
unmodifiableList
(TFloatList list) Returns an unmodifiable view of the specified Trove primitive list.static TIntList
unmodifiableList
(TIntList list) Returns an unmodifiable view of the specified Trove primitive list.static TLongList
unmodifiableList
(TLongList list) Returns an unmodifiable view of the specified Trove primitive list.static TShortList
unmodifiableList
(TShortList list) Returns an unmodifiable view of the specified Trove primitive list.static TByteByteMap
Returns an unmodifiable view of the specified Trove primitive/primitive map.static TByteCharMap
Returns an unmodifiable view of the specified Trove primitive/primitive map.static TByteDoubleMap
Returns an unmodifiable view of the specified Trove primitive/primitive map.static TByteFloatMap
Returns an unmodifiable view of the specified Trove primitive/primitive map.static TByteIntMap
Returns an unmodifiable view of the specified Trove primitive/primitive map.static TByteLongMap
Returns 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 TByteShortMap
Returns an unmodifiable view of the specified Trove primitive/primitive map.static TCharByteMap
Returns an unmodifiable view of the specified Trove primitive/primitive map.static TCharCharMap
Returns an unmodifiable view of the specified Trove primitive/primitive map.static TCharDoubleMap
Returns an unmodifiable view of the specified Trove primitive/primitive map.static TCharFloatMap
Returns an unmodifiable view of the specified Trove primitive/primitive map.static TCharIntMap
Returns an unmodifiable view of the specified Trove primitive/primitive map.static TCharLongMap
Returns 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 TCharShortMap
Returns an unmodifiable view of the specified Trove primitive/primitive map.static TDoubleByteMap
Returns an unmodifiable view of the specified Trove primitive/primitive map.static TDoubleCharMap
Returns an unmodifiable view of the specified Trove primitive/primitive map.static TDoubleDoubleMap
Returns an unmodifiable view of the specified Trove primitive/primitive map.static TDoubleFloatMap
Returns an unmodifiable view of the specified Trove primitive/primitive map.static TDoubleIntMap
Returns an unmodifiable view of the specified Trove primitive/primitive map.static TDoubleLongMap
Returns 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 TDoubleShortMap
Returns an unmodifiable view of the specified Trove primitive/primitive map.static TFloatByteMap
Returns an unmodifiable view of the specified Trove primitive/primitive map.static TFloatCharMap
Returns an unmodifiable view of the specified Trove primitive/primitive map.static TFloatDoubleMap
Returns an unmodifiable view of the specified Trove primitive/primitive map.static TFloatFloatMap
Returns an unmodifiable view of the specified Trove primitive/primitive map.static TFloatIntMap
Returns an unmodifiable view of the specified Trove primitive/primitive map.static TFloatLongMap
Returns 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 TFloatShortMap
Returns an unmodifiable view of the specified Trove primitive/primitive map.static TIntByteMap
Returns an unmodifiable view of the specified Trove primitive/primitive map.static TIntCharMap
Returns an unmodifiable view of the specified Trove primitive/primitive map.static TIntDoubleMap
Returns an unmodifiable view of the specified Trove primitive/primitive map.static TIntFloatMap
Returns an unmodifiable view of the specified Trove primitive/primitive map.static TIntIntMap
Returns an unmodifiable view of the specified Trove primitive/primitive map.static TIntLongMap
Returns 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 TIntShortMap
Returns an unmodifiable view of the specified Trove primitive/primitive map.static TLongByteMap
Returns an unmodifiable view of the specified Trove primitive/primitive map.static TLongCharMap
Returns an unmodifiable view of the specified Trove primitive/primitive map.static TLongDoubleMap
Returns an unmodifiable view of the specified Trove primitive/primitive map.static TLongFloatMap
Returns an unmodifiable view of the specified Trove primitive/primitive map.static TLongIntMap
Returns an unmodifiable view of the specified Trove primitive/primitive map.static TLongLongMap
Returns 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 TLongShortMap
Returns 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 TShortByteMap
Returns an unmodifiable view of the specified Trove primitive/primitive map.static TShortCharMap
Returns an unmodifiable view of the specified Trove primitive/primitive map.static TShortDoubleMap
Returns an unmodifiable view of the specified Trove primitive/primitive map.static TShortFloatMap
Returns an unmodifiable view of the specified Trove primitive/primitive map.static TShortIntMap
Returns an unmodifiable view of the specified Trove primitive/primitive map.static TShortLongMap
Returns 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 TShortShortMap
Returns an unmodifiable view of the specified Trove primitive/primitive map.static TByteSet
Returns an unmodifiable view of the specified Trove primitive set.static TCharSet
Returns an unmodifiable view of the specified Trove primitive set.static TDoubleSet
Returns an unmodifiable view of the specified Trove primitive set.static TFloatSet
Returns an unmodifiable view of the specified Trove primitive set.static TIntSet
Returns an unmodifiable view of the specified Trove primitive set.static TLongSet
Returns an unmodifiable view of the specified Trove primitive set.static TShortSet
Returns 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
RandomAccess
if 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
RandomAccess
if 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
RandomAccess
if 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
RandomAccess
if 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
RandomAccess
if 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
RandomAccess
if 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
RandomAccess
if 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.
-