org.melati.poem
Class TableSortedMap
java.lang.Object
org.melati.poem.TableMap
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 classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
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.Map |
clear, containsKey, containsValue, equals, get, hashCode, isEmpty, put, putAll, remove, size |
TableSortedMap
public TableSortedMap()
- Constructor for setter injection.
TableSortedMap
public TableSortedMap(Table t)
- Constructor for constructor injection.
- Parameters:
t
-
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.