1 32 33 package com.jeantessier.metrics; 34 35 public interface Measurement { 36 public MeasurementDescriptor getDescriptor(); 37 public Metrics getContext(); 38 39 public String getShortName(); 40 public String getLongName(); 41 42 public Number getValue(); 43 public int intValue(); 44 public long longValue(); 45 public float floatValue(); 46 public double doubleValue(); 47 48 public boolean isEmpty(); 49 public boolean isInRange(); 50 51 public void add(Object object); 52 public void add(int i); 53 public void add(long l); 54 public void add(float f); 55 public void add(double d); 56 57 public void accept(MeasurementVisitor visitor); 58 } 59 | Popular Tags |