CountStatisticImplpublic 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 boolean | equals(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 long | getCount()
return( Count );
| public int | hashCode()
return super.hashCode() ^ ObjectUtil.hashCode( Count );
|
|