org.paukov.combinatorics3.SimpleSubSetGenerator Maven / Gradle / Ivy
/*
* Combinatorics Library 3
* Copyright 2009-2016 Dmytro Paukov [email protected]
*/
package org.paukov.combinatorics3;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
class SimpleSubSetGenerator implements IGenerator> {
final List originalVector;
SimpleSubSetGenerator(Collection originalVector) {
this.originalVector = new ArrayList<>(originalVector);
}
@Override
public Iterator> iterator() {
return new SimpleSubSetIterator<>(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy