Ignore:
Timestamp:
2016-11-16T17:07:03+01:00 (9 years ago)
Author:
bastiK
Message:

refactor GeoProperty implementation of RightAndLefthandTraffic to generic separate class DefaultGeoProperty (see #10387)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/tools/GeoPropertyIndex.java

    r11259 r11264  
    1919 */
    2020public class GeoPropertyIndex<T> {
    21 
    22     /**
    23      * A method to look up a property of the earth surface.
    24      * (User input for the index.)
    25      * @param <T> the property
    26      */
    27     public interface GeoProperty<T> {
    28         /**
    29          * Look up the property for a point.
    30          * @param ll the point coordinates
    31          * @return property value at that point. Must not be null.
    32          */
    33         T get(LatLon ll);
    34 
    35         /**
    36          * Look up the property for a coordinate rectangle.
    37          * @param box the rectangle
    38          * @return the property, if it is the same in the entire rectangle;
    39          * null otherwise
    40          */
    41         T get(BBox box);
    42     }
    4321
    4422    private final int maxLevel;
Note: See TracChangeset for help on using the changeset viewer.