net.sf.kagiru.core.difficulty
Class DifficultyLevels

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.AbstractSequentialList<E>
              extended by java.util.LinkedList<DifficultyLevel>
                  extended by net.sf.kagiru.core.difficulty.DifficultyLevels
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<DifficultyLevel>, java.util.Collection<DifficultyLevel>, java.util.List<DifficultyLevel>, java.util.Queue<DifficultyLevel>

public class DifficultyLevels
extends java.util.LinkedList<DifficultyLevel>

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
DifficultyLevels()
           
 
Method Summary
 int getIndex(DifficultyLevel level)
          indexOf by itself doesn't work, as is based on ==, not on equals and thus doesn't deal with equal instances with different hash numbers.
 DifficultyLevel getLevel(java.lang.String name)
           
 
Methods inherited from class java.util.LinkedList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, element, get, getFirst, getLast, indexOf, lastIndexOf, listIterator, offer, peek, poll, remove, remove, remove, removeFirst, removeLast, set, size, toArray, toArray
 
Methods inherited from class java.util.AbstractSequentialList
iterator
 
Methods inherited from class java.util.AbstractList
equals, hashCode, listIterator, removeRange, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, isEmpty, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, isEmpty, iterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

DifficultyLevels

public DifficultyLevels()
Method Detail

getIndex

public int getIndex(DifficultyLevel level)
indexOf by itself doesn't work, as is based on ==, not on equals and thus doesn't deal with equal instances with different hash numbers.


getLevel

public DifficultyLevel getLevel(java.lang.String name)
                         throws NoSuchDifficultyLevelException
Throws:
NoSuchDifficultyLevelException


This code documentation is disclosed as part of Kagiru Sudoku. It is licensed under the GNU General Public License (GPL) and comes with NO WARRANTY. See file license.txt for more info.