Changeset 10600 in josm for trunk/src/org
- Timestamp:
- 2016-07-23T03:04:37+02:00 (8 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 70 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/actions/ExpertToggleAction.java
r9611 r10600 19 19 public class ExpertToggleAction extends ToggleAction { 20 20 21 @FunctionalInterface 21 22 public interface ExpertModeChangeListener { 22 23 void expertChanged(boolean isExpert); -
trunk/src/org/openstreetmap/josm/actions/search/SearchAction.java
r10598 r10600 555 555 * @author Michael Zangl 556 556 * @since 10457 557 */ 557 * @since 10600 (functional interface) 558 */ 559 @FunctionalInterface 558 560 interface SearchReceiver { 559 561 /** -
trunk/src/org/openstreetmap/josm/actions/search/SearchCompiler.java
r10378 r10600 230 230 /** 231 231 * Classes implementing this interface can provide Match operators. 232 */ 232 * @since 10600 (functional interface) 233 */ 234 @FunctionalInterface 233 235 private interface MatchFactory { 234 236 Collection<String> getKeywords(); -
trunk/src/org/openstreetmap/josm/actions/upload/FixDataHook.java
r10378 r10600 60 60 /** 61 61 * Common set of commands for data fixing 62 */ 62 * @since 10600 (functional interface) 63 */ 64 @FunctionalInterface 63 65 public interface FixData { 64 66 /** -
trunk/src/org/openstreetmap/josm/actions/upload/UploadHook.java
r8931 r10600 4 4 import org.openstreetmap.josm.data.APIDataSet; 5 5 6 @FunctionalInterface 6 7 public interface UploadHook { 7 8 -
trunk/src/org/openstreetmap/josm/data/Preferences.java
r10580 r10600 181 181 /** 182 182 * Listener to preference change events. 183 */ 183 * @since 10600 (functional interface) 184 */ 185 @FunctionalInterface 184 186 public interface PreferenceChangedListener { 185 187 /** -
trunk/src/org/openstreetmap/josm/data/SelectionChangedListener.java
r8512 r10600 16 16 * 17 17 * @author imi 18 * @since 8 (creation) 19 * @since 10600 (functional interface) 18 20 */ 21 @FunctionalInterface 19 22 public interface SelectionChangedListener { 20 23 -
trunk/src/org/openstreetmap/josm/data/SystemOfMeasurement.java
r10292 r10600 26 26 * Interface to notify listeners of the change of the system of measurement. 27 27 * @since 8554 28 */ 28 * @since 10600 (functional interface) 29 */ 30 @FunctionalInterface 29 31 public interface SoMChangeListener { 30 32 /** -
trunk/src/org/openstreetmap/josm/data/cache/ICachedLoaderListener.java
r10134 r10600 5 5 * Cache loader listener. 6 6 * @since 8168 7 * @since 10600 (functional interface) 7 8 */ 9 @FunctionalInterface 8 10 public interface ICachedLoaderListener { 9 11 -
trunk/src/org/openstreetmap/josm/data/osm/AbstractPrimitive.java
r10583 r10600 31 31 * @author Michael Zangl 32 32 * @since 8742 33 */ 33 * @since 10600 (functional interface) 34 */ 35 @FunctionalInterface 34 36 public interface KeyValueVisitor { 35 37 -
trunk/src/org/openstreetmap/josm/data/osm/ChangesetCacheListener.java
r3083 r10600 2 2 package org.openstreetmap.josm.data.osm; 3 3 4 @FunctionalInterface 4 5 public interface ChangesetCacheListener { 5 6 -
trunk/src/org/openstreetmap/josm/data/osm/PrimitiveDeepCopy.java
r9059 r10600 18 18 public class PrimitiveDeepCopy { 19 19 20 @FunctionalInterface 20 21 public interface PasteBufferChangedListener { 21 22 void pasteBufferChanged(PrimitiveDeepCopy pasteBuffer); -
trunk/src/org/openstreetmap/josm/data/osm/event/DataSetListenerAdapter.java
r6084 r10600 10 10 public class DataSetListenerAdapter implements DataSetListener { 11 11 12 @FunctionalInterface 12 13 public interface Listener { 13 14 void processDatasetEvent(AbstractDatasetChangedEvent event); -
trunk/src/org/openstreetmap/josm/data/osm/history/History.java
r9067 r10600 21 21 public class History { 22 22 23 @FunctionalInterface 23 24 private interface FilterPredicate { 24 25 boolean matches(HistoryOsmPrimitive primitive); -
trunk/src/org/openstreetmap/josm/data/osm/visitor/paint/Rendering.java
r6069 r10600 7 7 /** 8 8 * <p>An object which can render data provided by a {@link DataSet}.</p> 9 * @since 4087 (creation) 10 * @since 10600 (functional interface) 9 11 */ 12 @FunctionalInterface 10 13 public interface Rendering { 11 14 /** -
trunk/src/org/openstreetmap/josm/data/projection/ProjectionChangeListener.java
r4126 r10600 2 2 package org.openstreetmap.josm.data.projection; 3 3 4 @FunctionalInterface 4 5 public interface ProjectionChangeListener { 5 6 void projectionChanged(Projection oldValue, Projection newValue); -
trunk/src/org/openstreetmap/josm/data/projection/proj/ICentralMeridianProvider.java
r9532 r10600 10 10 * 11 11 * @see Proj 12 * @since 9532 (creation) 13 * @since 10600 (functional interface) 12 14 */ 15 @FunctionalInterface 13 16 public interface ICentralMeridianProvider { 14 17 /** -
trunk/src/org/openstreetmap/josm/data/projection/proj/IScaleFactorProvider.java
r9565 r10600 10 10 * 11 11 * @see Proj 12 * @since 9565 (creation) 13 * @since 10600 (functional interface) 12 14 */ 15 @FunctionalInterface 13 16 public interface IScaleFactorProvider { 14 17 /** -
trunk/src/org/openstreetmap/josm/data/projection/proj/ProjFactory.java
r7937 r10600 4 4 /** 5 5 * Factory class that provides a Proj instance. 6 * @since 5227 (creation) 7 * @since 10600 (functional interface) 6 8 */ 9 @FunctionalInterface 7 10 public interface ProjFactory { 11 /** 12 * Creates a Proj instance. 13 * @return a Proj instance 14 */ 8 15 Proj createInstance(); 9 16 } -
trunk/src/org/openstreetmap/josm/data/validation/tests/SimilarNamedWays.java
r10001 r10600 214 214 } 215 215 216 @FunctionalInterface 216 217 public interface NormalizeRule { 217 218 -
trunk/src/org/openstreetmap/josm/gui/FileDrop.java
r10212 r10600 437 437 * </code> 438 438 */ 439 @FunctionalInterface 439 440 public interface Listener { 440 441 … … 651 652 * @author Robert Harder 652 653 */ 654 @FunctionalInterface 653 655 public interface Fetcher { 654 656 /** -
trunk/src/org/openstreetmap/josm/gui/MapFrame.java
r10432 r10600 719 719 /** 720 720 * Interface to notify listeners of the change of the mapMode. 721 */ 721 * @since 10600 (functional interface) 722 */ 723 @FunctionalInterface 722 724 public interface MapModeChangeListener { 723 725 /** -
trunk/src/org/openstreetmap/josm/gui/MapFrameListener.java
r8512 r10600 5 5 * Listener notified of MapFrame changes. 6 6 * @since 5957 7 * @since 10600 (functional interface) 7 8 */ 9 @FunctionalInterface 8 10 public interface MapFrameListener { 9 11 -
trunk/src/org/openstreetmap/josm/gui/MapView.java
r10598 r10600 131 131 */ 132 132 @Deprecated 133 @FunctionalInterface 133 134 public interface EditLayerChangeListener { 134 135 … … 149 150 private boolean ignoreRepaint; 150 151 @Override 151 public void paintabl Invalidated(PaintableInvalidationEvent event) {152 public void paintableInvalidated(PaintableInvalidationEvent event) { 152 153 ignoreRepaint = true; 153 154 repaint(); … … 1318 1319 * This is the only safe method to find changes to the map view, since many components call MapView.repaint() directly. 1319 1320 * @author Michael Zangl 1320 */ 1321 * @since 10600 (functional interface) 1322 */ 1323 @FunctionalInterface 1321 1324 public interface RepaintListener { 1322 1325 /** -
trunk/src/org/openstreetmap/josm/gui/NavigatableComponent.java
r10486 r10600 74 74 /** 75 75 * Interface to notify listeners of the change of the zoom area. 76 */ 76 * @since 10600 (functional interface) 77 */ 78 @FunctionalInterface 77 79 public interface ZoomChangeListener { 78 80 /** -
trunk/src/org/openstreetmap/josm/gui/bbox/SlippyMapBBoxChooser.java
r10549 r10600 45 45 public class SlippyMapBBoxChooser extends JMapViewer implements BBoxChooser { 46 46 47 @FunctionalInterface 47 48 public interface TileSourceProvider { 48 49 List<TileSource> getTileSources(); -
trunk/src/org/openstreetmap/josm/gui/dialogs/CommandStackDialog.java
r10453 r10600 190 190 191 191 /** 192 * Interface to provide a callback for enabled state update.193 */194 protected interface IEnabledStateUpdating {195 void updateEnabledState();196 }197 198 /**199 192 * Wires updater for enabled state to the events. Also updates dialog title if needed. 200 193 * @param updater updater -
trunk/src/org/openstreetmap/josm/gui/dialogs/IEnabledStateUpdating.java
r10583 r10600 1 1 // License: GPL. For details, see LICENSE file. 2 package org.openstreetmap.josm.gui.dialogs .layer;2 package org.openstreetmap.josm.gui.dialogs; 3 3 4 4 /** 5 5 * To be implemented by actions for which their enabled state depends on another model. 6 * @since 10600 (refactoring to new package, functional interface) 6 7 */ 8 @FunctionalInterface 7 9 public interface IEnabledStateUpdating { 8 10 -
trunk/src/org/openstreetmap/josm/gui/dialogs/LayerListDialog.java
r10467 r10600 52 52 import org.openstreetmap.josm.gui.dialogs.layer.DeleteLayerAction; 53 53 import org.openstreetmap.josm.gui.dialogs.layer.DuplicateAction; 54 import org.openstreetmap.josm.gui.dialogs.layer.IEnabledStateUpdating;55 54 import org.openstreetmap.josm.gui.dialogs.layer.LayerVisibilityAction; 56 55 import org.openstreetmap.josm.gui.dialogs.layer.MergeAction; -
trunk/src/org/openstreetmap/josm/gui/dialogs/changeset/ChangesetAware.java
r9665 r10600 7 7 * Super interface of changeset-aware components. 8 8 * @since 9493 9 * @since 10600 (functional interface) 9 10 */ 11 @FunctionalInterface 10 12 public interface ChangesetAware { 11 13 -
trunk/src/org/openstreetmap/josm/gui/dialogs/layer/ActivateLayerAction.java
r10428 r10600 10 10 import javax.swing.AbstractAction; 11 11 12 import org.openstreetmap.josm.gui.dialogs.IEnabledStateUpdating; 12 13 import org.openstreetmap.josm.gui.dialogs.LayerListDialog; 13 14 import org.openstreetmap.josm.gui.dialogs.LayerListDialog.LayerListModel; -
trunk/src/org/openstreetmap/josm/gui/dialogs/layer/DeleteLayerAction.java
r10436 r10600 12 12 13 13 import org.openstreetmap.josm.Main; 14 import org.openstreetmap.josm.gui.dialogs.IEnabledStateUpdating; 14 15 import org.openstreetmap.josm.gui.dialogs.LayerListDialog.LayerListModel; 15 16 import org.openstreetmap.josm.gui.help.HelpUtil; -
trunk/src/org/openstreetmap/josm/gui/dialogs/layer/DuplicateAction.java
r10436 r10600 12 12 import org.openstreetmap.josm.Main; 13 13 import org.openstreetmap.josm.data.osm.DataSet; 14 import org.openstreetmap.josm.gui.dialogs.IEnabledStateUpdating; 14 15 import org.openstreetmap.josm.gui.dialogs.LayerListDialog.LayerListModel; 15 16 import org.openstreetmap.josm.gui.help.HelpUtil; -
trunk/src/org/openstreetmap/josm/gui/dialogs/layer/LayerVisibilityAction.java
r10547 r10600 25 25 import org.openstreetmap.josm.Main; 26 26 import org.openstreetmap.josm.gui.SideButton; 27 import org.openstreetmap.josm.gui.dialogs.IEnabledStateUpdating; 27 28 import org.openstreetmap.josm.gui.dialogs.LayerListDialog.LayerListModel; 28 29 import org.openstreetmap.josm.gui.layer.ImageryLayer; -
trunk/src/org/openstreetmap/josm/gui/dialogs/layer/MergeAction.java
r10428 r10600 12 12 13 13 import org.openstreetmap.josm.Main; 14 import org.openstreetmap.josm.gui.dialogs.IEnabledStateUpdating; 14 15 import org.openstreetmap.josm.gui.dialogs.LayerListDialog.LayerListModel; 15 16 import org.openstreetmap.josm.gui.help.HelpUtil; -
trunk/src/org/openstreetmap/josm/gui/dialogs/layer/MoveDownAction.java
r10428 r10600 8 8 import javax.swing.AbstractAction; 9 9 10 import org.openstreetmap.josm.gui.dialogs.IEnabledStateUpdating; 10 11 import org.openstreetmap.josm.gui.dialogs.LayerListDialog.LayerListModel; 11 12 import org.openstreetmap.josm.tools.ImageProvider; -
trunk/src/org/openstreetmap/josm/gui/dialogs/layer/MoveUpAction.java
r10428 r10600 8 8 import javax.swing.AbstractAction; 9 9 10 import org.openstreetmap.josm.gui.dialogs.IEnabledStateUpdating; 10 11 import org.openstreetmap.josm.gui.dialogs.LayerListDialog.LayerListModel; 11 12 import org.openstreetmap.josm.tools.ImageProvider; -
trunk/src/org/openstreetmap/josm/gui/dialogs/layer/ShowHideLayerAction.java
r10144 r10600 13 13 import javax.swing.JMenuItem; 14 14 15 import org.openstreetmap.josm.gui.dialogs.IEnabledStateUpdating; 15 16 import org.openstreetmap.josm.gui.dialogs.LayerListDialog; 16 17 import org.openstreetmap.josm.gui.dialogs.LayerListDialog.LayerListModel; -
trunk/src/org/openstreetmap/josm/gui/dialogs/relation/IMemberModelListener.java
r3083 r10600 2 2 package org.openstreetmap.josm.gui.dialogs.relation; 3 3 4 @FunctionalInterface 4 5 public interface IMemberModelListener { 5 6 void makeMemberVisible(int index); -
trunk/src/org/openstreetmap/josm/gui/help/Helpful.java
r10137 r10600 5 5 * Anything on which we can provide help. 6 6 * @since 2252 7 * @since 10600 (functional interface) 7 8 */ 9 @FunctionalInterface 8 10 public interface Helpful { 9 11 -
trunk/src/org/openstreetmap/josm/gui/layer/AbstractMapViewPaintable.java
r10461 r10600 91 91 public void invalidate() { 92 92 for (PaintableInvalidationListener l : invalidationListeners) { 93 l.paintabl Invalidated(new PaintableInvalidationEvent(this));93 l.paintableInvalidated(new PaintableInvalidationEvent(this)); 94 94 } 95 95 } -
trunk/src/org/openstreetmap/josm/gui/layer/ImageProcessor.java
r8632 r10600 10 10 * 11 11 * @author Nipel-Crumple 12 * @since 8625 (creation) 13 * @since 10600 (functional interface) 12 14 */ 15 @FunctionalInterface 13 16 public interface ImageProcessor { 14 17 -
trunk/src/org/openstreetmap/josm/gui/layer/Layer.java
r10588 r10600 70 70 /** 71 71 * Action related to several layers. 72 */ 72 * @since 10600 (functional interface) 73 */ 74 @FunctionalInterface 73 75 public interface MultiLayerAction { 74 76 -
trunk/src/org/openstreetmap/josm/gui/layer/MainLayerManager.java
r10508 r10600 24 24 * This listener listens to changes of the active or the edit layer. 25 25 * @author Michael Zangl 26 * 27 */ 26 * @since 10600 (functional interface) 27 */ 28 @FunctionalInterface 28 29 public interface ActiveLayerChangeListener { 29 30 /** -
trunk/src/org/openstreetmap/josm/gui/layer/MapViewPaintable.java
r10461 r10600 13 13 * <p> 14 14 * That class allows you to listen to paintable change events. Those methods may be moved here some time in the future. 15 * @since 608 (creation) 16 * @since 10600 (functional interface) 15 17 */ 18 @FunctionalInterface 16 19 public interface MapViewPaintable { 17 20 … … 51 54 * This is a listener that listens to {@link PaintableInvalidationEvent}s 52 55 * @author Michael Zangl 56 * @since 10600 (functional interface) 53 57 */ 58 @FunctionalInterface 54 59 interface PaintableInvalidationListener { 55 60 /** 56 61 * Called whenever a {@link PaintableInvalidationEvent} is fired. This might be called from any thread. 57 62 * @param event The event 63 * @ince 10600 (renamed) 58 64 */ 59 void paintabl Invalidated(PaintableInvalidationEvent event);65 void paintableInvalidated(PaintableInvalidationEvent event); 60 66 } 61 67 -
trunk/src/org/openstreetmap/josm/gui/layer/NativeScaleLayer.java
r10378 r10600 11 11 * Represents a layer that has native scales. 12 12 * @author András Kolesár 13 * @since 9818 (creation) 14 * @since 10600 (functional interface) 13 15 */ 16 @FunctionalInterface 14 17 public interface NativeScaleLayer { 15 18 -
trunk/src/org/openstreetmap/josm/gui/layer/OsmDataLayer.java
r10467 r10600 239 239 } 240 240 241 @FunctionalInterface 241 242 public interface CommandQueueListener { 242 243 void commandChanged(int queueSize, int redoSize); … … 245 246 /** 246 247 * Listener called when a state of this layer has changed. 247 */ 248 * @since 10600 (functional interface) 249 */ 250 @FunctionalInterface 248 251 public interface LayerStateChangeListener { 249 252 /** -
trunk/src/org/openstreetmap/josm/gui/layer/imagery/ImageryFilterSettings.java
r10598 r10600 110 110 * A listener that listens to filter changes 111 111 * @author Michael Zangl 112 * @since 10600 (functional interface) 112 113 */ 114 @FunctionalInterface 113 115 public interface FilterChangeListener { 114 116 /** -
trunk/src/org/openstreetmap/josm/gui/layer/imagery/TileSourceDisplaySettings.java
r10571 r10600 317 317 * A listener that listens to changes to the {@link TileSourceDisplaySettings} object. 318 318 * @author Michael Zangl 319 */ 319 * @since 10600 (functional interface) 320 */ 321 @FunctionalInterface 320 322 public interface DisplaySettingsChangeListener { 321 323 /** -
trunk/src/org/openstreetmap/josm/gui/layer/markerlayer/MarkerProducers.java
r9239 r10600 14 14 * 15 15 * @author Frederik Ramm 16 * @since 200 (creation) 17 * @since 10600 (functional interface) 16 18 */ 19 @FunctionalInterface 17 20 public interface MarkerProducers { 18 21 /** -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Expression.java
r5705 r10600 9 9 * Can be evaluated in a certain {@link Environment}. Usually takes 10 10 * parameters, that are also Expressions and have to be evaluated first. 11 * @since 3848 (creation) 12 * @since 10600 (functional interface) 11 13 */ 14 @FunctionalInterface 12 15 public interface Expression { 13 16 /** -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Instruction.java
r10308 r10600 11 11 import org.openstreetmap.josm.gui.mappaint.StyleKeys; 12 12 13 @FunctionalInterface 13 14 public interface Instruction extends StyleKeys { 14 15 -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/Subpart.java
r8741 r10600 7 7 /** 8 8 * A subpart identifies different rendering layers (<code>::subpart</code> syntax). 9 * @since 8086 (creation) 10 * @since 10600 (functional interface) 9 11 */ 12 @FunctionalInterface 10 13 public interface Subpart { 11 14 String getId(Environment env); -
trunk/src/org/openstreetmap/josm/gui/mappaint/styleelement/BoxTextElement.java
r10375 r10600 34 34 /** 35 35 * Something that provides us with a {@link BoxProviderResult} 36 */ 36 * @since 10600 (functional interface) 37 */ 38 @FunctionalInterface 37 39 public interface BoxProvider { 38 40 /** -
trunk/src/org/openstreetmap/josm/gui/preferences/PreferenceSettingFactory.java
r3083 r10600 2 2 package org.openstreetmap.josm.gui.preferences; 3 3 4 @FunctionalInterface 4 5 public interface PreferenceSettingFactory { 5 6 6 7 PreferenceSetting createPreferenceSetting(); 7 8 8 } -
trunk/src/org/openstreetmap/josm/gui/preferences/PreferenceTabbedPane.java
r10428 r10600 182 182 * Allows PreferenceSettings to do validation of entered values when ok was pressed. 183 183 * If data is invalid then event can return false to cancel closing of preferences dialog. 184 * 185 */ 184 * @since 10600 (functional interface) 185 */ 186 @FunctionalInterface 186 187 public interface ValidationListener { 187 188 /** … … 302 303 } 303 304 305 @FunctionalInterface 304 306 private interface TabIdentifier { 305 307 boolean identify(TabPreferenceSetting tps, Object param); -
trunk/src/org/openstreetmap/josm/gui/preferences/SourceProvider.java
r8512 r10600 4 4 import java.util.Collection; 5 5 6 @FunctionalInterface 6 7 public interface SourceProvider { 7 8 -
trunk/src/org/openstreetmap/josm/gui/preferences/imagery/AddImageryPanel.java
r8846 r10600 35 35 /** 36 36 * A listener notified when the validation status of this panel change. 37 * @since 10600 (functional interface) 37 38 */ 39 @FunctionalInterface 38 40 public interface ContentValidationListener { 39 41 /** -
trunk/src/org/openstreetmap/josm/gui/preferences/server/ProxyPreferenceListener.java
r8512 r10600 5 5 * Listener called when proxy settings are updated. 6 6 * @since 6525 7 * @since 10600 (functional interface) 7 8 */ 9 @FunctionalInterface 8 10 public interface ProxyPreferenceListener { 9 11 -
trunk/src/org/openstreetmap/josm/gui/progress/ProgressMonitor.java
r8929 r10600 32 32 public interface ProgressMonitor { 33 33 34 @FunctionalInterface 34 35 public interface CancelListener { 35 36 void operationCanceled(); -
trunk/src/org/openstreetmap/josm/gui/util/ModifierListener.java
r8512 r10600 5 5 * Listener called when pressed modifier keys change is detected 6 6 * @since 7217 7 * @since 10600 (functional interface) 7 8 */ 9 @FunctionalInterface 8 10 public interface ModifierListener { 9 11 void modifiersChanged(int modifiers); -
trunk/src/org/openstreetmap/josm/gui/widgets/HistoryChangedListener.java
r8512 r10600 4 4 import java.util.List; 5 5 6 @FunctionalInterface 6 7 public interface HistoryChangedListener { 7 8 void historyChanged(List<String> history); -
trunk/src/org/openstreetmap/josm/gui/widgets/MultiSplitPane.java
r10378 r10600 144 144 * @see #setDividerPainter 145 145 */ 146 @FunctionalInterface 146 147 public interface DividerPainter { 147 148 /** -
trunk/src/org/openstreetmap/josm/io/OsmServerReadPostprocessor.java
r8512 r10600 5 5 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 6 6 7 @FunctionalInterface 7 8 public interface OsmServerReadPostprocessor { 8 9 -
trunk/src/org/openstreetmap/josm/io/OsmServerWritePostprocessor.java
r8512 r10600 7 7 import org.openstreetmap.josm.gui.progress.ProgressMonitor; 8 8 9 @FunctionalInterface 9 10 public interface OsmServerWritePostprocessor { 10 11 -
trunk/src/org/openstreetmap/josm/io/auth/CredentialsManager.java
r9078 r10600 42 42 private static CredentialsAgentFactory agentFactory; 43 43 44 @FunctionalInterface 44 45 public interface CredentialsAgentFactory { 45 46 CredentialsAgent getCredentialsAgent(); -
trunk/src/org/openstreetmap/josm/io/session/SessionLayerImporter.java
r9455 r10600 13 13 * Session layer importer. 14 14 * @since 4668 15 * @since 10600 (functional interface) 15 16 */ 17 @FunctionalInterface 16 18 public interface SessionLayerImporter { 17 19 -
trunk/src/org/openstreetmap/josm/tools/Destroyable.java
r8512 r10600 8 8 * 9 9 * @author immanuel.scholz 10 * @since 208 (creation) 11 * @since 10600 (functional interface) 10 12 */ 13 @FunctionalInterface 11 14 public interface Destroyable { 12 15 -
trunk/src/org/openstreetmap/josm/tools/Diff.java
r10378 r10600 306 306 /** 307 307 * Script builder. 308 */ 308 * @since 10600 (functional interface) 309 */ 310 @FunctionalInterface 309 311 public interface ScriptBuilder { 310 312 /** … … 315 317 * @param len1 number of lines in 2nd file 316 318 * @return a linked list of changes - or null 319 * @since 10600 (renamed) 317 320 */ 318 Change build _script(321 Change buildScript( 319 322 boolean[] changed0, int len0, 320 323 boolean[] changed1, int len1 … … 322 325 } 323 326 324 /** Scan the tables of which lines are inserted and deleted,325 producing an edit script in reverse order. */326 327 /** 328 * Scan the tables of which lines are inserted and deleted, producing an edit script in reverse order. 329 */ 327 330 static class ReverseScript implements ScriptBuilder { 328 331 @Override 329 public Change build _script(332 public Change buildScript( 330 333 final boolean[] changed0, int len0, 331 334 final boolean[] changed1, int len1) { … … 360 363 producing an edit script in forward order. */ 361 364 @Override 362 public Change build _script(365 public Change buildScript( 363 366 final boolean[] changed0, int len0, 364 367 final boolean[] changed1, int len1) { … … 438 441 439 442 // Get the results of comparison in the form of a chain of `struct change's -- an edit script. 440 return bld.build _script(443 return bld.buildScript( 441 444 filevec[0].changedFlag, 442 445 filevec[0].bufferedLines, -
trunk/src/org/openstreetmap/josm/tools/ImageProvider.java
r10580 r10600 311 311 /** 312 312 * Callback interface for asynchronous image loading. 313 */ 313 * @since 10600 (functional interface) 314 */ 315 @FunctionalInterface 314 316 public interface ImageCallback { 315 317 /** … … 323 325 * Callback interface for asynchronous image loading (with delayed scaling possibility). 324 326 * @since 7693 325 */ 327 * @since 10600 (functional interface) 328 */ 329 @FunctionalInterface 326 330 public interface ImageResourceCallback { 327 331 /** -
trunk/src/org/openstreetmap/josm/tools/Utils.java
r10582 r10600 809 809 */ 810 810 @Deprecated 811 @FunctionalInterface 811 812 public interface Function<A, B> { 812 813
Note:
See TracChangeset
for help on using the changeset viewer.