org.infinispan.protostream.descriptors.namespace.LocalNamespace Maven / Gradle / Ivy
package org.infinispan.protostream.descriptors.namespace;
import java.util.Collections;
import java.util.Map;
import org.infinispan.protostream.descriptors.GenericDescriptor;
/**
* @author [email protected]
* @since 3.1
*/
public final class LocalNamespace implements Namespace {
private final Map localDefinitions;
LocalNamespace(Map localDefinitions) {
this.localDefinitions = Collections.unmodifiableMap(localDefinitions);
}
@Override
public GenericDescriptor get(String name) {
return localDefinitions.get(name);
}
public Map getTypes() {
return localDefinitions;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy