Changeset 11973 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2017-04-22T15:23:07+02:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/Filter.java
r10378 r11973 1 1 // License: GPL. For details, see LICENSE file. 2 2 package org.openstreetmap.josm.data.osm; 3 4 import java.util.Objects; 3 5 4 6 import org.openstreetmap.josm.actions.search.SearchAction.SearchMode; … … 114 116 @writeExplicitly 115 117 @pref public boolean inverted; 118 119 @Override 120 public int hashCode() { 121 return Objects.hash(case_sensitive, enable, hiding, inverted, mapCSS_search, mode, regex_search, text, version); 122 } 123 124 @Override 125 public boolean equals(Object obj) { 126 if (this == obj) 127 return true; 128 if (obj == null || getClass() != obj.getClass()) 129 return false; 130 FilterPreferenceEntry other = (FilterPreferenceEntry) obj; 131 return case_sensitive == other.case_sensitive 132 && enable == other.enable 133 && hiding == other.hiding 134 && inverted == other.inverted 135 && mapCSS_search == other.mapCSS_search 136 && regex_search == other.regex_search 137 && Objects.equals(mode, other.mode) 138 && Objects.equals(text, other.text) 139 && Objects.equals(version, other.version); 140 } 116 141 } 117 142
Note:
See TracChangeset
for help on using the changeset viewer.