net.sf.jdmf.data.input.attribute.incidence
Class AttributeValueIncidence

java.lang.Object
  extended by net.sf.jdmf.data.input.attribute.incidence.AttributeValueIncidence

public class AttributeValueIncidence
extends java.lang.Object

Represents the incidence of an attribute value (the number of times this value has occurred).

Author:
quorthon

Constructor Summary
AttributeValueIncidence(java.lang.Comparable attributeValue)
           
 
Method Summary
 void checkAttributeValue(java.lang.Comparable currentAttributeValue)
          Checks if the current attribute value is equal to this attribute value and increases its incidence, if appropriate.
 boolean equals(java.lang.Object obj)
           
 java.lang.Comparable getAttributeValue()
           
 java.lang.Integer getCurrentIncidence()
           
 void reset()
          Resets the incidence to zero.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AttributeValueIncidence

public AttributeValueIncidence(java.lang.Comparable attributeValue)
Method Detail

checkAttributeValue

public void checkAttributeValue(java.lang.Comparable currentAttributeValue)
Checks if the current attribute value is equal to this attribute value and increases its incidence, if appropriate.


equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

reset

public void reset()
Resets the incidence to zero.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getAttributeValue

public java.lang.Comparable getAttributeValue()

getCurrentIncidence

public java.lang.Integer getCurrentIncidence()