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

org.rdfhdt.hdtjena.DummyMap Maven / Gradle / Ivy

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 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