@Override
  public boolean equals(Object obj) {
    Media mObj;
    if (obj == null)
      return false;
    if (obj == this)
      return true;
    if (obj.getClass() != getClass())
      return false;
    mObj = (Media) obj;
    return this.creator.equals(mObj.getCreator())
        && this.name.equals(mObj.getName())
        && this.duration == mObj.getDuration()
        && this.genre.equals(mObj.getGenre());
  }