Class ObservedSet<K>
- java.lang.Object
-
- com.electronwill.nightconfig.core.utils.ObservedSet<K>
-
- All Implemented Interfaces:
java.lang.Iterable<K>,java.util.Collection<K>,java.util.Set<K>
public final class ObservedSet<K> extends java.lang.Object implements java.util.Set<K>
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.Runnablecallback
-
Constructor Summary
Constructors Constructor Description ObservedSet(java.util.Set<K> set, java.lang.Runnable callback)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(K k)booleanaddAll(java.util.Collection<? extends K> c)voidclear()booleancontains(java.lang.Object o)booleancontainsAll(java.util.Collection<?> c)booleanequals(java.lang.Object obj)inthashCode()booleanisEmpty()java.util.Iterator<K>iterator()booleanremove(java.lang.Object o)booleanremoveAll(java.util.Collection<?> c)booleanremoveIf(java.util.function.Predicate<? super K> filter)booleanretainAll(java.util.Collection<?> c)intsize()java.lang.Object[]toArray()<T> T[]toArray(T[] a)
-
-
-
Constructor Detail
-
ObservedSet
public ObservedSet(java.util.Set<K> set, java.lang.Runnable callback)
-
-
Method Detail
-
size
public int size()
-
isEmpty
public boolean isEmpty()
-
contains
public boolean contains(java.lang.Object o)
-
iterator
public java.util.Iterator<K> iterator()
-
toArray
public java.lang.Object[] toArray()
-
toArray
public <T> T[] toArray(T[] a)
-
add
public boolean add(K k)
-
remove
public boolean remove(java.lang.Object o)
-
containsAll
public boolean containsAll(java.util.Collection<?> c)
-
addAll
public boolean addAll(java.util.Collection<? extends K> c)
-
retainAll
public boolean retainAll(java.util.Collection<?> c)
-
removeAll
public boolean removeAll(java.util.Collection<?> c)
-
clear
public void clear()
-
removeIf
public boolean removeIf(java.util.function.Predicate<? super K> filter)
- Specified by:
removeIfin interfacejava.util.Collection<K>
-
equals
public boolean equals(java.lang.Object obj)
-
-