boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; Key key1 = (Key)o; if (isMarker != key1.isMarker) return false; if (!Objects.equals(key, key1.key)) return false; return true; }