Package com.globalmentor.collections
Class ModifiableCollection<E>
java.lang.Object
com.globalmentor.beans.BoundPropertyObject
com.globalmentor.model.DefaultModifiable
com.globalmentor.collections.ModifiableCollection<E>
- Type Parameters:
E
- the type of elements in this collection.
- All Implemented Interfaces:
PropertyBindable
,PropertyConstrainable
,Modifiable
,Iterable<E>
,Collection<E>
- Direct Known Subclasses:
ModifiableSet
Deprecated.
A collection that implements
Modifiable
so that it can keep track of whether it has been modified.- Author:
- Garret Wilson
- API Note:
- This class is meant as a wrapper to an existing collection.
- See Also:
-
Field Summary
Fields inherited from class com.globalmentor.beans.BoundPropertyObject
NO_PROPERTY_CHANGE_LISTENERS, NO_VETOABLE_CHANGE_LISTENERS
Fields inherited from interface com.globalmentor.model.Modifiable
MODIFIED_PROPERTY
-
Constructor Summary
ConstructorDescriptionModifiableCollection
(Collection<E> collection) Deprecated.Collection constructor. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.boolean
addAll
(Collection<? extends E> c) Deprecated.void
clear()
Deprecated.boolean
Deprecated.boolean
containsAll
(Collection<?> c) Deprecated.boolean
Deprecated.int
hashCode()
Deprecated.boolean
isEmpty()
Deprecated.iterator()
Deprecated.boolean
Deprecated.boolean
removeAll
(Collection<?> c) Deprecated.boolean
retainAll
(Collection<?> c) Deprecated.int
size()
Deprecated.Object[]
toArray()
Deprecated.<T> T[]
toArray
(T[] a) Deprecated.Methods inherited from class com.globalmentor.model.DefaultModifiable
isModified, setModified
Methods inherited from class com.globalmentor.beans.BoundPropertyObject
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, createPostponedPropertyChangeEvent, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getForwardPropertyChangeListener, getPropertyChangeListeners, getPropertyChangeListeners, getPropertyChangeSupport, getRepeatPropertyChangeListener, getRepeatVetoableChangeListener, getVetoableChangeListeners, getVetoableChangeListeners, getVetoableChangeSupport, hasPropertyChangeListeners, hasVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, spliterator, stream
-
Constructor Details
-
ModifiableCollection
Deprecated.Collection constructor.- Parameters:
collection
- The collection this collection should wrap.
-
-
Method Details
-
size
public int size()Deprecated.- Specified by:
size
in interfaceCollection<E>
-
isEmpty
public boolean isEmpty()Deprecated.- Specified by:
isEmpty
in interfaceCollection<E>
-
contains
Deprecated.- Specified by:
contains
in interfaceCollection<E>
-
iterator
Deprecated. -
toArray
Deprecated.- Specified by:
toArray
in interfaceCollection<E>
-
toArray
public <T> T[] toArray(T[] a) Deprecated.- Specified by:
toArray
in interfaceCollection<E>
-
add
Deprecated.- Specified by:
add
in interfaceCollection<E>
-
remove
Deprecated.- Specified by:
remove
in interfaceCollection<E>
-
containsAll
Deprecated.- Specified by:
containsAll
in interfaceCollection<E>
-
addAll
Deprecated.- Specified by:
addAll
in interfaceCollection<E>
-
removeAll
Deprecated.- Specified by:
removeAll
in interfaceCollection<E>
-
retainAll
Deprecated.- Specified by:
retainAll
in interfaceCollection<E>
-
clear
public void clear()Deprecated.- Specified by:
clear
in interfaceCollection<E>
-
equals
Deprecated.- Specified by:
equals
in interfaceCollection<E>
- Overrides:
equals
in classObject
-
hashCode
public int hashCode()Deprecated.- Specified by:
hashCode
in interfaceCollection<E>
- Overrides:
hashCode
in classObject
-