Package zombie.characters.traits
Class TraitCollection
java.lang.Object
zombie.characters.traits.TraitCollection
- Direct Known Subclasses:
IsoGameCharacter.CharacterTraits
public class TraitCollection
extends java.lang.Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classTraitCollection.TraitSlot -
Constructor Summary
Constructors Constructor Description TraitCollection() -
Method Summary
Modifier and Type Method Description voidadd(java.lang.String string)voidaddAll(java.util.Collection collection)voidclear()booleancontains(java.lang.Object object)booleancontains(java.lang.String string)java.lang.Stringget(int int1)TraitCollection.TraitSlotgetTraitSlot(java.lang.String string)booleanisEmpty()booleanremove(java.lang.Object object)booleanremove(java.lang.String string)voidremoveAll(java.util.Collection collection)voidset(java.lang.String string, boolean boolean1)intsize()java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
TraitCollection
public TraitCollection()
-
-
Method Details
-
remove
public boolean remove(java.lang.Object object) -
remove
public boolean remove(java.lang.String string) -
addAll
public void addAll(java.util.Collection collection) -
removeAll
public void removeAll(java.util.Collection collection) -
clear
public void clear() -
size
public int size() -
isEmpty
public boolean isEmpty() -
contains
public boolean contains(java.lang.Object object) -
contains
public boolean contains(java.lang.String string) -
add
public void add(java.lang.String string) -
get
public java.lang.String get(int int1) -
set
public void set(java.lang.String string, boolean boolean1) -
getTraitSlot
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-