UserProperties

Inheritance: java.lang.Object, java.util.Dictionary, java.util.Hashtable, java.util.Properties

public class UserProperties extends Properties

Special property class which allows typed properties to be set and returned. It also allows the hookup of two default property objects to be searched if this property object does not contain the property.

Constructors

ConstructorDescription
UserProperties()Initializes an empty instance of UserProperties class.
UserProperties(Properties defaults)Initializes an of UserProperties class with default values.
UserProperties(Properties defaults, Properties altDefaults)Constructs UserProperties with a defaults and altDefaults table, which are searched in that order.

Methods

MethodDescription
clear()
clone()
compute(K arg0, BiFunction<? super K,? super V,? extends V> arg1)
compute(Object arg0, BiFunction arg1)
computeIfAbsent(K arg0, Function<? super K,? extends V> arg1)
computeIfAbsent(Object arg0, Function arg1)
computeIfPresent(K arg0, BiFunction<? super K,? super V,? extends V> arg1)
computeIfPresent(Object arg0, BiFunction arg1)
contains(Object arg0)
containsKey(Object arg0)
containsValue(Object arg0)
elements()
entrySet()
equals(Object arg0)
forEach(BiConsumer<? super K,? super V> arg0)
forEach(BiConsumer<? super Object,? super Object> arg0)
get(Object arg0)
getClass()
getOrDefault(Object arg0, V arg1)
getOrDefault(Object arg0, Object arg1)
getProperty(String key)Gets string property value.
getProperty(String key, String def)Gets string property value.
getPropertyColor(String key)Gets color property value.
getPropertyColor(String key, Color def)Gets color property value.
getPropertyDimension(String key)Gets dimension property value.
getPropertyDimension(String key, Dimension def)Gets dimension property value.
getPropertyDouble(String key)Gets double property value.
getPropertyDouble(String key, double def)Gets double property value.
getPropertyFloat(String key)Gets float property value.
getPropertyFloat(String key, float def)Gets float property value.
getPropertyInsets(String key)Gets insets property value.
getPropertyInsets(String key, Insets def)Gets insets property value.
getPropertyInt(String key)Gets integer property value.
getPropertyInt(String key, int def)Gets integer property value.
getPropertyMatrix(String key)Gets float property value.
getPropertyMatrix(String key, AffineTransform def)Gets float property value.
getPropertyRectangle(String key)Gets rectangle property value.
getPropertyRectangle(String key, Rectangle def)Gets rectangle property value.
getPropertyStringArray(String key)Gets string array property value.
getPropertyStringArray(String key, String[] def)Gets string array property value.
hashCode()
isEmpty()
isProperty(String key)Gets boolean property value.
isProperty(String key, boolean def)Gets boolean property value.
keySet()
keys()
list(PrintStream arg0)
list(PrintWriter arg0)
load(InputStream arg0)
load(Reader arg0)
loadFromXML(InputStream arg0)
merge(K arg0, V arg1, BiFunction<? super V,? super V,? extends V> arg2)
merge(Object arg0, Object arg1, BiFunction arg2)
notify()
notifyAll()
printProperties()Prints all set properties.
propertyNames()Returns properties names.
put(K arg0, V arg1)
put(Object arg0, Object arg1)
putAll(Map<? extends K,? extends V> arg0)
putAll(Map arg0)
putIfAbsent(K arg0, V arg1)
putIfAbsent(Object arg0, Object arg1)
remove(Object arg0)
remove(Object arg0, Object arg1)
replace(K arg0, V arg1)
replace(K arg0, V arg1, V arg2)
replace(Object arg0, Object arg1)
replace(Object arg0, Object arg1, Object arg2)
replaceAll(BiFunction<? super K,? super V,? extends V> arg0)
replaceAll(BiFunction arg0)
save(OutputStream arg0, String arg1)
setProperties(Properties properties)Copies properties, including its defaults into this UserProperties
setProperty(String key, boolean value)Sets boolean property value.
setProperty(String key, double value)Sets double property value.
setProperty(String key, float value)Sets float property value.
setProperty(String key, int value)Sets integer property value.
setProperty(String key, Color value)Sets color property value.
setProperty(String key, Dimension value)Sets dimension property value.
setProperty(String key, Insets value)Sets insets property value.
setProperty(String key, Rectangle value)Sets rectangle property value.
setProperty(String key, AffineTransform value)Sets matrix property value.
setProperty(String key, String value)Sets string property value.
setProperty(String key, String[] value)Sets string array property value.
setProperty(Properties properties, String key, boolean value)Sets boolean property value in specified properties table.
setProperty(Properties properties, String key, double value)Sets double property value in specified properties table.
setProperty(Properties properties, String key, float value)Sets float property value in specified properties table.
setProperty(Properties properties, String key, int value)Sets integer property value in specified properties table.
setProperty(Properties properties, String key, Color value)Sets color property value in specified properties table.
setProperty(Properties properties, String key, Dimension value)Sets dimension property value in specified properties table.
setProperty(Properties properties, String key, Insets value)Sets insets property value in specified properties table.
setProperty(Properties properties, String key, Rectangle value)Sets rectangle property value in specified properties table.
setProperty(Properties properties, String key, AffineTransform value)Sets matrix property value in specified properties table.
setProperty(Properties properties, String key, String[] value)Sets string array property value in specified properties table.
size()
store(OutputStream arg0, String arg1)
store(Writer arg0, String arg1)
storeToXML(OutputStream arg0, String arg1)
storeToXML(OutputStream arg0, String arg1, String arg2)
storeToXML(OutputStream arg0, String arg1, Charset arg2)
stringPropertyNames()
toString()
values()
wait()
wait(long arg0)
wait(long arg0, int arg1)

UserProperties()

public UserProperties()

Initializes an empty instance of UserProperties class.

UserProperties(Properties defaults)

public UserProperties(Properties defaults)

Initializes an of UserProperties class with default values.

Parameters:

ParameterTypeDescription
defaultsjava.util.PropertiesDefault properties values.

UserProperties(Properties defaults, Properties altDefaults)

public UserProperties(Properties defaults, Properties altDefaults)

Constructs UserProperties with a defaults and altDefaults table, which are searched in that order.

Parameters:

ParameterTypeDescription
defaultsjava.util.PropertiesDefault properties.
altDefaultsjava.util.PropertiesAlternative default properties.

clear()

public synchronized void clear()

clone()

public synchronized Object clone()

Returns: java.lang.Object

compute(K arg0, BiFunction<? super K,? super V,? extends V> arg1)

public synchronized V compute(K arg0, BiFunction<? super K,? super V,? extends V> arg1)

Parameters:

ParameterTypeDescription
arg0K
arg1java.util.function.BiFunction<? super K,? super V,? extends V>

Returns: V

compute(Object arg0, BiFunction arg1)

public synchronized Object compute(Object arg0, BiFunction<? super Object,? super Object,?> arg1)

Parameters:

ParameterTypeDescription
arg0java.lang.Object
arg1java.util.function.BiFunction

Returns: java.lang.Object

computeIfAbsent(K arg0, Function<? super K,? extends V> arg1)

public synchronized V computeIfAbsent(K arg0, Function<? super K,? extends V> arg1)

Parameters:

ParameterTypeDescription
arg0K
arg1java.util.function.Function<? super K,? extends V>

Returns: V

computeIfAbsent(Object arg0, Function arg1)

public synchronized Object computeIfAbsent(Object arg0, Function<? super Object,?> arg1)

Parameters:

ParameterTypeDescription
arg0java.lang.Object
arg1java.util.function.Function

Returns: java.lang.Object

computeIfPresent(K arg0, BiFunction<? super K,? super V,? extends V> arg1)

public synchronized V computeIfPresent(K arg0, BiFunction<? super K,? super V,? extends V> arg1)

Parameters:

ParameterTypeDescription
arg0K
arg1java.util.function.BiFunction<? super K,? super V,? extends V>

Returns: V

computeIfPresent(Object arg0, BiFunction arg1)

public synchronized Object computeIfPresent(Object arg0, BiFunction<? super Object,? super Object,?> arg1)

Parameters:

ParameterTypeDescription
arg0java.lang.Object
arg1java.util.function.BiFunction

Returns: java.lang.Object

contains(Object arg0)

