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 theSet
, which is used by Spoon model objects. It assures: 1) each insertedCtElement
gets assigned correct parent 2) each change is reported inFineModelChangeListener
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ModelSet(Comparator<? super CtElement> comparator)
Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
add(T e)
Deprecated.void
clear()
Deprecated.boolean
contains(Object o)
Deprecated.boolean
containsAll(Collection<?> c)
Deprecated.boolean
equals(Object o)
Deprecated.protected abstract CtElement
getOwner()
Deprecated.protected abstract CtRole
getRole()
Deprecated.int
hashCode()
Deprecated.boolean
isEmpty()
Deprecated.Iterator<T>
iterator()
Deprecated.protected void
onSizeChanged(int newSize)
Deprecated.boolean
remove(Object o)
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 Detail
-
ModelSet
protected ModelSet(Comparator<? super CtElement> comparator)
Deprecated.
-
-
Method Detail
-
getOwner
protected abstract CtElement getOwner()
Deprecated.
-
getRole
protected abstract CtRole getRole()
Deprecated.
-
onSizeChanged
protected void onSizeChanged(int newSize)
Deprecated.
-
size
public int size()
Deprecated.
-
isEmpty
public boolean isEmpty()
Deprecated.
-
contains
public boolean contains(Object o)
Deprecated.
-
toArray
public Object[] toArray()
Deprecated.
-
toArray
public <T> T[] toArray(T[] a)
Deprecated.
-
add
public boolean add(T e)
Deprecated.
-
remove
public boolean remove(Object o)
Deprecated.
-
containsAll
public boolean containsAll(Collection<?> c)
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
public boolean equals(Object o)
Deprecated.
-
hashCode
public int hashCode()
Deprecated.
-
set
public void set(Collection<T> elements)
Deprecated.
-
-