org.reactfx.collection.UnmodifiableByDefaultLiveList Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of richtextfx Show documentation
Show all versions of richtextfx Show documentation
FX-Text-Area for formatted text and other special effects.
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 extends E> elems) {
throw new UnsupportedOperationException();
}
}