info.aduna.gee.publication.servlets.util
Class CounterPair

java.lang.Object
  extended by info.aduna.gee.publication.servlets.util.CounterPair
All Implemented Interfaces:
Comparable

public class CounterPair
extends Object
implements Comparable


Field Summary
protected  String _key
           
protected  int _value
           
 
Constructor Summary
CounterPair()
           
CounterPair(String key, int value)
           
 
Method Summary
 int compareTo(Object other)
           
 boolean equals(Object other)
           
 String getKey()
           
 int getValue()
           
 void setValue(int newValue)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_key

protected String _key

_value

protected int _value
Constructor Detail

CounterPair

public CounterPair()

CounterPair

public CounterPair(String key,
                   int value)
Method Detail

getKey

public String getKey()

getValue

public int getValue()

setValue

public void setValue(int newValue)

compareTo

public int compareTo(Object other)
Specified by:
compareTo in interface Comparable

equals

public boolean equals(Object other)
Overrides:
equals in class Object


Copyright © 1997-2008 Aduna. All Rights Reserved.