@Override
  public boolean equals(Object obj) {
    if (obj == null) {
      return false;
    }

    Entry entry = null;

    try {
      entry = (Entry) obj;
    } catch (ClassCastException cce) {
      return false;
    }

    long primaryKey = entry.getPrimaryKey();

    if (getPrimaryKey() == primaryKey) {
      return true;
    } else {
      return false;
    }
  }