1 8 package org.apache.avalon.excalibur.profile; 9 10 17 public class PeekValueProfilePoint extends AbstractProfilePoint 18 { 19 private int m_value = 0; 20 21 24 public PeekValueProfilePoint( String name ) 25 { 26 super( name ); 27 } 28 29 32 public void setValue( int currentValue ) 33 { 34 if ( currentValue > m_value ) 35 { 36 m_value = currentValue; 37 } 38 } 39 40 45 public int getSample() 46 { 47 return m_value; 48 } 49 } 50 | Popular Tags |