source: josm/trunk/src/org/openstreetmap/josm/tools/Property.java@ 13754

Last change on this file since 13754 was 8512, checked in by Don-vip, 9 years ago

checkstyle: redundant modifiers

  • Property svn:eol-style set to native
File size: 673 bytes
RevLine 
[3300]1// License: GPL. For details, see LICENSE file.
2package org.openstreetmap.josm.tools;
3
4/**
5 * Small interface to define a property with both read and write access.
[6223]6 * @param <O> Object type
7 * @param <P> Property type
[3300]8 */
[6223]9public interface Property<O, P> {
[7509]10
[3300]11 /**
12 * Get the value of the property.
13 * @param obj the object, from that the property is derived
14 * @return the value of the property for the object obj
15 */
[8512]16 P get(O obj);
[7509]17
[3300]18 /**
19 * Set the value of the property for the object.
20 * @param obj the object for that the property should be set
21 * @param value the value the property is set to
22 */
[8512]23 void set(O obj, P value);
[3300]24}
Note: See TracBrowser for help on using the repository browser.