com.aeontronix.commons.AbstractMap Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aeon-commons-core Show documentation
Show all versions of aeon-commons-core Show documentation
Various utility classes. Except for very rare exceptions (annotation-based validation) this will not
require any dependencies beyond the JRE
The newest version!
/*
* Copyright (c) 2014 Kloudtek Ltd
*/
package com.aeontronix.commons;
import java.util.Collection;
import java.util.Map;
import java.util.Set;
/**
* Base Implementation of Map where all methods throw a RuntimeException with the message "Not Implemented"
*/
public class AbstractMap implements Map {
@Override
public int size() {
throw new RuntimeException("Not implemented");
}
@Override
public boolean isEmpty() {
throw new RuntimeException("Not implemented");
}
@Override
public boolean containsKey(Object key) {
throw new RuntimeException("Not implemented");
}
@Override
public boolean containsValue(Object value) {
throw new RuntimeException("Not implemented");
}
@Override
public V get(Object key) {
throw new RuntimeException("Not implemented");
}
@Override
public V put(K key, V value) {
throw new RuntimeException("Not implemented");
}
@Override
public V remove(Object key) {
throw new RuntimeException("Not implemented");
}
@Override
public void putAll(Map extends K, ? extends V> m) {
throw new RuntimeException("Not implemented");
}
@Override
public void clear() {
throw new RuntimeException("Not implemented");
}
@Override
public Set keySet() {
throw new RuntimeException("Not implemented");
}
@Override
public Collection values() {
throw new RuntimeException("Not implemented");
}
@Override
public Set> entrySet() {
throw new RuntimeException("Not implemented");
}
}