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

lt.lang.implicit.collection.RichMap 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.Map;

/**
 * rich map
 */
public class RichMap {
        private final Map map;

        public RichMap(Map map) {
                this.map = map;
        }

        /**
         * create an immutable map with all current entries contained
         *
         * @return an immutable map
         */
        public Map immutable() {
                return Collections.unmodifiableMap(map);
        }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy