pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.component.statistics.view
Class OverViewControllerResultData.CountryData

java.lang.Object
  extended by org.torweg.pulse.component.statistics.view.OverViewControllerResultData.CountryData
All Implemented Interfaces:
java.io.Serializable, ICount, INamed
Enclosing class:
OverViewControllerResultData

protected static final class OverViewControllerResultData.CountryData
extends java.lang.Object
implements ICount, java.io.Serializable, INamed

JAXB-enabled utility for displaying country information.

Version:
$Revision: 1568 $
Author:
Daniel Dietz
See Also:
Serialized Form

Constructor Summary
protected OverViewControllerResultData.CountryData()
          Deprecated. 
protected OverViewControllerResultData.CountryData(java.lang.String cty, int c)
          Creates a new CountryData with the given country and initial count.
 
Method Summary
protected  void addToCount(int c)
          Adds the given value to the internal count.
 int getCount()
          Returns the count.
 java.lang.String getCountry()
          Returns the country.
 java.lang.String getName()
          For comparator-use only.
protected  void setCount(int c)
          Sets the count.
protected  void setCountry(java.lang.String cty)
          Sets the country.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OverViewControllerResultData.CountryData

@Deprecated
protected OverViewControllerResultData.CountryData()
Deprecated. 

Default constructor.


OverViewControllerResultData.CountryData

protected OverViewControllerResultData.CountryData(java.lang.String cty,
                                                   int c)
Creates a new CountryData with the given country and initial count.

Parameters:
cty - the country
c - the initial count
Method Detail

setCountry

protected void setCountry(java.lang.String cty)
Sets the country.

Parameters:
cty - the country

setCount

protected void setCount(int c)
Sets the count.

Parameters:
c - the count

getCountry

public java.lang.String getCountry()
Returns the country.

Returns:
the country

getCount

public int getCount()
Returns the count.

Specified by:
getCount in interface ICount
Returns:
the count

addToCount

protected void addToCount(int c)
Adds the given value to the internal count.

Parameters:
c - the value to add

getName

public java.lang.String getName()
For comparator-use only.

Specified by:
getName in interface INamed
Returns:
CountryData.getCountry()
See Also:
INamed.getName()