boolean (Object obj) { if(!(obj instanceof ExcludeEntryDescription entryDescription)) { return false; } if(entryDescription.myIsFile != myIsFile) { return false; } if(entryDescription.myIncludeSubdirectories != myIncludeSubdirectories) { return false; } return Objects.equals(entryDescription.getUrl(), getUrl()); }