Last change
on this file since 10656 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
|
Rev | Line | |
---|
[6380] | 1 | // License: GPL. For details, see LICENSE file.
|
---|
[626] | 2 | package 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.
|
---|
[1169] | 8 | *
|
---|
[626] | 9 | * @author immanuel.scholz
|
---|
[10600] | 10 | * @since 208 (creation)
|
---|
| 11 | * @since 10600 (functional interface)
|
---|
[626] | 12 | */
|
---|
[10600] | 13 | @FunctionalInterface
|
---|
[626] | 14 | public interface Destroyable {
|
---|
| 15 |
|
---|
[1169] | 16 | /**
|
---|
| 17 | * Called when the object has been destroyed.
|
---|
| 18 | */
|
---|
[8512] | 19 | void destroy();
|
---|
[626] | 20 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.