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

com.astamuse.asta4d.util.UnmodifiableContextMap Maven / Gradle / Ivy

Go to download

core functionalities of asta4d framework, including template and snippt implemention

There is a newer version: 1.2-M2
Show newest version
package com.astamuse.asta4d.util;

import com.astamuse.asta4d.ContextMap;

public class UnmodifiableContextMap implements ContextMap {

    private ContextMap map;

    public UnmodifiableContextMap(ContextMap map) {
        super();
        this.map = map;
    }

    public void put(String key, Object data) {
        throw new UnsupportedOperationException("Put operation is forbidden on this class:" + this.getClass().getName());
    }

    public  T get(String key) {
        return map.get(key);
    }

    public ContextMap createClone() {
        return this;
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy