PrefixMap< T > class

Utility class that extends HashMap that expects keys of type String.

Syntax

public class PrefixMap< T >

Remarks

Allows the caller to set a prefix that is prepended to the keys in the map when accessing the entries in the map using the set/getPrefixProperty methods.

This class simplifies access to properties with lengthy package qualifiers. For example, to access the property "com.sybase.security.TestProperty" you could use a regular properties object but the property name is very long. If you use PrefixProperties you could instantiate the PrefixProperties class and initialize properties, then call setPrefix("com.sybase.security"). Then you can access properties within the package using the method getPrefixProperty("TestProperty");