FileDocCategorySizeDatePackage
CountStatisticImpl.javaAPI DocGlassfish v2 API3927Fri May 04 22:30:52 BST 2007com.sun.appserv.management.j2ee.statistics

CountStatisticImpl

public class CountStatisticImpl extends StatisticImpl implements Serializable, javax.management.j2ee.statistics.CountStatistic

Fields Summary
static final long
serialVersionUID
private final long
Count
Constructors Summary
public CountStatisticImpl(String name, String description, String unit, long startTime, long lastSampleTime, long count)

	
		
	
		 	
		 	
		 	
		 		
		 		
		 		 
	
		super( name, description, unit, startTime, lastSampleTime );
		Count	= count;
	
public CountStatisticImpl(CompositeData compositeData)

		this( OpenMBeanUtil.compositeDataToMap( compositeData ) );
	
public CountStatisticImpl(javax.management.j2ee.statistics.CountStatistic s)

		super( s );
		Count	= s.getCount();
	
public CountStatisticImpl(MapStatistic s)

		super( s );
		Count	= s.getlong( "Count" );
	
public CountStatisticImpl(Map data)

		this( new MapStatisticImpl( data ) );
	
Methods Summary
public booleanequals(java.lang.Object rhs)

		boolean	equals	= super.equals( rhs ) && (rhs instanceof CountStatistic);
		
		if ( equals )
		{
			final CountStatistic	s	= (CountStatistic)rhs;
			
			equals	= getCount() == s.getCount();
		}
		return( equals );
	
public longgetCount()

 		return( Count );
 	
public inthashCode()

 	    return super.hashCode() ^ ObjectUtil.hashCode( Count );