public class TUnmodifiableShortCollections extends Object
| Modifier and Type | Method and Description |
|---|---|
static TShortCollection |
wrap(TShortCollection
Returns an unmodifiable view of the specified Trove primitive collection.
|
public static TShortCollectionwrap(TShortCollection c)
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.
c - the collection for which an unmodifiable view is to be returned.