vooga.network.data
Class DataTable

java.lang.Object
  extended by java.util.AbstractMap<K,V>
      extended by java.util.HashMap<java.util.List<java.lang.String>,DataObject>
          extended by vooga.network.data.DataTable
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Map<java.util.List<java.lang.String>,DataObject>

public class DataTable
extends java.util.HashMap<java.util.List<java.lang.String>,DataObject>

A DataTable extends a map of keys to data objects, adding the functionality to set a boolean flag when the table has been updated. This allows the DataManager storing the tables to save the table to disk only when it has been updated.

Author:
tanner schmidt
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Constructor Summary
DataTable()
           
 
Method Summary
 boolean isUpdated()
           
 void setUpdated(boolean updated)
           
 
Methods inherited from class java.util.HashMap
clear, clone, containsKey, containsValue, entrySet, get, isEmpty, keySet, put, putAll, remove, size, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Map
equals, hashCode
 

Constructor Detail

DataTable

public DataTable()
Method Detail

setUpdated

public void setUpdated(boolean updated)

isUpdated

public boolean isUpdated()