org.openstreetmap.josm.tools
Interface Property<ObjectType,PropertyType>


public interface Property<ObjectType,PropertyType>

Small interface to define a property with both read and write access.


Method Summary
 PropertyType get(ObjectType obj)
          Get the value of the property.
 void set(ObjectType obj, PropertyType value)
          Set the value of the property for the object.
 

Method Detail

get

PropertyType get(ObjectType obj)
Get the value of the property.

Parameters:
obj - the object, from that the property is derived
Returns:
the value of the property for the object obj

set

void set(ObjectType obj,
         PropertyType value)
Set the value of the property for the object.

Parameters:
obj - the object for that the property should be set
value - the value the property is set to


JOSM