fulmine.util.collection
Class OrderedCoalescingCollection<E extends IAddressable>

java.lang.Object
  extended by fulmine.util.collection.AbstractCoalescingCollection<E>
      extended by 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

Field Summary
 
Fields inherited from class fulmine.util.collection.AbstractCoalescingCollection
data
 
Constructor Summary
OrderedCoalescingCollection()
          Standard constructor that creates the collection with the default size of 2
OrderedCoalescingCollection(Collection<? extends E> other)
          Constructor that populates this collection using the elements of the argument collection.
OrderedCoalescingCollection(int size)
          Constructor that creates the collection with the initial size
 
Method Summary
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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.