Interface ExtendedCollection<E>
- Type Parameters:
E
- type of contained elements
- All Known Subinterfaces:
ExtendedBag<E>
,ExtendedList<E>
,ExtendedMap<K,V>
,ExtendedSequence<E>
,ExtendedSet<E>
,Sorted<E>
,XAddGetCollection<E>
,XAddGetMap<K,V>
,XAddGetSet<E>
,XAddingBag<E>
,XAddingCollection<E>
,XAddingEnum<E>
,XAddingList<E>
,XAddingMap<K,V>
,XAddingSequence<E>
,XAddingSet<E>
,XAddingSortation<E>
,XAddingTable<K,V>
,XBag<E>
,XBasicEnum<E>
,XBasicList<E>
,XBasicSequence<E>
,XBasicTable<K,V>
,XBasicTable.Keys<K,V>
,XBasicTable.Values<K,V>
,XChart<K,V>
,XChart.Keys<K,V>
,XChart.Values<K,V>
,XCollection<E>
,XDecreasingEnum<E>
,XDecreasingList<E>
,XDecreasingSequence<E>
,XEnum<E>
,XExpandingEnum<E>
,XExpandingList<E>
,XExpandingSequence<E>
,XExtendingEnum<E>
,XExtendingList<E>
,XExtendingSequence<E>
,XGettingBag<E>
,XGettingCollection<E>
,XGettingEnum<E>
,XGettingList<E>
,XGettingMap<K,V>
,XGettingMap.Keys<K,V>
,XGettingMap.Values<K,V>
,XGettingSequence<E>
,XGettingSet<E>
,XGettingSortation<E>
,XGettingTable<K,V>
,XGettingTable.Keys<K,V>
,XGettingTable.Values<K,V>
,XImmutableBag<E>
,XImmutableCollection<E>
,XImmutableEnum<E>
,XImmutableEnum.Factory<E>
,XImmutableList<E>
,XImmutableMap<K,V>
,XImmutableMap.Keys<K,V>
,XImmutableMap.Values<K,V>
,XImmutableSequence<E>
,XImmutableSet<E>
,XImmutableTable<K,V>
,XImmutableTable.Keys<K,V>
,XImmutableTable.Values<K,V>
,XIncreasingEnum<E>
,XIncreasingList<E>
,XIncreasingSequence<E>
,XInputtingEnum<E>
,XInputtingList<E>
,XInputtingSequence<E>
,XInsertingEnum<E>
,XInsertingList<E>
,XInsertingSequence<E>
,XLadder<E>
,XList<E>
,XMap<K,V>
,XMap.Keys<K,V>
,XMap.Values<K,V>
,XOrderingEnum<E>
,XOrderingSequence<E>
,XPrependingEnum<E>
,XPrependingList<E>
,XPrependingSequence<E>
,XPreputtingEnum<E>
,XPreputtingList<E>
,XPreputtingSequence<E>
,XProcessingBag<E>
,XProcessingCollection<E>
,XProcessingEnum<E>
,XProcessingList<E>
,XProcessingMap<K,V>
,XProcessingMap.Keys<K,V>
,XProcessingMap.Values<K,V>
,XProcessingSequence<E>
,XProcessingSet<E>
,XProcessingSortation<E>
,XPutGetBag<E>
,XPutGetCollection<E>
,XPutGetEnum<E>
,XPutGetList<E>
,XPutGetMap<K,V>
,XPutGetSequence<E>
,XPutGetSet<E>
,XPutGetSortation<E>
,XPuttingBag<E>
,XPuttingCollection<E>
,XPuttingEnum<E>
,XPuttingList<E>
,XPuttingMap<K,V>
,XPuttingSequence<E>
,XPuttingSet<E>
,XPuttingSortation<E>
,XRank<E>
,XReference<E>
,XReferencing<E>
,XRemovingBag<E>
,XRemovingCollection<E>
,XRemovingEnum<E>
,XRemovingList<E>
,XRemovingMap<K,V>
,XRemovingSequence<E>
,XRemovingSet<E>
,XRemovingSortation<E>
,XReplacingBag<E>
,XSequence<E>
,XSet<E>
,XSettingEnum<E>
,XSettingList<E>
,XSettingSequence<E>
,XSortableEnum<E>
,XSortableSequence<E>
,XSortation<E>
,XTable<K,V>
,XTable.Keys<K,V>
,XTable.Values<K,V>
- All Known Implementing Classes:
AbstractArrayCollection
,AbstractChainCollection
,AbstractChainKeyValueCollection
,AbstractExtendedCollection
,AbstractSectionedArrayCollection
,AbstractSimpleArrayCollection
,ArrayAccessor
,ArrayCollector
,ArrayView
,BulkList
,Collector
,Constant
,ConstHashEnum
,ConstHashTable
,ConstHashTable.Keys
,ConstHashTable.Values
,ConstLinearEnum
,ConstList
,Empty
,EmptyTable
,EnumProcessor
,EnumView
,EqBulkList
,EqConstHashEnum
,EqConstHashTable
,EqConstHashTable.Keys
,EqConstHashTable.Values
,EqConstList
,EqHashEnum
,EqHashTable
,EqHashTable.Keys
,EqHashTable.Values
,FixedList
,HashEnum
,HashTable
,HashTable.Keys
,HashTable.Values
,LimitList
,LinkingReferencing.Default
,LinkReference.Default
,ListAccessor
,ListProcessor
,ListView
,LockedAdder
,LockedCollection
,LockedGettingMap
,LockedList
,LockedMap
,MappedList
,MapView
,MutexSet
,OpenAdressingMiniSet
,SetView
,Single
,Singleton
,SingletonView
,SubCollector
,SubList
,SubListAccessor
,SubListProcessor
,SubListView
,SubProcessor
,SubView
,SynchAdder
,SynchCollection
,SynchList
,SynchSet
,TableView
,View
public interface ExtendedCollection<E>
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ExtendedCollection.Creator<E,C extends ExtendedCollection<E>>
-
Method Summary
Modifier and Type Method Description boolean
hasVolatileElements()
Tells if this collection contains volatile elements.
An element is volatile, if it can become no longer reachable by the collection without being removed from the collection.boolean
nullAllowed()
Defines if null-elements are allowed inside the collection or not.
-
Method Details
-
nullAllowed
boolean nullAllowed()Defines if null-elements are allowed inside the collection or not.- Returns:
true
if null is allowed inside the collection;false
if not
-
hasVolatileElements
boolean hasVolatileElements()Tells if this collection contains volatile elements.
An element is volatile, if it can become no longer reachable by the collection without being removed from the collection. Examples areWeakReference
ofSoftReference
or implementations of collection entries that remove the element contained in an entry by some means outside the collection.
Note thatWeakReference
instances that are added to a a simple (non-volatile) implementation of a collection do not make the collection volatile, as the elements themselves (the reference instances) are still strongly referenced.- Returns:
true
if the collection contains volatile elements.
-