UserProperties
Inheritance: java.lang.Object, java.util.Dictionary, java.util.Hashtable, java.util.Properties
public class UserProperties extends Properties
Classe di proprietà speciale che consente di impostare e restituire proprietà tipizzate. Consente anche di collegare due oggetti di proprietà predefiniti da cercare se questo oggetto di proprietà non contiene la proprietà.
Costruttori
| Costruttore | Descrizione |
|---|---|
| UserProperties() | Inizializza un’istanza vuota della classe UserProperties. |
| UserProperties(Properties defaults) | Inizializza una classe UserProperties con valori predefiniti. |
| UserProperties(Properties defaults, Properties altDefaults) | Costruisce UserProperties con una tabella defaults e altDefaults, che vengono cercate in quest’ordine. |
Metodi
UserProperties()
public UserProperties()
Inizializza un’istanza vuota della classe UserProperties.
UserProperties(Properties defaults)
public UserProperties(Properties defaults)
Inizializza una classe UserProperties con valori predefiniti.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| defaults | java.util.Properties | Valori predefiniti delle proprietà. |
UserProperties(Properties defaults, Properties altDefaults)
public UserProperties(Properties defaults, Properties altDefaults)
Costruisce UserProperties con una tabella defaults e altDefaults, che vengono cercate in quest’ordine.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| defaults | java.util.Properties | Proprietà predefinite. |
| altDefaults | java.util.Properties | Proprietà predefinite alternative. |
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:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | K | |
| arg1 | java.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:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | java.lang.Object | |
| arg1 | java.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:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | K | |
| arg1 | java.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:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | java.lang.Object | |
| arg1 | java.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:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | K | |
| arg1 | java.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:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | java.lang.Object | |
| arg1 | java.util.function.BiFunction |
Returns: java.lang.Object
contains(Object arg0)
public boolean contains(Object arg0)
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
containsKey(Object arg0)
public boolean containsKey(Object arg0)
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
containsValue(Object arg0)
public boolean containsValue(Object arg0)
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | java.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:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
forEach(BiConsumer<? super K,? super V> arg0)
public synchronized void forEach(BiConsumer<? super K,? super V> arg0)
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | java.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:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | java.util.function.BiConsumer<? super java.lang.Object,? super java.lang.Object> |
get(Object arg0)
public Object get(Object arg0)
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | java.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:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | java.lang.Object | |
| arg1 | V |
Returns: V
getOrDefault(Object arg0, Object arg1)
public Object getOrDefault(Object arg0, Object arg1)
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | java.lang.Object | |
| arg1 | java.lang.Object |
Returns: java.lang.Object
getProperty(String key)
public String getProperty(String key)
Ottiene il valore della proprietà stringa.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| key | java.lang.String | Il nome della proprietà. |
Returns: java.lang.String - Valore della proprietà.
getProperty(String key, String def)
public String getProperty(String key, String def)
Ottiene il valore della proprietà stringa. Se la proprietà richiesta è assente, restituisce il valore predefinito fornito.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| key | java.lang.String | Il nome della proprietà. |
| def | java.lang.String | Valore predefinito della proprietà. |
Returns: java.lang.String - Valore della proprietà.
getPropertyColor(String key)
public Color getPropertyColor(String key)
Ottiene il valore della proprietà colore.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| key | java.lang.String | Il nome della proprietà. |
Returns: java.awt.Color - Valore della proprietà.
getPropertyColor(String key, Color def)
public Color getPropertyColor(String key, Color def)
Ottiene il valore della proprietà colore. Se la proprietà richiesta è assente, restituisce il valore predefinito fornito.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| key | java.lang.String | Il nome della proprietà. |
| def | java.awt.Color | Valore predefinito della proprietà. |
Returns: java.awt.Color - Valore della proprietà.
getPropertyDimension(String key)
public Dimension getPropertyDimension(String key)
Ottiene il valore della proprietà dimensione.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| key | java.lang.String | Il nome della proprietà. |
Returns: java.awt.Dimension - Valore della proprietà.
getPropertyDimension(String key, Dimension def)
public Dimension getPropertyDimension(String key, Dimension def)
Ottiene il valore della proprietà dimensione. Se la proprietà richiesta è assente, restituisce il valore predefinito fornito.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| key | java.lang.String | Il nome della proprietà. |
| def | java.awt.Dimension | Valore predefinito della proprietà. |
Returns: java.awt.Dimension - Valore della proprietà.
getPropertyDouble(String key)
public double getPropertyDouble(String key)
Ottiene il valore della proprietà double.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| key | java.lang.String | Il nome della proprietà. |
Returns: double - Valore della proprietà.
getPropertyDouble(String key, double def)
public double getPropertyDouble(String key, double def)
Ottiene il valore della proprietà double. Se la proprietà richiesta è assente, restituisce il valore predefinito fornito.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| key | java.lang.String | Il nome della proprietà. |
| def | double | Valore predefinito della proprietà. |
Returns: double - Valore della proprietà.
getPropertyFloat(String key)
public float getPropertyFloat(String key)
Ottiene il valore della proprietà float.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| key | java.lang.String | Il nome della proprietà. |
Returns: float - Valore della proprietà.
getPropertyFloat(String key, float def)
public float getPropertyFloat(String key, float def)
Ottiene il valore della proprietà float. Se la proprietà richiesta è assente, restituisce il valore predefinito fornito.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| key | java.lang.String | Il nome della proprietà. |
| def | float | Valore predefinito della proprietà. |
Returns: float - Valore della proprietà.
getPropertyInsets(String key)
public Insets getPropertyInsets(String key)
Ottiene il valore della proprietà insets.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| key | java.lang.String | Il nome della proprietà. |
Returns: java.awt.Insets - Valore della proprietà.
getPropertyInsets(String key, Insets def)
public Insets getPropertyInsets(String key, Insets def)
Ottiene il valore della proprietà insets. Se la proprietà richiesta è assente, restituisce il valore predefinito fornito.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| key | java.lang.String | Il nome della proprietà. |
| def | java.awt.Insets | Valore predefinito della proprietà. |
Returns: java.awt.Insets - Valore della proprietà.
getPropertyInt(String key)
public int getPropertyInt(String key)
Ottiene il valore della proprietà integer.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| key | java.lang.String | Il nome della proprietà. |
Returns: int - Valore della proprietà.
getPropertyInt(String key, int def)
public int getPropertyInt(String key, int def)
Ottiene il valore della proprietà intera. Se la proprietà richiesta è assente, restituisce il valore predefinito fornito.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| key | java.lang.String | Il nome della proprietà. |
| def | int | Valore predefinito della proprietà. |
Returns: int - Valore della proprietà.
getPropertyMatrix(String key)
public AffineTransform getPropertyMatrix(String key)
Ottiene il valore della proprietà float.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| key | java.lang.String | Il nome della proprietà. |
Returns: java.awt.geom.AffineTransform - Valore della proprietà.
getPropertyMatrix(String key, AffineTransform def)
public AffineTransform getPropertyMatrix(String key, AffineTransform def)
Ottiene il valore della proprietà float. Se la proprietà richiesta è assente, restituisce il valore predefinito fornito.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| key | java.lang.String | Il nome della proprietà. |
| def | java.awt.geom.AffineTransform | Valore predefinito della proprietà. |
Returns: java.awt.geom.AffineTransform - Valore della proprietà.
getPropertyRectangle(String key)
public Rectangle getPropertyRectangle(String key)
Ottiene il valore della proprietà rectangle.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| key | java.lang.String | Il nome della proprietà. |
Returns: java.awt.Rectangle - Valore della proprietà.
getPropertyRectangle(String key, Rectangle def)
public Rectangle getPropertyRectangle(String key, Rectangle def)
Ottiene il valore della proprietà rettangolo. Se la proprietà richiesta è assente, restituisce il valore predefinito fornito.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| key | java.lang.String | Il nome della proprietà. |
| def | java.awt.Rectangle | Valore predefinito della proprietà. |
Returns: java.awt.Rectangle - Valore della proprietà.
getPropertyStringArray(String key)
public String[] getPropertyStringArray(String key)
Ottiene il valore della proprietà array di stringhe.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| key | java.lang.String | Il nome della proprietà. |
Returns: java.lang.String[] - Valore della proprietà.
getPropertyStringArray(String key, String[] def)
public String[] getPropertyStringArray(String key, String[] def)
Ottiene il valore della proprietà array di stringhe. Se la proprietà richiesta è assente, restituisce il valore predefinito fornito.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| key | java.lang.String | Il nome della proprietà. |
| def | java.lang.String[] | Valore predefinito della proprietà. |
Returns: java.lang.String[] - Valore della proprietà.
hashCode()
public synchronized int hashCode()
Returns: int
isEmpty()
public boolean isEmpty()
Returns: boolean
isProperty(String key)
public boolean isProperty(String key)
Ottiene il valore della proprietà boolean.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| key | java.lang.String | Il nome della proprietà. |
Returns: boolean - Valore della proprietà.
isProperty(String key, boolean def)
public boolean isProperty(String key, boolean def)
Ottiene il valore della proprietà booleana. Se la proprietà richiesta è assente, restituisce il valore predefinito fornito.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| key | java.lang.String | Il nome della proprietà. |
| def | boolean | Valore predefinito della proprietà. |
Returns: boolean - Valore della proprietà.
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:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | java.io.PrintStream |
list(PrintWriter arg0)
public void list(PrintWriter arg0)
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | java.io.PrintWriter |
load(InputStream arg0)
public synchronized void load(InputStream arg0)
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | java.io.InputStream |
load(Reader arg0)
public synchronized void load(Reader arg0)
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | java.io.Reader |
loadFromXML(InputStream arg0)
public synchronized void loadFromXML(InputStream arg0)
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | java.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:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | K | |
| arg1 | V | |
| arg2 | java.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:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | java.lang.Object | |
| arg1 | java.lang.Object | |
| arg2 | java.util.function.BiFunction |
Returns: java.lang.Object
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
printProperties()
public void printProperties()
Stampa tutte le proprietà impostate.
propertyNames()
public Enumeration propertyNames()
Restituisce i nomi delle proprietà.
Returns: java.util.Enumeration - Enumerazione dei nomi delle proprietà.
put(K arg0, V arg1)
public synchronized V put(K arg0, V arg1)
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | K | |
| arg1 | V |
Returns: V
put(Object arg0, Object arg1)
public synchronized Object put(Object arg0, Object arg1)
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | java.lang.Object | |
| arg1 | java.lang.Object |
Returns: java.lang.Object
putAll(Map<? extends K,? extends V> arg0)
public synchronized void putAll(Map<? extends K,? extends V> arg0)
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | java.util.Map<? extends K,? extends V> |
putAll(Map arg0)
public synchronized void putAll(Map<?,?> arg0)
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | java.util.Map |
putIfAbsent(K arg0, V arg1)
public synchronized V putIfAbsent(K arg0, V arg1)
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | K | |
| arg1 | V |
Returns: V
putIfAbsent(Object arg0, Object arg1)
public synchronized Object putIfAbsent(Object arg0, Object arg1)
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | java.lang.Object | |
| arg1 | java.lang.Object |
Returns: java.lang.Object
remove(Object arg0)
public synchronized Object remove(Object arg0)
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | java.lang.Object |
Returns: java.lang.Object
remove(Object arg0, Object arg1)
public synchronized boolean remove(Object arg0, Object arg1)
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | java.lang.Object | |
| arg1 | java.lang.Object |
Returns: boolean
replace(K arg0, V arg1)
public synchronized V replace(K arg0, V arg1)
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | K | |
| arg1 | V |
Returns: V
replace(K arg0, V arg1, V arg2)
public synchronized boolean replace(K arg0, V arg1, V arg2)
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | K | |
| arg1 | V | |
| arg2 | V |
Returns: boolean
replace(Object arg0, Object arg1)
public synchronized Object replace(Object arg0, Object arg1)
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | java.lang.Object | |
| arg1 | java.lang.Object |
Returns: java.lang.Object
replace(Object arg0, Object arg1, Object arg2)
public synchronized boolean replace(Object arg0, Object arg1, Object arg2)
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | java.lang.Object | |
| arg1 | java.lang.Object | |
| arg2 | java.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:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | java.util.function.BiFunction<? super K,? super V,? extends V> |
replaceAll(BiFunction arg0)
public synchronized void replaceAll(BiFunction<? super Object,? super Object,?> arg0)
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | java.util.function.BiFunction |
save(OutputStream arg0, String arg1)
public void save(OutputStream arg0, String arg1)
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | java.io.OutputStream | |
| arg1 | java.lang.String |
setProperties(Properties properties)
public void setProperties(Properties properties)
Copia le proprietà, inclusi i valori predefiniti, in questo UserProperties
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| proprietà | java.util.Properties | Proprietà. |
setProperty(String key, boolean value)
public Object setProperty(String key, boolean value)
Imposta il valore della proprietà boolean.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| key | java.lang.String | Il nome della proprietà. |
| valore | boolean | Il valore della proprietà. |
Returns: java.lang.Object - Una proprietà.
setProperty(String key, double value)
public Object setProperty(String key, double value)
Imposta il valore della proprietà double.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| key | java.lang.String | Il nome della proprietà. |
| valore | double | Il valore della proprietà. |
Returns: java.lang.Object - Una proprietà.
setProperty(String key, float value)
public Object setProperty(String key, float value)
Imposta il valore della proprietà float.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| key | java.lang.String | Il nome della proprietà. |
| valore | float | Il valore della proprietà. |
Returns: java.lang.Object - Una proprietà.
setProperty(String key, int value)
public Object setProperty(String key, int value)
Imposta il valore della proprietà integer.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| key | java.lang.String | Il nome della proprietà. |
| valore | int | Il valore della proprietà. |
Returns: java.lang.Object - Una proprietà.
setProperty(String key, Color value)
public Object setProperty(String key, Color value)
Imposta il valore della proprietà colore.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| key | java.lang.String | Il nome della proprietà. |
| valore | java.awt.Color | Il valore della proprietà. |
Returns: java.lang.Object - Una proprietà.
setProperty(String key, Dimension value)
public Object setProperty(String key, Dimension value)
Imposta il valore della proprietà dimensione.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| key | java.lang.String | Il nome della proprietà. |
| valore | java.awt.Dimension | Il valore della proprietà. |
Returns: java.lang.Object - Una proprietà.
setProperty(String key, Insets value)
public Object setProperty(String key, Insets value)
Imposta il valore della proprietà insets.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| key | java.lang.String | Il nome della proprietà. |
| valore | java.awt.Insets | Il valore della proprietà. |
Returns: java.lang.Object - Una proprietà.
setProperty(String key, Rectangle value)
public Object setProperty(String key, Rectangle value)
Imposta il valore della proprietà rectangle.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| key | java.lang.String | Il nome della proprietà. |
| valore | java.awt.Rectangle | Il valore della proprietà. |
Returns: java.lang.Object - Una proprietà.
setProperty(String key, AffineTransform value)
public Object setProperty(String key, AffineTransform value)
Imposta il valore della proprietà matrix.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| key | java.lang.String | Il nome della proprietà. |
| valore | java.awt.geom.AffineTransform | Il valore della proprietà. |
Returns: java.lang.Object - Una proprietà.
setProperty(String key, String value)
public Object setProperty(String key, String value)
Imposta il valore della proprietà string.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| key | java.lang.String | Il nome della proprietà. |
| valore | java.lang.String | Il valore della proprietà. |
Returns: java.lang.Object - Una proprietà.
setProperty(String key, String[] value)
public Object setProperty(String key, String[] value)
Imposta il valore della proprietà array di stringhe.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| key | java.lang.String | Il nome della proprietà. |
| valore | java.lang.String[] | Il valore della proprietà. |
Returns: java.lang.Object - Una proprietà.
setProperty(Properties properties, String key, boolean value)
public static Object setProperty(Properties properties, String key, boolean value)
Imposta il valore della proprietà boolean nella tabella delle proprietà specificata.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| proprietà | java.util.Properties | La tabella delle proprietà. |
| key | java.lang.String | Il nome della proprietà. |
| valore | boolean | Il valore della proprietà. |
Returns: java.lang.Object - Una proprietà.
setProperty(Properties properties, String key, double value)
public static Object setProperty(Properties properties, String key, double value)
Imposta il valore della proprietà double nella tabella delle proprietà specificata.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| proprietà | java.util.Properties | La tabella delle proprietà. |
| key | java.lang.String | Il nome della proprietà. |
| valore | double | Il valore della proprietà. |
Returns: java.lang.Object - Una proprietà.
setProperty(Properties properties, String key, float value)
public static Object setProperty(Properties properties, String key, float value)
Imposta il valore della proprietà float nella tabella delle proprietà specificata.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| proprietà | java.util.Properties | La tabella delle proprietà. |
| key | java.lang.String | Il nome della proprietà. |
| valore | float | Il valore della proprietà. |
Returns: java.lang.Object - Una proprietà.
setProperty(Properties properties, String key, int value)
public static Object setProperty(Properties properties, String key, int value)
Imposta il valore della proprietà intera nella tabella delle proprietà specificata.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| proprietà | java.util.Properties | La tabella delle proprietà. |
| key | java.lang.String | Il nome della proprietà. |
| valore | int | Il valore della proprietà. |
Returns: java.lang.Object - Una proprietà.
setProperty(Properties properties, String key, Color value)
public static Object setProperty(Properties properties, String key, Color value)
Imposta il valore della proprietà colore nella tabella delle proprietà specificata.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| proprietà | java.util.Properties | La tabella delle proprietà. |
| key | java.lang.String | Il nome della proprietà. |
| valore | java.awt.Color | Il valore della proprietà. |
Returns: java.lang.Object - Una proprietà.
setProperty(Properties properties, String key, Dimension value)
public static Object setProperty(Properties properties, String key, Dimension value)
Imposta il valore della proprietà dimensione nella tabella delle proprietà specificata.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| proprietà | java.util.Properties | La tabella delle proprietà. |
| key | java.lang.String | Il nome della proprietà. |
| valore | java.awt.Dimension | Il valore della proprietà. |
Returns: java.lang.Object - Una proprietà.
setProperty(Properties properties, String key, Insets value)
public static Object setProperty(Properties properties, String key, Insets value)
Imposta il valore della proprietà inset nella tabella delle proprietà specificata.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| proprietà | java.util.Properties | La tabella delle proprietà. |
| key | java.lang.String | Il nome della proprietà. |
| valore | java.awt.Insets | Il valore della proprietà. |
Returns: java.lang.Object - Una proprietà.
setProperty(Properties properties, String key, Rectangle value)
public static Object setProperty(Properties properties, String key, Rectangle value)
Imposta il valore della proprietà rettangolo nella tabella delle proprietà specificata.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| proprietà | java.util.Properties | La tabella delle proprietà. |
| key | java.lang.String | Il nome della proprietà. |
| valore | java.awt.Rectangle | Il valore della proprietà. |
Returns: java.lang.Object - Una proprietà.
setProperty(Properties properties, String key, AffineTransform value)
public static Object setProperty(Properties properties, String key, AffineTransform value)
Imposta il valore della proprietà matrice nella tabella delle proprietà specificata.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| proprietà | java.util.Properties | La tabella delle proprietà. |
| key | java.lang.String | Il nome della proprietà. |
| valore | java.awt.geom.AffineTransform | Il valore della proprietà. |
Returns: java.lang.Object - Una proprietà.
setProperty(Properties properties, String key, String[] value)
public static Object setProperty(Properties properties, String key, String[] value)
Imposta il valore della proprietà array di stringhe nella tabella delle proprietà specificata.
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| proprietà | java.util.Properties | La tabella delle proprietà. |
| key | java.lang.String | Il nome della proprietà. |
| valore | java.lang.String[] | Il valore della proprietà. |
Returns: java.lang.Object - Una proprietà.
size()
public int size()
Returns: int
store(OutputStream arg0, String arg1)
public void store(OutputStream arg0, String arg1)
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | java.io.OutputStream | |
| arg1 | java.lang.String |
store(Writer arg0, String arg1)
public void store(Writer arg0, String arg1)
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | java.io.Writer | |
| arg1 | java.lang.String |
storeToXML(OutputStream arg0, String arg1)
public void storeToXML(OutputStream arg0, String arg1)
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | java.io.OutputStream | |
| arg1 | java.lang.String |
storeToXML(OutputStream arg0, String arg1, String arg2)
public void storeToXML(OutputStream arg0, String arg1, String arg2)
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | java.io.OutputStream | |
| arg1 | java.lang.String | |
| arg2 | java.lang.String |
storeToXML(OutputStream arg0, String arg1, Charset arg2)
public void storeToXML(OutputStream arg0, String arg1, Charset arg2)
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | java.io.OutputStream | |
| arg1 | java.lang.String | |
| arg2 | java.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:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Parametro | Tipo | Descrizione |
|---|---|---|
| arg0 | long | |
| arg1 | int |