@Override public int hashCode(){
  int hash=7;
  hash=23 * hash + (_scope != null ? _scope.hashCode() : 0);
  hash=23 * hash + (_metric != null ? _metric.hashCode() : 0);
  hash=23 * hash + (_tags != null ? _tags.hashCode() : 0);
  return hash;
}

@ Override public int hashCode ( ) { int hash = 7 ; hash = 23 * hash + ( _scope != null ? _scope . hashCode ( ) : 0 ) ; hash = 23 * hash + ( _metric != null ? _metric . hashCode ( ) : 0 ) ; hash = 23 * hash + ( _tags != null ? _tags . hashCode ( ) : 0 ) ; return hash ; }
returns the hash code for the entity based on the scope , metric and tags .
