org.melati.poem
Class TableSortedMap

Package class diagram package TableSortedMap
java.lang.Object
  extended by org.melati.poem.TableMap
      extended by org.melati.poem.TableSortedMap
All Implemented Interfaces:
Map<Integer,Persistent>, SortedMap<Integer,Persistent>

public class TableSortedMap
extends TableMap
implements SortedMap<Integer,Persistent>

Since:
8 Jun 2007
Author:
timp

Nested Class Summary
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Field Summary
 
Fields inherited from class org.melati.poem.TableMap
table
 
Constructor Summary
TableSortedMap()
          Constructor for setter injection.
TableSortedMap(Table t)
          Constructor for constructor injection.
 
Method Summary
 Comparator<Integer> comparator()
          We use native ordering.
 Integer firstKey()
          
 SortedMap<Integer,Persistent> headMap(Integer toKey)
          
 Integer lastKey()
           NOTE first attempt using table.getMostRecentTroid() does not take account of deletion as mostRecentTroid is never decremented
 SortedMap<Integer,Persistent> subMap(Integer fromKey, Integer toKey)
          
 SortedMap<Integer,Persistent> tailMap(Integer arg0)
          
 
Methods inherited from class org.melati.poem.TableMap
clear, containsKey, containsValue, entrySet, get, getTable, isEmpty, keySet, put, putAll, remove, setTable, size, values
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.SortedMap
entrySet, keySet, values
 
Methods inherited from interface java.util.Map
clear, containsKey, containsValue, equals, get, hashCode, isEmpty, put, putAll, remove, size
 

Constructor Detail

TableSortedMap

public TableSortedMap()
Constructor for setter injection.


TableSortedMap

public TableSortedMap(Table t)
Constructor for constructor injection.

Parameters:
t -
Method Detail

comparator

public Comparator<Integer> comparator()
We use native ordering.

Specified by:
comparator in interface SortedMap<Integer,Persistent>
See Also:
SortedMap.comparator()

firstKey

public Integer firstKey()

Specified by:
firstKey in interface SortedMap<Integer,Persistent>
See Also:
SortedMap.firstKey()

lastKey

public Integer lastKey()
NOTE first attempt using table.getMostRecentTroid() does not take account of deletion as mostRecentTroid is never decremented

Specified by:
lastKey in interface SortedMap<Integer,Persistent>
See Also:
SortedMap.lastKey()

subMap

public SortedMap<Integer,Persistent> subMap(Integer fromKey,
                                            Integer toKey)

Specified by:
subMap in interface SortedMap<Integer,Persistent>
See Also:
java.util.SortedMap#subMap(K fromKey, K toKey)

headMap

public SortedMap<Integer,Persistent> headMap(Integer toKey)

Specified by:
headMap in interface SortedMap<Integer,Persistent>
See Also:
java.util.SortedMap#headMap(K)

tailMap

public SortedMap<Integer,Persistent> tailMap(Integer arg0)

Specified by:
tailMap in interface SortedMap<Integer,Persistent>
See Also:
java.util.SortedMap#tailMap(K)


Copyright © 2000-2010 PanEris. All Rights Reserved.