Class StrictLinkedListSet<E extends LinkedListSetEntry<E,O>,O>
java.lang.Object
net.officefloor.frame.impl.execute.linkedlistset.StrictLinkedListSet<E,O>
- All Implemented Interfaces:
LinkedListSet<E,O>
- Direct Known Subclasses:
ComparatorLinkedListSet
public abstract class StrictLinkedListSet<E extends LinkedListSetEntry<E,O>,O>
extends Object
implements LinkedListSet<E,O>
LinkedListSet that provides strict adherence to ensuring correctness.- Author:
- Daniel Sagenschneider
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds aLinkedListSetEntryto thisLinkedListSet.final LinkedListSetItem<E>Creates a copy of thisLinkedListSetreturning the head of the copy.final EgetHead()Obtains the head of thisLinkedListSet.protected abstract OgetOwner()Obtains the owner of thisLinkedListSet.final EgetTail()Obtains the tail of thisLinkedListSet.final EPurges allLinkedListSetEntryinstances within thisLinkedListSet.final booleanremoveEntry(E entry) Removes thisLinkedListSetEntryfrom theLinkedListSet.
-
Constructor Details
-
StrictLinkedListSet
public StrictLinkedListSet()
-
-
Method Details
-
getOwner
Obtains the owner of thisLinkedListSet.- Returns:
- Owner of this
LinkedListSet.
-
getHead
Description copied from interface:LinkedListSetObtains the head of thisLinkedListSet.- Specified by:
getHeadin interfaceLinkedListSet<E extends LinkedListSetEntry<E,O>, O> - Returns:
- Head
LinkedListSetEntryof thisLinkedListSet.
-
getTail
Description copied from interface:LinkedListSetObtains the tail of thisLinkedListSet.- Specified by:
getTailin interfaceLinkedListSet<E extends LinkedListSetEntry<E,O>, O> - Returns:
- Tail of this
LinkedListSet.
-
addEntry
Description copied from interface:LinkedListSetAdds aLinkedListSetEntryto thisLinkedListSet.- Specified by:
addEntryin interfaceLinkedListSet<E extends LinkedListSetEntry<E,O>, O> - Parameters:
entry-LinkedListSetEntryto be added to thisLinkedListSet.
-
removeEntry
Description copied from interface:LinkedListSetRemoves thisLinkedListSetEntryfrom theLinkedListSet.- Specified by:
removeEntryin interfaceLinkedListSet<E extends LinkedListSetEntry<E,O>, O> - Parameters:
entry-LinkedListSetEntryto be removed from thisLinkedListSet.- Returns:
trueif theLinkedListSetEntryjust removed was the lastLinkedListSetEntryin theLinkedListSet.
-
purgeEntries
Description copied from interface:LinkedListSetPurges allLinkedListSetEntryinstances within thisLinkedListSet.- Specified by:
purgeEntriesin interfaceLinkedListSet<E extends LinkedListSetEntry<E,O>, O> - Returns:
- Head of the
LinkedListSet(before the purge) so that may action theLinkedListSetEntryinstances.
-
copyEntries
Description copied from interface:LinkedListSetCreates a copy of this
LinkedListSetreturning the head of the copy.The returned copy is
Threadsafe to iterate.- Specified by:
copyEntriesin interfaceLinkedListSet<E extends LinkedListSetEntry<E,O>, O> - Returns:
- Head
LinkedListSetItemof the copy.
-