org.melati.poem
Class TableMap

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

public class TableMap
extends Object
implements Map<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
protected  Table table
           
 
Constructor Summary
TableMap()
          Constructor.
TableMap(Table t)
          Constructor given a Table.
 
Method Summary
 void clear()
          
 boolean containsKey(Object key)
          
 boolean containsValue(Object value)
          
 Set<Map.Entry<Integer,Persistent>> entrySet()
          
 Persistent get(Object key)
          
 Table getTable()
           
 boolean isEmpty()
          
 Set<Integer> keySet()
          
 Persistent put(Integer arg0, Persistent arg1)
          
 void putAll(Map<? extends Integer,? extends Persistent> arg0)
          
 Persistent remove(Object key)
          
 void setTable(Table table)
           
 int size()
          
 Collection<Persistent> 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
equals, hashCode
 

Field Detail

table

protected Table table
Constructor Detail

TableMap

public TableMap()
Constructor.


TableMap

public TableMap(Table t)
Constructor given a Table.

Method Detail

getTable

public Table getTable()
Returns:
the table

setTable

public void setTable(Table table)
Parameters:
table - the table to set

clear

public void clear()

Specified by:
clear in interface Map<Integer,Persistent>
See Also:
Map.clear()

containsKey

public boolean containsKey(Object key)

Specified by:
containsKey in interface Map<Integer,Persistent>
See Also:
Map.containsKey(java.lang.Object)

containsValue

public boolean containsValue(Object value)

Specified by:
containsValue in interface Map<Integer,Persistent>
See Also:
Map.containsValue(java.lang.Object)

entrySet

public Set<Map.Entry<Integer,Persistent>> entrySet()

Specified by:
entrySet in interface Map<Integer,Persistent>
See Also:
Map.entrySet()

get

public Persistent get(Object key)

Specified by:
get in interface Map<Integer,Persistent>
See Also:
Map.get(java.lang.Object)

isEmpty

public boolean isEmpty()

Specified by:
isEmpty in interface Map<Integer,Persistent>
See Also:
Map.isEmpty()

keySet

public Set<Integer> keySet()

Specified by:
keySet in interface Map<Integer,Persistent>
See Also:
Map.keySet()

put

public Persistent put(Integer arg0,
                      Persistent arg1)

Specified by:
put in interface Map<Integer,Persistent>
See Also:
java.util.Map#put(K, V)

putAll

public void putAll(Map<? extends Integer,? extends Persistent> arg0)

Specified by:
putAll in interface Map<Integer,Persistent>
See Also:
Map.putAll(java.util.Map)

remove

public Persistent remove(Object key)

Specified by:
remove in interface Map<Integer,Persistent>
See Also:
Map.remove(java.lang.Object)

size

public int size()

Specified by:
size in interface Map<Integer,Persistent>
See Also:
Map.size()

values

public Collection<Persistent> values()

Specified by:
values in interface Map<Integer,Persistent>
See Also:
Map.values()


Copyright © 2000-2010 PanEris. All Rights Reserved.