Changeset 13453 in josm for trunk/src/org/openstreetmap/josm/data/osm/Lockable.java
- Timestamp:
- 2018-02-24T18:58:28+01:00 (7 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/osm/Lockable.java
r13452 r13453 3 3 4 4 /** 5 * To be implemented by modifiable objects to offer a "read-only " mode.6 * @since 134 345 * To be implemented by modifiable objects to offer a "read-only/locked" mode. 6 * @since 13453 7 7 */ 8 public interface ReadOnly{8 public interface Lockable { 9 9 10 10 /** 11 * Enables the read-only mode.11 * Enables the read-only/locked mode. 12 12 */ 13 void setReadOnly();13 void lock(); 14 14 15 15 /** 16 * Disables the read-only mode.16 * Disables the read-only/locked mode. 17 17 */ 18 void un setReadOnly();18 void unlock(); 19 19 20 20 /** 21 * Determines if this is read-only (thus it cannot be modified).22 * @return {@code true} if this is read-only 21 * Determines if this is read-only/locked (thus it cannot be modified). 22 * @return {@code true} if this is read-only/locked 23 23 */ 24 boolean is ReadOnly();24 boolean isLocked(); 25 25 }
Note:
See TracChangeset
for help on using the changeset viewer.