public boolean equals(Object obj) {
   if (this == obj) return true;
   if (obj == null) return false;
   if (getClass() != obj.getClass()) return false;
   FlowerPower other = (FlowerPower) obj;
   if (metadata == null) {
     if (other.metadata != null) return false;
   } else if (!metadata.equals(other.metadata)) return false;
   return true;
 }
 public int hashCode() {
   final int prime = 31;
   int result = 1;
   result = prime * result + ((metadata == null) ? 0 : metadata.hashCode());
   return result;
 }