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

org.reactfx.collection.UnmodifiableByDefaultLiveList Maven / Gradle / Ivy

There is a newer version: 1.11
Show newest version
package org.reactfx.collection;

import java.util.Collection;

import javafx.collections.ObservableList;

/**
 * Trait to be mixed into implementations of unmodifiable {@link LiveList}s.
 * Provides default implementations of mutating list methods.
 */
public interface UnmodifiableByDefaultLiveList
extends ObservableList, UnmodifiableByDefaultList {

    @Override
    default boolean addAll(@SuppressWarnings("unchecked") E... elems) {
        throw new UnsupportedOperationException();
    }

    @Override
    default void remove(int from, int to) {
        throw new UnsupportedOperationException();
    }

    @Override
    default boolean removeAll(@SuppressWarnings("unchecked") E... elems) {
        throw new UnsupportedOperationException();
    }

    @Override
    default boolean retainAll(@SuppressWarnings("unchecked") E... elems) {
        throw new UnsupportedOperationException();
    }

    @Override
    default boolean setAll(@SuppressWarnings("unchecked") E... elems) {
        throw new UnsupportedOperationException();
    }

    @Override
    default boolean setAll(Collection elems) {
        throw new UnsupportedOperationException();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy