Last change
on this file since 4043 was 3300, checked in by bastiK, 14 years ago |
see #4998 - Impossible to select nodes with filter
|
-
Property svn:eol-style
set to
native
|
File size:
691 bytes
|
Line | |
---|
1 | // License: GPL. For details, see LICENSE file.
|
---|
2 | package org.openstreetmap.josm.tools;
|
---|
3 |
|
---|
4 | /**
|
---|
5 | * Small interface to define a property with both read and write access.
|
---|
6 | */
|
---|
7 | public interface Property<ObjectType, PropertyType> {
|
---|
8 | /**
|
---|
9 | * Get the value of the property.
|
---|
10 | * @param obj the object, from that the property is derived
|
---|
11 | * @return the value of the property for the object obj
|
---|
12 | */
|
---|
13 | public PropertyType get(ObjectType obj);
|
---|
14 | /**
|
---|
15 | * Set the value of the property for the object.
|
---|
16 | * @param obj the object for that the property should be set
|
---|
17 | * @param value the value the property is set to
|
---|
18 | */
|
---|
19 | public void set(ObjectType obj, PropertyType value);
|
---|
20 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.