Changeset 3796 in josm for trunk/src/org/openstreetmap/josm/tools
- Timestamp:
- 2011-01-21T12:42:29+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/tools/Utils.java
r3711 r3796 29 29 30 30 /** 31 * for convenience: test whether 2 objects are either both null or a.equals(b) 32 */ 33 public static <T> boolean equal(T a, T b) { 34 if (a == null && b == null) 35 return true; 36 return (a != null && a.equals(b)); 37 } 38 39 /** 31 40 * return the modulus in the range [0, n) 32 41 */
Note:
See TracChangeset
for help on using the changeset viewer.