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

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

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

import java.util.Collection;
import java.util.Set;
import java.util.function.Predicate;

abstract sealed class ImmutableSet implements Set permits ArraySet,
    AbstractTypeSet {

  @Override
  public boolean add(E e) {
    throw new UnsupportedOperationException();
  }

  @Override
  public boolean remove(Object o) {
    throw new UnsupportedOperationException();
  }

  @Override
  public boolean addAll(Collection c) {
    throw new UnsupportedOperationException();
  }

  @Override
  public boolean retainAll(Collection c) {
    throw new UnsupportedOperationException();
  }

  @Override
  public boolean removeAll(Collection c) {
    throw new UnsupportedOperationException();
  }

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

  }

  @Override
  public boolean removeIf(Predicate filter) {
    throw new UnsupportedOperationException();
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy