|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectanatomy.AttValueCount
public class AttValueCount
This class manages the counts of sensitive attribute values. Associated with each object is a double attribute value and the count of tuples in the dataset that have that value.
Field Summary | |
---|---|
private int |
count
Number of associated tuples |
private double |
value
Attribute value |
Constructor Summary | |
---|---|
AttValueCount(double value,
int count)
Class constructor |
Method Summary | |
---|---|
int |
compareTo(java.lang.Object o)
Used for sorting AttValueCounts in DESCENDING order |
boolean |
decrement()
Decrement the count for this attribute value |
int |
getCount()
Getter for the tuple count |
double |
getValue()
Getter for the attribute value |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private double value
private int count
Constructor Detail |
---|
public AttValueCount(double value, int count)
value
- attribute valuecount
- number of associated tuplesMethod Detail |
---|
public boolean decrement()
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
public java.lang.String toString()
toString
in class java.lang.Object
public double getValue()
public int getCount()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |