All Downloads are FREE. Search and download functionalities are using the official Maven repository.

lt.lang.implicit.collection.RichSet Maven / Gradle / Ivy

Go to download

The latte-lang compiler project, which contains compiler and runtime required library.

The newest version!
package lt.lang.implicit.collection;

import java.util.Collections;
import java.util.Set;

/**
 * rich set
 */
public class RichSet {
        private final Set set;

        public RichSet(Set set) {
                this.set = set;
        }

        /**
         * get an immutable set with all current elements contained
         *
         * @return an immutable set
         */
        public Set immutable() {
                return Collections.unmodifiableSet(set);
        }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy