fulmine.util.collection
Class OrderedCoalescingCollection<E extends IAddressable>
java.lang.Object
fulmine.util.collection.AbstractCoalescingCollection<E>
fulmine.util.collection.OrderedCoalescingCollection<E>
- Type Parameters:
E
- the element type this collection operates with, a sub-class of
IAddressable
- All Implemented Interfaces:
- Iterable<E>, Collection<E>
public final class OrderedCoalescingCollection<E extends IAddressable>
- extends AbstractCoalescingCollection<E>
A Collection
implementation that is backed by a map implementation
that maintains insertion order of items. This allows coalescing and ensures
order is preserved.
This class is not thread aware and is not thread safe.
- Author:
- Ramon Servadei
Methods inherited from class fulmine.util.collection.AbstractCoalescingCollection |
add, addAll, clear, contains, containsAll, equals, getSystemIdentity, hashCode, isEmpty, iterator, remove, removeAll, retainAll, size, toArray, toArray, toString |
OrderedCoalescingCollection
public OrderedCoalescingCollection()
- Standard constructor that creates the collection with the default size of
2
OrderedCoalescingCollection
public OrderedCoalescingCollection(int size)
- Constructor that creates the collection with the initial size
- Parameters:
size
- the initial size for the collection
OrderedCoalescingCollection
public OrderedCoalescingCollection(Collection<? extends E> other)
- Constructor that populates this collection using the elements of the
argument collection.
- Parameters:
other
- the collection of elements to add to this
Copyright © 2007-2009. All Rights Reserved.