Class ComparatorLinkedListSet<E extends LinkedListSetEntry<E,O>,O>
java.lang.Object
net.officefloor.frame.impl.execute.linkedlistset.StrictLinkedListSet<E,O>
net.officefloor.frame.impl.execute.linkedlistset.ComparatorLinkedListSet<E,O>
- All Implemented Interfaces:
LinkedListSet<E,O>
public abstract class ComparatorLinkedListSet<E extends LinkedListSetEntry<E,O>,O>
extends StrictLinkedListSet<E,O>
LinkedListSet that compares LinkedListSetEntry instances
before adding as LinkedListSetEntry may hold content that should not
be re-added to the LinkedListSet.
Otherwise it ensure strictness of adding/removing LinkedListSetEntry
instances.
- Author:
- Daniel Sagenschneider
-
Nested Class Summary
Nested classes/interfaces inherited from class net.officefloor.frame.impl.execute.linkedlistset.StrictLinkedListSet
StrictLinkedListSet.LinkedListItemImpl -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds aLinkedListSetEntryto thisLinkedListSet.protected abstract booleanInvoked to determine if the two entries are equal.Methods inherited from class net.officefloor.frame.impl.execute.linkedlistset.StrictLinkedListSet
copyEntries, getHead, getOwner, getTail, purgeEntries, removeEntry
-
Constructor Details
-
ComparatorLinkedListSet
public ComparatorLinkedListSet()
-
-
Method Details
-
isEqual
Invoked to determine if the two entries are equal.- Parameters:
entryA- First entry.entryB- Second entry.- Returns:
trueifentryAis equal toentryB, otherwisefalseto indicate not equal.
-
addEntry
Description copied from interface:LinkedListSetAdds aLinkedListSetEntryto thisLinkedListSet.- Specified by:
addEntryin interfaceLinkedListSet<E extends LinkedListSetEntry<E,O>, O> - Overrides:
addEntryin classStrictLinkedListSet<E extends LinkedListSetEntry<E,O>, O> - Parameters:
entry-LinkedListSetEntryto be added to thisLinkedListSet.
-