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

org.klojang.collections.ImmutableMap Maven / Gradle / Ivy

There is a newer version: 2.0.9
Show newest version
package org.klojang.collections;

import java.util.Map;
import java.util.function.BiFunction;
import java.util.function.Function;

abstract sealed class ImmutableMap implements Map permits NativeTypeMap,
    GreedyTypeMap, NonExpandingTypeMap {

  @Override
  public V put(K key, V value) {
    throw new UnsupportedOperationException();
  }

  @Override
  public V remove(Object key) {
    throw new UnsupportedOperationException();
  }

  @Override
  public void putAll(Map m) {
    throw new UnsupportedOperationException();
  }

  @Override
  public void clear() {
    throw new UnsupportedOperationException();
  }

  @Override
  public void replaceAll(BiFunction function) {
    throw new UnsupportedOperationException();
  }

  @Override
  public V putIfAbsent(K key, V value) {
    throw new UnsupportedOperationException();
  }

  @Override
  public boolean remove(Object key, Object value) {
    throw new UnsupportedOperationException();
  }

  @Override
  public boolean replace(K key, V oldValue, V newValue) {
    throw new UnsupportedOperationException();
  }

  @Override
  public V replace(K key, V value) {
    throw new UnsupportedOperationException();
  }

  @Override
  public V computeIfAbsent(K key, Function mappingFunction) {
    throw new UnsupportedOperationException();
  }

  @Override
  public V computeIfPresent(K key,
      BiFunction remappingFunction) {
    throw new UnsupportedOperationException();
  }

  @Override
  public V compute(K key,
      BiFunction remappingFunction) {
    throw new UnsupportedOperationException();
  }

  @Override
  public V merge(K key,
      V value,
      BiFunction remappingFunction) {
    throw new UnsupportedOperationException();
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy