Class FreezableSet<T>
java.lang.Object
com.blamejared.contenttweaker.core.util.FreezableSet<T>
- All Implemented Interfaces:
Iterable<T>,Collection<T>,Set<T>
-
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(@NotNull Collection<? extends T> c) voidclear()booleanbooleancontainsAll(@NotNull Collection<?> c) voidvoidfreeze()booleanisEmpty()iterator()static <T> FreezableSet<T>of()static <T> FreezableSet<T>static <T> FreezableSet<T>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)
-
Method Details
-
of
-
of
-
of
-
freeze
public void freeze() -
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
-
iterator
-
toArray
-
toArray
@NotNull public <U> @NotNull U[] toArray(@NotNull @NotNull U[] a) -
add
-
remove
-
containsAll
- Specified by:
containsAllin interfaceCollection<T>- Specified by:
containsAllin interfaceSet<T>
-
addAll
-
retainAll
-
removeAll
-
clear
public void clear() -
spliterator
- Specified by:
spliteratorin interfaceCollection<T>- Specified by:
spliteratorin interfaceIterable<T>- Specified by:
spliteratorin interfaceSet<T>
-
toArray
- Specified by:
toArrayin interfaceCollection<T>
-
removeIf
- Specified by:
removeIfin interfaceCollection<T>
-
stream
- Specified by:
streamin interfaceCollection<T>
-
parallelStream
- Specified by:
parallelStreamin interfaceCollection<T>
-
forEach
-