Last change
on this file since 17862 was 17862, checked in by simon04, 3 years ago |
fix #17177 - Add support for Mapbox Vector Tile (patch by taylor.smock)
Signed-off-by: Taylor Smock <tsmock@…>
|
File size:
610 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.data.vector;
|
---|
3 |
|
---|
4 | /**
|
---|
5 | * An interface for objects that are part of a data layer
|
---|
6 | * @param <T> The type used to identify a layer, typically a string
|
---|
7 | */
|
---|
8 | public interface DataLayer<T> {
|
---|
9 | /**
|
---|
10 | * Get the layer
|
---|
11 | * @return The layer
|
---|
12 | */
|
---|
13 | T getLayer();
|
---|
14 |
|
---|
15 | /**
|
---|
16 | * Set the layer
|
---|
17 | * @param layer The layer to set
|
---|
18 | * @return {@code true} if the layer was set -- some objects may never change layers.
|
---|
19 | */
|
---|
20 | default boolean setLayer(T layer) {
|
---|
21 | return layer != null && layer.equals(getLayer());
|
---|
22 | }
|
---|
23 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.