source: josm/trunk/src/org/openstreetmap/josm/tools/Destroyable.java@ 11381

Last change on this file since 11381 was 10600, checked in by Don-vip, 8 years ago

see #11390 - sonar - squid:S1609 - Java 8: @FunctionalInterface annotation should be used to flag Single Abstract Method interfaces

  • Property svn:eol-style set to native
File size: 556 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.tools;
3
4/**
5 * Some objects like layers (when they are removed) or the whole map frame (when the last layer has
6 * been removed) have an definite set of actions to execute. This is the "destructor" interface called
7 * on those objects.
8 *
9 * @author immanuel.scholz
10 * @since 208 (creation)
11 * @since 10600 (functional interface)
12 */
13@FunctionalInterface
14public interface Destroyable {
15
16 /**
17 * Called when the object has been destroyed.
18 */
19 void destroy();
20}
Note: See TracBrowser for help on using the repository browser.