Package spoon.support.util
Class ModelSet<T extends CtElement>
java.lang.Object
java.util.AbstractCollection<E>
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:
- Serialized Form
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedModelSet(Comparator<? super CtElement> comparator)Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.voidclear()Deprecated.booleanDeprecated.booleancontainsAll(Collection<?> c)Deprecated.booleanDeprecated.protected abstract CtElementgetOwner()Deprecated.protected abstract CtRolegetRole()Deprecated.inthashCode()Deprecated.booleanisEmpty()Deprecated.iterator()Deprecated.protected voidonSizeChanged(int newSize)Deprecated.booleanDeprecated.voidset(Collection<T> elements)Deprecated.intsize()Deprecated.Object[]toArray()Deprecated.<T> T[]toArray(T[] a)Deprecated.Methods inherited from class java.util.AbstractSet
removeAllMethods inherited from class java.util.AbstractCollection
addAll, retainAll, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods 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:
containsAllin interfaceCollection<T extends CtElement>- Specified by:
containsAllin interfaceSet<T extends CtElement>- Overrides:
containsAllin classAbstractCollection<T extends CtElement>
-
clear
public void clear()Deprecated. -
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
iterator
Deprecated. -
set
Deprecated.
-