com.rapidminer.operator.learner.associations
Class PowerSet<ItemT>
java.lang.Object
com.rapidminer.operator.learner.associations.PowerSet<ItemT>
- Type Parameters:
ItemT - the item type
- All Implemented Interfaces:
- java.lang.Iterable<java.util.Collection<ItemT>>, java.util.Iterator<java.util.Collection<ItemT>>
public class PowerSet<ItemT>
- extends java.lang.Object
- implements java.lang.Iterable<java.util.Collection<ItemT>>, java.util.Iterator<java.util.Collection<ItemT>>
The power set of a collection of items.
- Author:
- Sebastian Land
|
Constructor Summary |
PowerSet(java.util.Collection<ItemT> collection)
|
|
Method Summary |
java.util.Collection<ItemT> |
getComplement(java.util.Collection<ItemT> collection)
|
boolean |
hasNext()
|
java.util.Iterator<java.util.Collection<ItemT>> |
iterator()
|
java.util.Collection<ItemT> |
next()
|
void |
remove()
Throws an UnsupportedOperationException since removal is not supported. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PowerSet
public PowerSet(java.util.Collection<ItemT> collection)
iterator
public java.util.Iterator<java.util.Collection<ItemT>> iterator()
- Specified by:
iterator in interface java.lang.Iterable<java.util.Collection<ItemT>>
getComplement
public java.util.Collection<ItemT> getComplement(java.util.Collection<ItemT> collection)
hasNext
public boolean hasNext()
- Specified by:
hasNext in interface java.util.Iterator<java.util.Collection<ItemT>>
next
public java.util.Collection<ItemT> next()
- Specified by:
next in interface java.util.Iterator<java.util.Collection<ItemT>>
remove
public void remove()
- Throws an
UnsupportedOperationException since removal is not supported.
- Specified by:
remove in interface java.util.Iterator<java.util.Collection<ItemT>>
Copyright © 2001-2009 by Rapid-I