T - public class ListIterator<T> extends Object implements Iterator<List<T>>
ListIterator aims at providing a way to generate an exhaustive
sequence of possible Lists. Each List has the same size and
is consistent regarding the order of its elements: if the
ListIterator is configured with a set of Integers, a set of
Strings and a set of Booleans, then the Lists
generated always have an Integer, a String and a
Boolean in the same order.ListIterator can be used to generate a set of vectors or
possible configurations, where each configuration uses the same pattern of
(heterogeneous) parameters.getAmountOfPossibleLists()
or isPossibleList(List) to be able to evaluate a given List
regarding the full set, without having to generate this full set.| Constructor and Description |
|---|
ListIterator(boolean allowEmpty,
Collection<? extends T>... possibleValues) |
ListIterator(Collection<? extends T>... possibleValues) |
ListIterator(Map<ObjectType,? extends Collection<T>> possibleValues) |
ListIterator(Map<ObjectType,? extends Collection<T>> possibleValues,
Map<ObjectType,T> observedValues,
Collection<ObjectType> elementsConsidered) |
ListIterator(Map<ObjectType,? extends Collection<T>> possibleValues,
Map<ObjectType,T> observedValues,
Collection<ObjectType> elementsConsidered,
boolean allowEmpty) |
| Modifier and Type | Method and Description |
|---|---|
BigInteger |
getAmountOFGeneratedLists() |
BigInteger |
getAmountOfPossibleLists() |
boolean |
hasNext() |
boolean |
isPossibleList(List<Object> list) |
static void |
main(String[] args) |
List<T> |
next() |
void |
remove() |
public ListIterator(Collection<? extends T>... possibleValues)
public ListIterator(boolean allowEmpty,
Collection<? extends T>... possibleValues)
public ListIterator(Map<ObjectType,? extends Collection<T>> possibleValues)
public ListIterator(Map<ObjectType,? extends Collection<T>> possibleValues, Map<ObjectType,T> observedValues, Collection<ObjectType> elementsConsidered)
public ListIterator(Map<ObjectType,? extends Collection<T>> possibleValues, Map<ObjectType,T> observedValues, Collection<ObjectType> elementsConsidered, boolean allowEmpty)
public BigInteger getAmountOfPossibleLists()
public BigInteger getAmountOFGeneratedLists()
public static void main(String[] args)
Copyright © 2014–2015. All rights reserved.