1 32 33 package com.jeantessier.metrics; 34 35 public class NullMeasurement implements Measurement { 36 public MeasurementDescriptor getDescriptor() { 37 return null; 38 } 39 40 public Metrics getContext() { 41 return null; 42 } 43 44 public String getShortName() { 45 return null; 46 } 47 48 public String getLongName() { 49 return null; 50 } 51 52 public Number getValue(){ 53 return null; 54 } 55 56 public int intValue() { 57 return 0; 58 } 59 60 public long longValue() { 61 return 0; 62 } 63 64 public float floatValue() { 65 return 0; 66 } 67 68 public double doubleValue() { 69 return 0; 70 } 71 72 public boolean isEmpty() { 73 return true; 74 } 75 76 public boolean isInRange() { 77 return false; 78 } 79 80 public void add(Object object) { 81 } 83 84 public void add(int i) { 85 } 87 88 public void add(long l) { 89 } 91 92 public void add(float f) { 93 } 95 96 public void add(double d) { 97 } 99 100 public void accept(MeasurementVisitor visitor) { 101 } 103 } 104 | Popular Tags |