Sautrela

edu.gtts.sautrela.wfsa.models
Class DefaultAlphabet<Y extends Symbol>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<E>
          extended by java.util.HashSet<Y>
              extended by edu.gtts.sautrela.wfsa.models.DefaultAlphabet<Y>
All Implemented Interfaces:
Alphabet<Y>, java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<Y>, java.util.Collection<Y>, java.util.Set<Y>

public class DefaultAlphabet<Y extends Symbol>
extends java.util.HashSet<Y>
implements Alphabet<Y>

Author:
mpenagar
See Also:
Serialized Form

Constructor Summary
DefaultAlphabet()
           
 
Method Summary
 boolean add(Y o)
           
 void clear()
           
 boolean remove(java.lang.Object o)
           
 Y valueOf(java.lang.String name)
          Returns a Symbol object holding the value represented by the argument string s.
 
Methods inherited from class java.util.HashSet
clone, contains, isEmpty, iterator, size
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
addAll, contains, containsAll, equals, hashCode, isEmpty, iterator, removeAll, retainAll, size, toArray, toArray
 

Constructor Detail

DefaultAlphabet

public DefaultAlphabet()
Method Detail

add

public boolean add(Y o)
Specified by:
add in interface java.util.Collection<Y extends Symbol>
Specified by:
add in interface java.util.Set<Y extends Symbol>
Overrides:
add in class java.util.HashSet<Y extends Symbol>

remove

public boolean remove(java.lang.Object o)
Specified by:
remove in interface java.util.Collection<Y extends Symbol>
Specified by:
remove in interface java.util.Set<Y extends Symbol>
Overrides:
remove in class java.util.HashSet<Y extends Symbol>

clear

public void clear()
Specified by:
clear in interface java.util.Collection<Y extends Symbol>
Specified by:
clear in interface java.util.Set<Y extends Symbol>
Overrides:
clear in class java.util.HashSet<Y extends Symbol>

valueOf

public Y valueOf(java.lang.String name)
Description copied from interface: Alphabet
Returns a Symbol object holding the value represented by the argument string s.

Specified by:
valueOf in interface Alphabet<Y extends Symbol>
Parameters:
name - the string to be parsed
Returns:
a Symbol object holding the value represented by the String argument.

Sautrela