@Override public boolean equals(Object o){
  if (this == o) {
    return true;
  }
  if (o == null || getClass() != o.getClass()) {
    return false;
  }
  final ScalarReading that=(ScalarReading)o;
  if (mTimestampMillis != that.mTimestampMillis) {
    return false;
  }
  return Double.compare(that.mValue,mValue) == 0;
}

@ Override public boolean equals ( Object o ) { if ( this == o ) { return true ; } if ( o == null || getClass ( ) != o . getClass ( ) ) { return false ; } final ScalarReading that = ( ScalarReading ) o ; if ( mTimestampMillis != that . mTimestampMillis ) { return false ; } return Double . compare ( that . mValue , mValue ) == 0 ; }
only use this for testing .
