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

com.aeontronix.commons.AbstractMap Maven / Gradle / Ivy

Go to download

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 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");
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy