concast.merged
Class MergeStateTable

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.AbstractSequentialList
                    |
                    +--java.util.LinkedList
                          |
                          +--concast.merged.MergeStateTable
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, java.io.Serializable

public class MergeStateTable
extends java.util.LinkedList

Internal class

See Also:
Serialized Form

Inner Class Summary
 class MergeStateTable.Entry
          Record of the merge state table.
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
MergeStateTable(int limit)
           
 
Method Summary
 boolean add(long key, MergeState state)
           
 MergeStateTable.Entry getEntry(long key)
          Retrive entry for given tag
 MergeState getState(long key)
           
 MergeStateTable.Entry newEntry(long key, MergeState state, byte ttl)
           
 java.lang.String print()
           
 boolean removeState(long key)
          Remove record for given tag return true if it was found, false otherwise
 int size()
           
 boolean update(long key, MergeState state, byte ttl)
          update, or insert, if tag is not in the table
 
Methods inherited from class java.util.LinkedList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, remove, remove, removeFirst, removeLast, set, toArray, toArray
 
Methods inherited from class java.util.AbstractSequentialList
iterator
 
Methods inherited from class java.util.AbstractList
equals, hashCode, listIterator, removeRange, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

MergeStateTable

public MergeStateTable(int limit)
Method Detail

newEntry

public MergeStateTable.Entry newEntry(long key,
                                      MergeState state,
                                      byte ttl)

update

public boolean update(long key,
                      MergeState state,
                      byte ttl)
update, or insert, if tag is not in the table

add

public boolean add(long key,
                   MergeState state)

getEntry

public MergeStateTable.Entry getEntry(long key)
Retrive entry for given tag

removeState

public boolean removeState(long key)
Remove record for given tag return true if it was found, false otherwise

getState

public MergeState getState(long key)

print

public java.lang.String print()

size

public int size()
Overrides:
size in class java.util.LinkedList