game.libraries.names
Class AbstractNameList

java.lang.Object
  |
  +--game.libraries.names.AbstractNameList
All Implemented Interfaces:
NameList
Direct Known Subclasses:
CombinedNameList, OrdinalNameList, StaticNameList

public abstract class AbstractNameList
extends java.lang.Object
implements NameList

An abstract class to provide default unsupported implementations of some of the NameList interface methods.


Constructor Summary
AbstractNameList()
           
 
Method Summary
 void addName(java.lang.String value)
          Add a new name to the list.
 void releaseName(java.lang.String value)
          Release the name, that is, allow it to be reused.
 void removeName(java.lang.String value)
          Remove the name completely from the list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface game.libraries.names.NameList
getName
 

Constructor Detail

AbstractNameList

public AbstractNameList()
Method Detail

addName

public void addName(java.lang.String value)
             throws java.lang.UnsupportedOperationException
Add a new name to the list.

Specified by:
addName in interface NameList
Parameters:
value - the name to add.
Throws:
java.lang.UnsupportedOperationException - - if the add operation is not supported by this list iterator.

releaseName

public void releaseName(java.lang.String value)
                 throws java.lang.UnsupportedOperationException
Release the name, that is, allow it to be reused. Unsupported by default.

Specified by:
releaseName in interface NameList
Parameters:
value - the name to be released.
Throws:
java.lang.UnsupportedOperationException - - if the release operation is not supported by this list iterator.

removeName

public void removeName(java.lang.String value)
                throws java.lang.UnsupportedOperationException
Remove the name completely from the list. Unsupported by default.

Specified by:
removeName in interface NameList
Parameters:
value - the name to be removed.
Throws:
java.lang.UnsupportedOperationException - - if the remove operation is not supported by this list iterator.