net.sf.kagiru.core
Class Region
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractSet<E>
java.util.HashSet<Cell>
net.sf.kagiru.core.Region
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<Cell>, java.util.Collection<Cell>, java.util.Set<Cell>
public class Region
- extends java.util.HashSet<Cell>
- See Also:
- Serialized Form
Methods inherited from class java.util.HashSet |
add, clear, clone, contains, isEmpty, iterator, remove, 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, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray |
Region
public Region(Puzzle puzzle)
getAllMainRegionsThisRegionIsASubsetFrom
public java.util.Collection<Region> getAllMainRegionsThisRegionIsASubsetFrom()
getComplement
public Region getComplement(Region isolationRegion)
getFirst
public Cell getFirst()
throws EmptyRegionException
- Throws:
EmptyRegionException
isolate
public Region isolate(java.lang.String value)
- Returns:
- the region the given value can be isolated within this region
restrainForAllCells
public void restrainForAllCells(java.lang.String value)
throws PuzzleHasNoSolutionException
- Throws:
PuzzleHasNoSolutionException
This code documentation is disclosed as part of . It is licensed under the and comes with NO WARRANTY. See file for more info.