Class FreezableCollection<T>
java.lang.Object
com.blamejared.contenttweaker.core.util.FreezableCollection<T>
- All Implemented Interfaces:
Iterable<T>,Collection<T>
-
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(@NotNull Collection<? extends T> c) voidclear()booleanbooleancontainsAll(@NotNull Collection<?> c) voidvoidfreeze()booleanisEmpty()iterator()static <T> FreezableCollection<T>of(Collection<T> delegate) static <T> FreezableCollection<T>of(Collection<T> delegate, boolean frozen) booleanbooleanremoveAll(@NotNull Collection<?> c) booleanbooleanretainAll(@NotNull Collection<?> c) intsize()stream()@NotNull Object[]toArray()<U> @NotNull U[]toArray(@NotNull U[] a) <U> U[]toArray(IntFunction<U[]> generator) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
equals, hashCode
-
Method Details
-
of
-
of
-
freeze
public void freeze() -
size
public int size()- Specified by:
sizein interfaceCollection<T>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<T>
-
contains
- Specified by:
containsin interfaceCollection<T>
-
iterator
-
toArray
- Specified by:
toArrayin interfaceCollection<T>
-
toArray
@NotNull public <U> @NotNull U[] toArray(@NotNull @NotNull U[] a) - Specified by:
toArrayin interfaceCollection<T>
-
add
- Specified by:
addin interfaceCollection<T>
-
remove
- Specified by:
removein interfaceCollection<T>
-
containsAll
- Specified by:
containsAllin interfaceCollection<T>
-
addAll
- Specified by:
addAllin interfaceCollection<T>
-
removeAll
- Specified by:
removeAllin interfaceCollection<T>
-
retainAll
- Specified by:
retainAllin interfaceCollection<T>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<T>
-
toArray
- Specified by:
toArrayin interfaceCollection<T>
-
removeIf
- Specified by:
removeIfin interfaceCollection<T>
-
spliterator
- Specified by:
spliteratorin interfaceCollection<T>- Specified by:
spliteratorin interfaceIterable<T>
-
stream
- Specified by:
streamin interfaceCollection<T>
-
parallelStream
- Specified by:
parallelStreamin interfaceCollection<T>
-
forEach
-