public class SolverTypeCollection extends Object implements Iterable<SolverType>
Modifier and Type | Field and Description |
---|---|
static SolverTypeCollection |
EMPTY_COLLECTION |
private int |
hashCode |
private int |
minUsableSolver |
private String |
name |
private LinkedList<SolverType> |
types |
Modifier | Constructor and Description |
---|---|
private |
SolverTypeCollection() |
|
SolverTypeCollection(String name,
int minUsableSolvers,
Collection<SolverType> types)
Instantiates a new solver type collection.
|
|
SolverTypeCollection(String name,
int minUsableSolvers,
SolverType type,
SolverType... types) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
LinkedList<SolverType> |
getTypes() |
int |
hashCode() |
boolean |
isUsable() |
Iterator<SolverType> |
iterator() |
String |
name() |
String |
toString() |
public static final SolverTypeCollection EMPTY_COLLECTION
private LinkedList<SolverType> types
private String name
private int minUsableSolver
private int hashCode
public SolverTypeCollection(String name, int minUsableSolvers, SolverType type, SolverType... types)
type
- at least on solver type must be passed.types
- minUsableSolvers
- specifies how many solvers at leas must be usable, so that
isUsable
returns true.public SolverTypeCollection(String name, int minUsableSolvers, Collection<SolverType> types)
name
- the name of the solverminUsableSolvers
- the min number of usable solverstypes
- the types to addprivate SolverTypeCollection()
public LinkedList<SolverType> getTypes()
public boolean isUsable()
public String name()
public Iterator<SolverType> iterator()
iterator
in interface Iterable<SolverType>