info.ephyra.answerselection.filters
Class WebTermImportanceFilter.TermCounter

java.lang.Object
  extended by info.ephyra.answerselection.filters.WebTermImportanceFilter.TermCounter
Enclosing class:
WebTermImportanceFilter

protected class WebTermImportanceFilter.TermCounter
extends java.lang.Object

Author:
sautter Mutable integer class to avoid creating new objects all the time

Field Summary
private  int value
           
 
Constructor Summary
protected WebTermImportanceFilter.TermCounter()
          Constructor
protected WebTermImportanceFilter.TermCounter(int value)
          Constructor
 
Method Summary
 void decrement()
          decrement the value of this TermCounter by 1
 void decrement(int dec)
          decrement the value of this TermCounter by dec
 void divideValue(int denom)
          devide the value of this TermCounter times denom
 int getValue()
           
 void increment()
          increment the value of this TermCounter by 1
 void increment(int inc)
          increment the value of this TermCounter by inc
 void multiplyValue(int fact)
          multiply the value of this TermCounter times fact
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

value

private int value
Constructor Detail

WebTermImportanceFilter.TermCounter

protected WebTermImportanceFilter.TermCounter()
Constructor


WebTermImportanceFilter.TermCounter

protected WebTermImportanceFilter.TermCounter(int value)
Constructor

Parameters:
value - the initial value
Method Detail

getValue

public int getValue()
Returns:
the value of this TermCounter

increment

public void increment()
increment the value of this TermCounter by 1


increment

public void increment(int inc)
increment the value of this TermCounter by inc

Parameters:
inc -

decrement

public void decrement()
decrement the value of this TermCounter by 1


decrement

public void decrement(int dec)
decrement the value of this TermCounter by dec

Parameters:
dec -

multiplyValue

public void multiplyValue(int fact)
multiply the value of this TermCounter times fact

Parameters:
fact -

divideValue

public void divideValue(int denom)
devide the value of this TermCounter times denom

Parameters:
denom -