de.cau.cs.kieler.core.util
Class Property<T>

java.lang.Object
  extended by de.cau.cs.kieler.core.util.Property<T>
Type Parameters:
T - type of the property

public class Property<T>
extends Object

A property that can be stored in a hash map.

Rating red

Constructor Summary
Property(String theid)
          Creates a property with given identifier and null as default value.
Property(String theid, T thedefaultValue)
          Creates a property with given identifier and default value.
 
Method Summary
 boolean equals(Object obj)
          
 T getDefault()
          Returns the default value of this property.
 int hashCode()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Property

public Property(String theid)
Creates a property with given identifier and null as default value.

Parameters:
theid - the identifier

Property

public Property(String theid,
                T thedefaultValue)
Creates a property with given identifier and default value.

Parameters:
theid - the identifier
thedefaultValue - the default value
Method Detail

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object

getDefault

public T getDefault()
Returns the default value of this property.

Returns:
the default value