source: josm/trunk/src/org/openstreetmap/josm/data/osm/KeyValueVisitor.java@ 13608

Last change on this file since 13608 was 13561, checked in by Don-vip, 6 years ago

extract KeyValueVisitor from AbstractPrimitive, support Tagged objects

  • Property svn:eol-style set to native
File size: 660 bytes
Line 
1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.data.osm;
3
4/**
5 * This is a visitor that can be used to loop over the keys/values of this primitive.
6 *
7 * @author Michael Zangl
8 * @since 8742
9 * @since 10600 (functional interface)
10 * @since 13561 (extracted from {@link AbstractPrimitive}, supports {@link Tagged} objects)
11 */
12@FunctionalInterface
13public interface KeyValueVisitor {
14
15 /**
16 * This method gets called for every tag received.
17 *
18 * @param primitive This primitive
19 * @param key The key
20 * @param value The value
21 */
22 void visitKeyValue(Tagged primitive, String key, String value);
23}
Note: See TracBrowser for help on using the repository browser.