Class TUnmodifiableDoubleSets



  • public class TUnmodifiableDoubleSets
    extends Object
    • Method Detail

      • wrap

        public static TDoubleSet wrap(TDoubleSet s)
        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.