public boolean contains(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

containsKey(Object arg0)

public boolean containsKey(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

containsValue(Object arg0)

public boolean containsValue(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

elements()

public Enumeration<Object> elements()

Returns: java.util.Enumeration<java.lang.Object>

entrySet()

public Set<Map.Entry<Object,Object>> entrySet()

Returns: java.util.Set<java.util.Map.Entry<java.lang.Object,java.lang.Object»

equals(Object arg0)

public synchronized boolean equals(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: boolean

forEach(BiConsumer<? super K,? super V> arg0)

public synchronized void forEach(BiConsumer<? super K,? super V> arg0)

Parameters:

ParameterTypeDescription
arg0java.util.function.BiConsumer<? super K,? super V>

forEach(BiConsumer<? super Object,? super Object> arg0)

public synchronized void forEach(BiConsumer<? super Object,? super Object> arg0)

Parameters:

ParameterTypeDescription
arg0java.util.function.BiConsumer<? super java.lang.Object,? super java.lang.Object>

get(Object arg0)

public Object get(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: java.lang.Object

getClass()

public final native Class<?> getClass()

Returns: java.lang.Class

getOrDefault(Object arg0, V arg1)

public synchronized V getOrDefault(Object arg0, V arg1)

Parameters:

ParameterTypeDescription
arg0java.lang.Object
arg1V

Returns: V

getOrDefault(Object arg0, Object arg1)

public Object getOrDefault(Object arg0, Object arg1)

Parameters:

ParameterTypeDescription
arg0java.lang.Object
arg1java.lang.Object

Returns: java.lang.Object

getProperty(String key)

public String getProperty(String key)

Gets string property value.

Parameters:

ParameterTypeDescription
keyjava.lang.StringThe name of property.

Returns: java.lang.String - Property value.

getProperty(String key, String def)

public String getProperty(String key, String def)

Gets string property value. If requested property is absent, returns provided default value.

Parameters:

ParameterTypeDescription
keyjava.lang.StringThe name of property.
defjava.lang.StringDefault value of property.

Returns: java.lang.String - Property value.

getPropertyColor(String key)

public Color getPropertyColor(String key)

Gets color property value.

Parameters:

ParameterTypeDescription
keyjava.lang.StringThe name of property.

Returns: java.awt.Color - Property value.

getPropertyColor(String key, Color def)

public Color getPropertyColor(String key, Color def)

Gets color property value. If requested property is absent, returns provided default value.

Parameters:

ParameterTypeDescription
keyjava.lang.StringThe name of property.
defjava.awt.ColorDefault value of property.

Returns: java.awt.Color - Property value.

getPropertyDimension(String key)

public Dimension getPropertyDimension(String key)

Gets dimension property value.

Parameters:

ParameterTypeDescription
keyjava.lang.StringThe name of property.

Returns: java.awt.Dimension - Property value.

getPropertyDimension(String key, Dimension def)

public Dimension getPropertyDimension(String key, Dimension def)

Gets dimension property value. If requested property is absent, returns provided default value.

Parameters:

ParameterTypeDescription
keyjava.lang.StringThe name of property.
defjava.awt.DimensionDefault value of property.

Returns: java.awt.Dimension - Property value.

getPropertyDouble(String key)

public double getPropertyDouble(String key)

Gets double property value.

Parameters:

ParameterTypeDescription
keyjava.lang.StringThe name of property.

Returns: double - Property value.

getPropertyDouble(String key, double def)

public double getPropertyDouble(String key, double def)

Gets double property value. If requested property is absent, returns provided default value.

Parameters:

ParameterTypeDescription
keyjava.lang.StringThe name of property.
defdoubleDefault value of property.

Returns: double - Property value.

getPropertyFloat(String key)

public float getPropertyFloat(String key)

Gets float property value.

Parameters:

ParameterTypeDescription
keyjava.lang.StringThe name of property.

Returns: float - Property value.

getPropertyFloat(String key, float def)

public float getPropertyFloat(String key, float def)

Gets float property value. If requested property is absent, returns provided default value.

Parameters:

ParameterTypeDescription
keyjava.lang.StringThe name of property.
deffloatDefault value of property.

Returns: float - Property value.

getPropertyInsets(String key)

public Insets getPropertyInsets(String key)

Gets insets property value.

Parameters:

ParameterTypeDescription
keyjava.lang.StringThe name of property.

Returns: java.awt.Insets - Property value.

getPropertyInsets(String key, Insets def)

public Insets getPropertyInsets(String key, Insets def)

Gets insets property value. If requested property is absent, returns provided default value.

Parameters:

ParameterTypeDescription
keyjava.lang.StringThe name of property.
defjava.awt.InsetsDefault value of property.

Returns: java.awt.Insets - Property value.

getPropertyInt(String key)

public int getPropertyInt(String key)

Gets integer property value.

Parameters:

ParameterTypeDescription
keyjava.lang.StringThe name of property.

Returns: int - Property value.

getPropertyInt(String key, int def)

public int getPropertyInt(String key, int def)

Gets integer property value. If requested property is absent, returns provided default value.

Parameters:

ParameterTypeDescription
keyjava.lang.StringThe name of property.
defintDefault value of property.

Returns: int - Property value.

getPropertyMatrix(String key)

public AffineTransform getPropertyMatrix(String key)

Gets float property value.

Parameters:

ParameterTypeDescription
keyjava.lang.StringThe name of property.

Returns: java.awt.geom.AffineTransform - Property value.

getPropertyMatrix(String key, AffineTransform def)

public AffineTransform getPropertyMatrix(String key, AffineTransform def)

Gets float property value. If requested property is absent, returns provided default value.

Parameters:

ParameterTypeDescription
keyjava.lang.StringThe name of property.
defjava.awt.geom.AffineTransformDefault value of property.

Returns: java.awt.geom.AffineTransform - Property value.

getPropertyRectangle(String key)

public Rectangle getPropertyRectangle(String key)

Gets rectangle property value.

Parameters:

ParameterTypeDescription
keyjava.lang.StringThe name of property.

Returns: java.awt.Rectangle - Property value.

getPropertyRectangle(String key, Rectangle def)

public Rectangle getPropertyRectangle(String key, Rectangle def)

Gets rectangle property value. If requested property is absent, returns provided default value.

Parameters:

ParameterTypeDescription
keyjava.lang.StringThe name of property.
defjava.awt.RectangleDefault value of property.

Returns: java.awt.Rectangle - Property value.

getPropertyStringArray(String key)

public String[] getPropertyStringArray(String key)

Gets string array property value.

Parameters:

ParameterTypeDescription
keyjava.lang.StringThe name of property.

Returns: java.lang.String[] - Property value.

getPropertyStringArray(String key, String[] def)

public String[] getPropertyStringArray(String key, String[] def)

Gets string array property value. If requested property is absent, returns provided default value.

Parameters:

ParameterTypeDescription
keyjava.lang.StringThe name of property.
defjava.lang.String[]Default value of property.

Returns: java.lang.String[] - Property value.

hashCode()

public synchronized int hashCode()

Returns: int

isEmpty()

public boolean isEmpty()

Returns: boolean

isProperty(String key)

public boolean isProperty(String key)

Gets boolean property value.

Parameters:

ParameterTypeDescription
keyjava.lang.StringThe name of property.

Returns: boolean - Property value.

isProperty(String key, boolean def)

public boolean isProperty(String key, boolean def)

Gets boolean property value. If requested property is absent, returns provided default value.

Parameters:

ParameterTypeDescription
keyjava.lang.StringThe name of property.
defbooleanDefault value of property.

Returns: boolean - Property value.

keySet()

public Set<Object> keySet()

Returns: java.util.Set<java.lang.Object>

keys()

public Enumeration<Object> keys()

Returns: java.util.Enumeration<java.lang.Object>

list(PrintStream arg0)

public void list(PrintStream arg0)

Parameters:

ParameterTypeDescription
arg0java.io.PrintStream

list(PrintWriter arg0)

public void list(PrintWriter arg0)

Parameters:

ParameterTypeDescription
arg0java.io.PrintWriter

load(InputStream arg0)

public synchronized void load(InputStream arg0)

Parameters:

ParameterTypeDescription
arg0java.io.InputStream

load(Reader arg0)

public synchronized void load(Reader arg0)

Parameters:

ParameterTypeDescription
arg0java.io.Reader

loadFromXML(InputStream arg0)

public synchronized void loadFromXML(InputStream arg0)

Parameters:

ParameterTypeDescription
arg0java.io.InputStream

merge(K arg0, V arg1, BiFunction<? super V,? super V,? extends V> arg2)

public synchronized V merge(K arg0, V arg1, BiFunction<? super V,? super V,? extends V> arg2)

Parameters:

ParameterTypeDescription
arg0K
arg1V
arg2java.util.function.BiFunction<? super V,? super V,? extends V>

Returns: V

merge(Object arg0, Object arg1, BiFunction arg2)

public synchronized Object merge(Object arg0, Object arg1, BiFunction<? super Object,? super Object,?> arg2)

Parameters:

ParameterTypeDescription
arg0java.lang.Object
arg1java.lang.Object
arg2java.util.function.BiFunction

Returns: java.lang.Object

notify()

public final native void notify()

notifyAll()

public final native void notifyAll()

printProperties()

public void printProperties()

Prints all set properties.

propertyNames()

public Enumeration propertyNames()

Returns properties names.

Returns: java.util.Enumeration - Enumeration of properties names.

put(K arg0, V arg1)

public synchronized V put(K arg0, V arg1)

Parameters:

ParameterTypeDescription
arg0K
arg1V

Returns: V

put(Object arg0, Object arg1)

public synchronized Object put(Object arg0, Object arg1)

Parameters:

ParameterTypeDescription
arg0java.lang.Object
arg1java.lang.Object

Returns: java.lang.Object

putAll(Map<? extends K,? extends V> arg0)

public synchronized void putAll(Map<? extends K,? extends V> arg0)

Parameters:

ParameterTypeDescription
arg0java.util.Map<? extends K,? extends V>

putAll(Map arg0)

public synchronized void putAll(Map<?,?> arg0)

Parameters:

ParameterTypeDescription
arg0java.util.Map

putIfAbsent(K arg0, V arg1)

public synchronized V putIfAbsent(K arg0, V arg1)

Parameters:

ParameterTypeDescription
arg0K
arg1V

Returns: V

putIfAbsent(Object arg0, Object arg1)

public synchronized Object putIfAbsent(Object arg0, Object arg1)

Parameters:

ParameterTypeDescription
arg0java.lang.Object
arg1java.lang.Object

Returns: java.lang.Object

remove(Object arg0)

public synchronized Object remove(Object arg0)

Parameters:

ParameterTypeDescription
arg0java.lang.Object

Returns: java.lang.Object

remove(Object arg0, Object arg1)

public synchronized boolean remove(Object arg0, Object arg1)

Parameters:

ParameterTypeDescription
arg0java.lang.Object
arg1java.lang.Object

Returns: boolean

replace(K arg0, V arg1)

public synchronized V replace(K arg0, V arg1)

Parameters:

ParameterTypeDescription
arg0K
arg1V

Returns: V

replace(K arg0, V arg1, V arg2)

public synchronized boolean replace(K arg0, V arg1, V arg2)

Parameters:

ParameterTypeDescription
arg0K
arg1V
arg2V

Returns: boolean

replace(Object arg0, Object arg1)

public synchronized Object replace(Object arg0, Object arg1)

Parameters:

ParameterTypeDescription
arg0java.lang.Object
arg1java.lang.Object

Returns: java.lang.Object

replace(Object arg0, Object arg1, Object arg2)

public synchronized boolean replace(Object arg0, Object arg1, Object arg2)

Parameters:

ParameterTypeDescription
arg0java.lang.Object
arg1java.lang.Object
arg2java.lang.Object

Returns: boolean

replaceAll(BiFunction<? super K,? super V,? extends V> arg0)

public synchronized void replaceAll(BiFunction<? super K,? super V,? extends V> arg0)

Parameters:

ParameterTypeDescription
arg0java.util.function.BiFunction<? super K,? super V,? extends V>

replaceAll(BiFunction arg0)

public synchronized void replaceAll(BiFunction<? super Object,? super Object,?> arg0)

Parameters:

ParameterTypeDescription
arg0java.util.function.BiFunction

save(OutputStream arg0, String arg1)

public void save(OutputStream arg0, String arg1)

Parameters:

ParameterTypeDescription
arg0java.io.OutputStream
arg1java.lang.String

setProperties(Properties properties)

public void setProperties(Properties properties)

Copies properties, including its defaults into this UserProperties

Parameters:

ParameterTypeDescription
propertiesjava.util.PropertiesProperties.

setProperty(String key, boolean value)

public Object setProperty(String key, boolean value)

Sets boolean property value.

Parameters:

ParameterTypeDescription
keyjava.lang.StringThe name of property.
valuebooleanThe value of property.

Returns: java.lang.Object - A property.

setProperty(String key, double value)

public Object setProperty(String key, double value)

Sets double property value.

Parameters:

ParameterTypeDescription
keyjava.lang.StringThe name of property.
valuedoubleThe value of property.

Returns: java.lang.Object - A property.

setProperty(String key, float value)

public Object setProperty(String key, float value)

Sets float property value.

Parameters:

ParameterTypeDescription
keyjava.lang.StringThe name of property.
valuefloatThe value of property.

Returns: java.lang.Object - A property.

setProperty(String key, int value)

public Object setProperty(String key, int value)

Sets integer property value.

Parameters:

ParameterTypeDescription
keyjava.lang.StringThe name of property.
valueintThe value of property.

Returns: java.lang.Object - A property.

setProperty(String key, Color value)

public Object setProperty(String key, Color value)

Sets color property value.

Parameters:

ParameterTypeDescription
keyjava.lang.StringThe name of property.
valuejava.awt.ColorThe value of property.

Returns: java.lang.Object - A property.

setProperty(String key, Dimension value)

public Object setProperty(String key, Dimension value)

Sets dimension property value.

Parameters:

ParameterTypeDescription
keyjava.lang.StringThe name of property.
valuejava.awt.DimensionThe value of property.

Returns: java.lang.Object - A property.

setProperty(String key, Insets value)

public Object setProperty(String key, Insets value)

Sets insets property value.

Parameters:

ParameterTypeDescription
keyjava.lang.StringThe name of property.
valuejava.awt.InsetsThe value of property.

Returns: java.lang.Object - A property.

setProperty(String key, Rectangle value)

public Object setProperty(String key, Rectangle value)

Sets rectangle property value.

Parameters:

ParameterTypeDescription
keyjava.lang.StringThe name of property.
valuejava.awt.RectangleThe value of property.

Returns: java.lang.Object - A property.

setProperty(String key, AffineTransform value)

public Object setProperty(String key, AffineTransform value)

Sets matrix property value.

Parameters:

ParameterTypeDescription
keyjava.lang.StringThe name of property.
valuejava.awt.geom.AffineTransformThe value of property.

Returns: java.lang.Object - A property.

setProperty(String key, String value)

public Object setProperty(String key, String value)

Sets string property value.

Parameters:

ParameterTypeDescription
keyjava.lang.StringThe name of property.
valuejava.lang.StringThe value of property.

Returns: java.lang.Object - A property.

setProperty(String key, String[] value)

public Object setProperty(String key, String[] value)

Sets string array property value.

Parameters:

ParameterTypeDescription
keyjava.lang.StringThe name of property.
valuejava.lang.String[]The value of property.

Returns: java.lang.Object - A property.

setProperty(Properties properties, String key, boolean value)

public static Object setProperty(Properties properties, String key, boolean value)

Sets boolean property value in specified properties table.

Parameters:

ParameterTypeDescription
propertiesjava.util.PropertiesThe properties table.
keyjava.lang.StringThe name of property.
valuebooleanThe value of property.

Returns: java.lang.Object - A property.

setProperty(Properties properties, String key, double value)

public static Object setProperty(Properties properties, String key, double value)

Sets double property value in specified properties table.

Parameters:

ParameterTypeDescription
propertiesjava.util.PropertiesThe properties table.
keyjava.lang.StringThe name of property.
valuedoubleThe value of property.

Returns: java.lang.Object - A property.

setProperty(Properties properties, String key, float value)

public static Object setProperty(Properties properties, String key, float value)

Sets float property value in specified properties table.

Parameters:

ParameterTypeDescription
propertiesjava.util.PropertiesThe properties table.
keyjava.lang.StringThe name of property.
valuefloatThe value of property.

Returns: java.lang.Object - A property.

setProperty(Properties properties, String key, int value)

public static Object setProperty(Properties properties, String key, int value)

Sets integer property value in specified properties table.

Parameters:

ParameterTypeDescription
propertiesjava.util.PropertiesThe properties table.
keyjava.lang.StringThe name of property.
valueintThe value of property.

Returns: java.lang.Object - A property.

setProperty(Properties properties, String key, Color value)

public static Object setProperty(Properties properties, String key, Color value)

Sets color property value in specified properties table.

Parameters:

ParameterTypeDescription
propertiesjava.util.PropertiesThe properties table.
keyjava.lang.StringThe name of property.
valuejava.awt.ColorThe value of property.

Returns: java.lang.Object - A property.

setProperty(Properties properties, String key, Dimension value)

public static Object setProperty(Properties properties, String key, Dimension value)

Sets dimension property value in specified properties table.

Parameters:

ParameterTypeDescription
propertiesjava.util.PropertiesThe properties table.
keyjava.lang.StringThe name of property.
valuejava.awt.DimensionThe value of property.

Returns: java.lang.Object - A property.

setProperty(Properties properties, String key, Insets value)

public static Object setProperty(Properties properties, String key, Insets value)

Sets insets property value in specified properties table.

Parameters:

ParameterTypeDescription
propertiesjava.util.PropertiesThe properties table.
keyjava.lang.StringThe name of property.
valuejava.awt.InsetsThe value of property.

Returns: java.lang.Object - A property.

setProperty(Properties properties, String key, Rectangle value)

public static Object setProperty(Properties properties, String key, Rectangle value)

Sets rectangle property value in specified properties table.

Parameters:

ParameterTypeDescription
propertiesjava.util.PropertiesThe properties table.
keyjava.lang.StringThe name of property.
valuejava.awt.RectangleThe value of property.

Returns: java.lang.Object - A property.

setProperty(Properties properties, String key, AffineTransform value)

public static Object setProperty(Properties properties, String key, AffineTransform value)

Sets matrix property value in specified properties table.

Parameters:

ParameterTypeDescription
propertiesjava.util.PropertiesThe properties table.
keyjava.lang.StringThe name of property.
valuejava.awt.geom.AffineTransformThe value of property.

Returns: java.lang.Object - A property.

setProperty(Properties properties, String key, String[] value)

public static Object setProperty(Properties properties, String key, String[] value)

Sets string array property value in specified properties table.

Parameters:

ParameterTypeDescription
propertiesjava.util.PropertiesThe properties table.
keyjava.lang.StringThe name of property.
valuejava.lang.String[]The value of property.

Returns: java.lang.Object - A property.

size()

public int size()

Returns: int

store(OutputStream arg0, String arg1)

public void store(OutputStream arg0, String arg1)

Parameters:

ParameterTypeDescription
arg0java.io.OutputStream
arg1java.lang.String

store(Writer arg0, String arg1)

public void store(Writer arg0, String arg1)

Parameters:

ParameterTypeDescription
arg0java.io.Writer
arg1java.lang.String

storeToXML(OutputStream arg0, String arg1)

public void storeToXML(OutputStream arg0, String arg1)

Parameters:

ParameterTypeDescription
arg0java.io.OutputStream
arg1java.lang.String

storeToXML(OutputStream arg0, String arg1, String arg2)

public void storeToXML(OutputStream arg0, String arg1, String arg2)

Parameters:

ParameterTypeDescription
arg0java.io.OutputStream
arg1java.lang.String
arg2java.lang.String

storeToXML(OutputStream arg0, String arg1, Charset arg2)

public void storeToXML(OutputStream arg0, String arg1, Charset arg2)

Parameters:

ParameterTypeDescription
arg0java.io.OutputStream
arg1java.lang.String
arg2java.nio.charset.Charset

stringPropertyNames()

public Set<String> stringPropertyNames()

Returns: java.util.Set<java.lang.String>

toString()

public synchronized String toString()

Returns: java.lang.String

values()

public Collection<Object> values()

Returns: java.util.Collection<java.lang.Object>

wait()

public final void wait()

wait(long arg0)

public final native void wait(long arg0)

Parameters:

ParameterTypeDescription
arg0long

wait(long arg0, int arg1)

public final void wait(long arg0, int arg1)

Parameters:

ParameterTypeDescription
arg0long
arg1int