|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vizzini.util.AbstractCollection
org.vizzini.util.AbstractMap
org.vizzini.game.TeamCollection
public class TeamCollection
Provides a collection to hold ITeam
s. Each stored team's name
must be unique, as the name is the only discriminating property.
ITeam
,
AbstractTeam.equals(Object)
,
Serialized FormConstructor Summary | |
---|---|
TeamCollection()
|
Method Summary | |
---|---|
boolean |
add(Object object)
Add the given object. |
ITeam |
findByName(String name)
Return the team with the given name. |
protected Map |
getData()
Return the data collection. |
protected Object |
getKey(Object object)
Return the key for the given object. |
protected Class |
getType()
Return the type this collection holds. |
int |
hashCode()
Returns a hash code value for the object. |
void |
propertyChange(PropertyChangeEvent event)
Implement a property change listener for relevant token properties. |
boolean |
remove(Object object)
Add the given object. |
Methods inherited from class org.vizzini.util.AbstractMap |
---|
clear, contains, equals, isEmpty, iterator, size, toString |
Methods inherited from class org.vizzini.util.AbstractCollection |
---|
addAll, containsAll, removeAll, retainAll, toArray, toArray |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.vizzini.util.ICollection |
---|
toString |
Methods inherited from interface java.util.Collection |
---|
addAll, clear, contains, containsAll, equals, isEmpty, iterator, removeAll, retainAll, size, toArray, toArray |
Constructor Detail |
---|
public TeamCollection()
Method Detail |
---|
public boolean add(Object object)
add
in interface Collection
add
in class AbstractMap
public ITeam findByName(String name)
findByName
in interface ITeamCollection
public int hashCode()
hashCode
in interface Collection
hashCode
in class AbstractMap
public void propertyChange(PropertyChangeEvent event)
propertyChange
in interface PropertyChangeListener
public boolean remove(Object object)
remove
in interface Collection
remove
in class AbstractMap
protected Map getData()
getData
in class AbstractMap
protected Object getKey(Object object)
getKey
in class AbstractMap
protected Class getType()
getType
in class AbstractCollection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |