public class Itemset extends java.lang.Object implements java.lang.Comparable<Itemset>, PrettyPrint
Contains a set of clusters, transactions and times.
| Constructor and Description |
|---|
Itemset(java.util.Collection<java.lang.Integer> transactions,
java.util.Collection<java.lang.Integer> clusters,
java.util.Collection<java.lang.Integer> times)
Default constructer.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Itemset itemset)
|
boolean |
equals(java.lang.Object o)
|
java.util.TreeSet<java.lang.Integer> |
getClusters()
|
java.util.TreeSet<java.lang.Integer> |
getTimes()
|
java.util.TreeSet<java.lang.Integer> |
getTransactions()
|
java.lang.String |
toPrettyString()
Displays a prettified version of
Object.toString()
It's used as display by Debug if
it's implemented.
|
java.lang.String |
toString()
|
public Itemset(java.util.Collection<java.lang.Integer> transactions,
java.util.Collection<java.lang.Integer> clusters,
java.util.Collection<java.lang.Integer> times)
transactions - set containing the transactions of the itemsetclusters - set containing the clusters of the itemsettimes - set containing the times of the itemsetpublic java.util.TreeSet<java.lang.Integer> getClusters()
TreeSetpublic java.util.TreeSet<java.lang.Integer> getTransactions()
TreeSetpublic java.util.TreeSet<java.lang.Integer> getTimes()
TreeSetpublic int compareTo(Itemset itemset)
compareTo in interface java.lang.Comparable<Itemset>public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toPrettyString()
PrettyPrint
Object.toString()
It's used as display by Debug if it's
implemented.
toPrettyString in
interface PrettyPrint
Object.toString()public java.lang.String toString()
toString in class java.lang.Object