source: josm/trunk/src/org/openstreetmap/josm/spi/preferences/DefaultPreferenceChangeEvent.java@ 13840

Last change on this file since 13840 was 12882, checked in by bastiK, 7 years ago

see #15229 - fix @since

File size: 825 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.spi.preferences;
3
4/**
5 * Default implementation of the {@link PreferenceChangeEvent} interface.
6 * @since 12881
7 */
8public class DefaultPreferenceChangeEvent implements PreferenceChangeEvent {
9
10 private final String key;
11 private final Setting<?> oldValue;
12 private final Setting<?> newValue;
13
14 public DefaultPreferenceChangeEvent(String key, Setting<?> oldValue, Setting<?> newValue) {
15 this.key = key;
16 this.oldValue = oldValue;
17 this.newValue = newValue;
18 }
19
20 @Override
21 public String getKey() {
22 return key;
23 }
24
25 @Override
26 public Setting<?> getOldValue() {
27 return oldValue;
28 }
29
30 @Override
31 public Setting<?> getNewValue() {
32 return newValue;
33 }
34
35}
Note: See TracBrowser for help on using the repository browser.