Package spoon.support.util
Class ModelSet<T extends CtElement>
java.lang.Object
java.util.AbstractCollection<T>
java.util.AbstractSet<T>
spoon.support.util.ModelSet<T>
- All Implemented Interfaces:
Serializable
,Iterable<T>
,Collection<T>
,Set<T>
@Deprecated
public abstract class ModelSet<T extends CtElement>
extends AbstractSet<T>
implements Serializable
Deprecated.
This set is no longer actively used or maintained. It is only kept for backwards
compatibility and might be removed in a future release.
The implementation of the
Set
, which is used by Spoon model objects.
It assures:
1) each inserted CtElement
gets assigned correct parent
2) each change is reported in FineModelChangeListener
- See Also:
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ModelSet
(Comparator<? super CtElement> comparator) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.void
clear()
Deprecated.boolean
Deprecated.boolean
containsAll
(Collection<?> c) Deprecated.boolean
Deprecated.protected abstract CtElement
getOwner()
Deprecated.protected abstract CtRole
getRole()
Deprecated.int
hashCode()
Deprecated.boolean
isEmpty()
Deprecated.iterator()
Deprecated.protected void
onSizeChanged
(int newSize) Deprecated.boolean
Deprecated.void
set
(Collection<T> elements) Deprecated.int
size()
Deprecated.Object[]
toArray()
Deprecated.<T> T[]
toArray
(T[] a) Deprecated.Methods inherited from class java.util.AbstractSet
removeAll
Methods inherited from class java.util.AbstractCollection
addAll, retainAll, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.Set
addAll, retainAll, spliterator
-
Constructor Details
-
ModelSet
Deprecated.
-
-
Method Details
-
getOwner
Deprecated. -
getRole
Deprecated. -
onSizeChanged
protected void onSizeChanged(int newSize) Deprecated. -
size
public int size()Deprecated. -
isEmpty
public boolean isEmpty()Deprecated. -
contains
Deprecated. -
toArray
Deprecated. -
toArray
public <T> T[] toArray(T[] a) Deprecated. -
add
Deprecated. -
remove
Deprecated. -
containsAll
Deprecated.- Specified by:
containsAll
in interfaceCollection<T extends CtElement>
- Specified by:
containsAll
in interfaceSet<T extends CtElement>
- Overrides:
containsAll
in classAbstractCollection<T extends CtElement>
-
clear
public void clear()Deprecated. -
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
iterator
Deprecated. -
set
Deprecated.
-