fate.network
Class MapPlayerInfo


java.lang.Object

  |

  +--java.util.AbstractMap

        |

        +--java.util.TreeMap

              |

              +--fate.network.MapPlayerInfo


public class MapPlayerInfo
extends java.util.TreeMap
implements java.io.Serializable

Simple map to store player info such as login and password.

See Also:
Serialized Form

Constructor Summary
MapPlayerInfo()
          Creates new MapPlayerInfo
 
Method Summary
 PlayerInfo find(java.lang.String username)
          Retrieves a PlayerInfo object
 PlayerInfo get(int id)
          Retrieves a PlayerInfo object
 int put(PlayerInfo playerInfo)
          Adds a new PlayerInfo object
 PlayerInfo remove(int id)
          Retrieves a PlayerInfo object
 void update(PlayerInfo playerInfo)
          Updates an existing PlayerInfo object
 
Methods inherited from class java.util.TreeMap
clear, clone, comparator, containsKey, containsValue, entrySet, firstKey, get, headMap, keySet, lastKey, put, putAll, remove, size, subMap, tailMap, values
 
Methods inherited from class java.util.AbstractMap
equals, hashCode, isEmpty, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MapPlayerInfo


public MapPlayerInfo()
Creates new MapPlayerInfo
Method Detail

put


public int put(PlayerInfo playerInfo)
Adds a new PlayerInfo object

update


public void update(PlayerInfo playerInfo)
Updates an existing PlayerInfo object

get


public PlayerInfo get(int id)
Retrieves a PlayerInfo object

find


public PlayerInfo find(java.lang.String username)
Retrieves a PlayerInfo object

remove


public PlayerInfo remove(int id)
Retrieves a PlayerInfo object