org.rdfhdt.hdtjena.DummyMap Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hdt-jena Show documentation
Show all versions of hdt-jena Show documentation
Integration of HDT with Apache Jena
The newest version!
package org.rdfhdt.hdtjena;
import java.util.Collection;
import java.util.Collections;
import java.util.Map;
import java.util.Set;
public class DummyMap implements Map {
@SuppressWarnings("rawtypes")
private static DummyMap instance= new DummyMap();
@SuppressWarnings("unchecked")
public static Map getInstance() {
return (Map) instance;
}
@Override
public int size() {
return 0;
}
@Override
public boolean isEmpty() {
return true;
}
@Override
public boolean containsKey(Object key) {
return false;
}
@Override
public boolean containsValue(Object value) {
return false;
}
@Override
public K get(Object key) {
return null;
}
@Override
public K put(T key, K value) {
return null;
}
@Override
public K remove(Object key) {
return null;
}
@Override
public void putAll(Map extends T, ? extends K> m) {
}
@Override
public void clear() {
}
@Override
public Set keySet() {
return Collections.emptySet();
}
@Override
public Collection values() {
return Collections.emptyList();
}
@Override
public Set> entrySet() {
return Collections.emptySet();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy