1 8 package org.apache.avalon.excalibur.profile; 9 10 17 public class EventsPerSampleProfilePoint extends AbstractProfilePoint 18 { 19 private int m_value = 0; 20 21 24 public EventsPerSampleProfilePoint( String name ) 25 { 26 super( name ); 27 } 28 29 32 public void increment( ) 33 { 34 m_value++; 35 } 36 37 42 public int getSample() 43 { 44 final int returnValue = m_value; 45 m_value = 0; 46 47 return returnValue; 48 } 49 } 50 | Popular Tags |