UserProperties
Inheritance: java.lang.Object, java.util.Dictionary, java.util.Hashtable, java.util.Properties
public class UserProperties extends Properties
Classe de propriété spéciale qui permet de définir et de récupérer des propriétés typées. Elle permet également de lier deux objets de propriétés par défaut à rechercher si cet objet de propriété ne contient pas la propriété.
Constructeurs
| Constructeur | Description |
|---|---|
| UserProperties() | Initialise une instance vide de la classe UserProperties. |
| UserProperties(Properties defaults) | Initialise une instance de la classe UserProperties avec des valeurs par défaut. |
| UserProperties(Properties defaults, Properties altDefaults) | Construit UserProperties avec une table defaults et altDefaults, qui sont recherchées dans cet ordre. |
Méthodes
UserProperties()
public UserProperties()
Initialise une instance vide de la classe UserProperties.
UserProperties(Properties defaults)
public UserProperties(Properties defaults)
Initialise une instance de la classe UserProperties avec des valeurs par défaut.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| défauts | java.util.Properties | Valeurs par défaut des propriétés. |
UserProperties(Properties defaults, Properties altDefaults)
public UserProperties(Properties defaults, Properties altDefaults)
Construit UserProperties avec une table defaults et altDefaults, qui sont recherchées dans cet ordre.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| défauts | java.util.Properties | Propriétés par défaut. |
| altDefaults | java.util.Properties | Propriétés par défaut alternatives. |
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:
| Paramètre | Type | Description |
|---|---|---|
| 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:
| Paramètre | Type | Description |
|---|---|---|
| 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:
| Paramètre | Type | Description |
|---|---|---|
| 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:
| Paramètre | Type | Description |
|---|---|---|
| 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:
| Paramètre | Type | Description |
|---|---|---|
| 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:
| Paramètre | Type | Description |
|---|---|---|
| arg0 | java.lang.Object | |
| arg1 | java.util.function.BiFunction |
Returns: java.lang.Object
contains(Object arg0)
public boolean contains(Object arg0)
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
containsKey(Object arg0)
public boolean containsKey(Object arg0)
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
containsValue(Object arg0)
public boolean containsValue(Object arg0)
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| 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:
| Paramètre | Type | Description |
|---|---|---|
| arg0 | java.lang.Object |
Returns: boolean
forEach(BiConsumer<? super K,? super V> arg0)
public synchronized void forEach(BiConsumer<? super K,? super V> arg0)
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| 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:
| Paramètre | Type | Description |
|---|---|---|
| arg0 | java.util.function.BiConsumer<? super java.lang.Object,? super java.lang.Object> |
get(Object arg0)
public Object get(Object arg0)
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| 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:
| Paramètre | Type | Description |
|---|---|---|
| arg0 | java.lang.Object | |
| arg1 | V |
Returns: V
getOrDefault(Object arg0, Object arg1)
public Object getOrDefault(Object arg0, Object arg1)
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| arg0 | java.lang.Object | |
| arg1 | java.lang.Object |
Returns: java.lang.Object
getProperty(String key)
public String getProperty(String key)
Obtient la valeur de la propriété chaîne.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| clé | java.lang.String | Le nom de la propriété. |
Returns: java.lang.String - Valeur de la propriété.
getProperty(String key, String def)
public String getProperty(String key, String def)
Obtient la valeur de la propriété de chaîne. Si la propriété demandée est absente, renvoie la valeur par défaut fournie.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| clé | java.lang.String | Le nom de la propriété. |
| def | java.lang.String | Valeur par défaut de la propriété. |
Returns: java.lang.String - Valeur de la propriété.
getPropertyColor(String key)
public Color getPropertyColor(String key)
Obtient la valeur de la propriété couleur.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| clé | java.lang.String | Le nom de la propriété. |
Returns: java.awt.Color - Valeur de la propriété.
getPropertyColor(String key, Color def)
public Color getPropertyColor(String key, Color def)
Obtient la valeur de la propriété de couleur. Si la propriété demandée est absente, renvoie la valeur par défaut fournie.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| clé | java.lang.String | Le nom de la propriété. |
| def | java.awt.Color | Valeur par défaut de la propriété. |
Returns: java.awt.Color - Valeur de la propriété.
getPropertyDimension(String key)
public Dimension getPropertyDimension(String key)
Obtient la valeur de la propriété dimension.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| clé | java.lang.String | Le nom de la propriété. |
Returns: java.awt.Dimension - Valeur de la propriété.
getPropertyDimension(String key, Dimension def)
public Dimension getPropertyDimension(String key, Dimension def)
Obtient la valeur de la propriété de dimension. Si la propriété demandée est absente, renvoie la valeur par défaut fournie.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| clé | java.lang.String | Le nom de la propriété. |
| def | java.awt.Dimension | Valeur par défaut de la propriété. |
Returns: java.awt.Dimension - Valeur de la propriété.
getPropertyDouble(String key)
public double getPropertyDouble(String key)
Obtient la valeur de la propriété double.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| clé | java.lang.String | Le nom de la propriété. |
Returns: double - Valeur de la propriété.
getPropertyDouble(String key, double def)
public double getPropertyDouble(String key, double def)
Obtient la valeur de la propriété double. Si la propriété demandée est absente, renvoie la valeur par défaut fournie.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| clé | java.lang.String | Le nom de la propriété. |
| def | double | Valeur par défaut de la propriété. |
Returns: double - Valeur de la propriété.
getPropertyFloat(String key)
public float getPropertyFloat(String key)
Obtient la valeur de la propriété flottante.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| clé | java.lang.String | Le nom de la propriété. |
Returns: float - Valeur de la propriété.
getPropertyFloat(String key, float def)
public float getPropertyFloat(String key, float def)
Obtient la valeur de la propriété float. Si la propriété demandée est absente, renvoie la valeur par défaut fournie.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| clé | java.lang.String | Le nom de la propriété. |
| def | float | Valeur par défaut de la propriété. |
Returns: float - Valeur de la propriété.
getPropertyInsets(String key)
public Insets getPropertyInsets(String key)
Obtient la valeur de la propriété retraits.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| clé | java.lang.String | Le nom de la propriété. |
Returns: java.awt.Insets - Valeur de la propriété.
getPropertyInsets(String key, Insets def)
public Insets getPropertyInsets(String key, Insets def)
Obtient la valeur de la propriété d’insets. Si la propriété demandée est absente, renvoie la valeur par défaut fournie.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| clé | java.lang.String | Le nom de la propriété. |
| def | java.awt.Insets | Valeur par défaut de la propriété. |
Returns: java.awt.Insets - Valeur de la propriété.
getPropertyInt(String key)
public int getPropertyInt(String key)
Obtient la valeur de la propriété entier.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| clé | java.lang.String | Le nom de la propriété. |
Returns: int - Valeur de la propriété.
getPropertyInt(String key, int def)
public int getPropertyInt(String key, int def)
Obtient la valeur de la propriété entière. Si la propriété demandée est absente, renvoie la valeur par défaut fournie.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| clé | java.lang.String | Le nom de la propriété. |
| def | int | Valeur par défaut de la propriété. |
Returns: int - Valeur de la propriété.
getPropertyMatrix(String key)
public AffineTransform getPropertyMatrix(String key)
Obtient la valeur de la propriété flottante.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| clé | java.lang.String | Le nom de la propriété. |
Returns: java.awt.geom.AffineTransform - Valeur de la propriété.
getPropertyMatrix(String key, AffineTransform def)
public AffineTransform getPropertyMatrix(String key, AffineTransform def)
Obtient la valeur de la propriété float. Si la propriété demandée est absente, renvoie la valeur par défaut fournie.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| clé | java.lang.String | Le nom de la propriété. |
| def | java.awt.geom.AffineTransform | Valeur par défaut de la propriété. |
Returns: java.awt.geom.AffineTransform - Valeur de la propriété.
getPropertyRectangle(String key)
public Rectangle getPropertyRectangle(String key)
Obtient la valeur de la propriété rectangle.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| clé | java.lang.String | Le nom de la propriété. |
Returns: java.awt.Rectangle - Valeur de la propriété.
getPropertyRectangle(String key, Rectangle def)
public Rectangle getPropertyRectangle(String key, Rectangle def)
Obtient la valeur de la propriété rectangle. Si la propriété demandée est absente, renvoie la valeur par défaut fournie.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| clé | java.lang.String | Le nom de la propriété. |
| def | java.awt.Rectangle | Valeur par défaut de la propriété. |
Returns: java.awt.Rectangle - Valeur de la propriété.
getPropertyStringArray(String key)
public String[] getPropertyStringArray(String key)
Obtient la valeur de la propriété tableau de chaînes.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| clé | java.lang.String | Le nom de la propriété. |
Returns: java.lang.String[] - Valeur de la propriété.
getPropertyStringArray(String key, String[] def)
public String[] getPropertyStringArray(String key, String[] def)
Obtient la valeur de la propriété tableau de chaînes. Si la propriété demandée est absente, renvoie la valeur par défaut fournie.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| clé | java.lang.String | Le nom de la propriété. |
| def | java.lang.String[] | Valeur par défaut de la propriété. |
Returns: java.lang.String[] - Valeur de la propriété.
hashCode()
public synchronized int hashCode()
Returns: int
isEmpty()
public boolean isEmpty()
Returns: boolean
isProperty(String key)
public boolean isProperty(String key)
Obtient la valeur de la propriété booléenne.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| clé | java.lang.String | Le nom de la propriété. |
Returns: boolean - Valeur de la propriété.
isProperty(String key, boolean def)
public boolean isProperty(String key, boolean def)
Obtient la valeur de la propriété booléenne. Si la propriété demandée est absente, renvoie la valeur par défaut fournie.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| clé | java.lang.String | Le nom de la propriété. |
| def | boolean | Valeur par défaut de la propriété. |
Returns: boolean - Valeur de la propriété.
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:
| Paramètre | Type | Description |
|---|---|---|
| arg0 | java.io.PrintStream |
list(PrintWriter arg0)
public void list(PrintWriter arg0)
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| arg0 | java.io.PrintWriter |
load(InputStream arg0)
public synchronized void load(InputStream arg0)
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| arg0 | java.io.InputStream |
load(Reader arg0)
public synchronized void load(Reader arg0)
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| arg0 | java.io.Reader |
loadFromXML(InputStream arg0)
public synchronized void loadFromXML(InputStream arg0)
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| 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:
| Paramètre | Type | Description |
|---|---|---|
| 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:
| Paramètre | Type | Description |
|---|---|---|
| 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()
Affiche toutes les propriétés définies.
propertyNames()
public Enumeration propertyNames()
Renvoie les noms des propriétés.
Returns: java.util.Enumeration - Énumération des noms de propriétés.
put(K arg0, V arg1)
public synchronized V put(K arg0, V arg1)
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| arg0 | K | |
| arg1 | V |
Returns: V
put(Object arg0, Object arg1)
public synchronized Object put(Object arg0, Object arg1)
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| 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:
| Paramètre | Type | Description |
|---|---|---|
| arg0 | java.util.Map<? extends K,? extends V> |
putAll(Map arg0)
public synchronized void putAll(Map<?,?> arg0)
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| arg0 | java.util.Map |
putIfAbsent(K arg0, V arg1)
public synchronized V putIfAbsent(K arg0, V arg1)
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| arg0 | K | |
| arg1 | V |
Returns: V
putIfAbsent(Object arg0, Object arg1)
public synchronized Object putIfAbsent(Object arg0, Object arg1)
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| arg0 | java.lang.Object | |
| arg1 | java.lang.Object |
Returns: java.lang.Object
remove(Object arg0)
public synchronized Object remove(Object arg0)
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| arg0 | java.lang.Object |
Returns: java.lang.Object
remove(Object arg0, Object arg1)
public synchronized boolean remove(Object arg0, Object arg1)
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| arg0 | java.lang.Object | |
| arg1 | java.lang.Object |
Returns: boolean
replace(K arg0, V arg1)
public synchronized V replace(K arg0, V arg1)
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| arg0 | K | |
| arg1 | V |
Returns: V
replace(K arg0, V arg1, V arg2)
public synchronized boolean replace(K arg0, V arg1, V arg2)
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| arg0 | K | |
| arg1 | V | |
| arg2 | V |
Returns: boolean
replace(Object arg0, Object arg1)
public synchronized Object replace(Object arg0, Object arg1)
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| 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:
| Paramètre | Type | Description |
|---|---|---|
| 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:
| Paramètre | Type | Description |
|---|---|---|
| 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:
| Paramètre | Type | Description |
|---|---|---|
| arg0 | java.util.function.BiFunction |
save(OutputStream arg0, String arg1)
public void save(OutputStream arg0, String arg1)
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| arg0 | java.io.OutputStream | |
| arg1 | java.lang.String |
setProperties(Properties properties)
public void setProperties(Properties properties)
Copie les propriétés, y compris leurs valeurs par défaut, dans cet UserProperties
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| propriétés | java.util.Properties | Propriétés. |
setProperty(String key, boolean value)
public Object setProperty(String key, boolean value)
Définit la valeur de la propriété booléenne.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| clé | java.lang.String | Le nom de la propriété. |
| valeur | boolean | La valeur de la propriété. |
Returns: java.lang.Object - Une propriété.
setProperty(String key, double value)
public Object setProperty(String key, double value)
Définit la valeur de la propriété double.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| clé | java.lang.String | Le nom de la propriété. |
| valeur | double | La valeur de la propriété. |
Returns: java.lang.Object - Une propriété.
setProperty(String key, float value)
public Object setProperty(String key, float value)
Définit la valeur de la propriété flottante.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| clé | java.lang.String | Le nom de la propriété. |
| valeur | float | La valeur de la propriété. |
Returns: java.lang.Object - Une propriété.
setProperty(String key, int value)
public Object setProperty(String key, int value)
Définit la valeur de la propriété entier.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| clé | java.lang.String | Le nom de la propriété. |
| valeur | int | La valeur de la propriété. |
Returns: java.lang.Object - Une propriété.
setProperty(String key, Color value)
public Object setProperty(String key, Color value)
Définit la valeur de la propriété couleur.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| clé | java.lang.String | Le nom de la propriété. |
| valeur | java.awt.Color | La valeur de la propriété. |
Returns: java.lang.Object - Une propriété.
setProperty(String key, Dimension value)
public Object setProperty(String key, Dimension value)
Définit la valeur de la propriété dimension.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| clé | java.lang.String | Le nom de la propriété. |
| valeur | java.awt.Dimension | La valeur de la propriété. |
Returns: java.lang.Object - Une propriété.
setProperty(String key, Insets value)
public Object setProperty(String key, Insets value)
Définit la valeur de la propriété retraits.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| clé | java.lang.String | Le nom de la propriété. |
| valeur | java.awt.Insets | La valeur de la propriété. |
Returns: java.lang.Object - Une propriété.
setProperty(String key, Rectangle value)
public Object setProperty(String key, Rectangle value)
Définit la valeur de la propriété rectangle.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| clé | java.lang.String | Le nom de la propriété. |
| valeur | java.awt.Rectangle | La valeur de la propriété. |
Returns: java.lang.Object - Une propriété.
setProperty(String key, AffineTransform value)
public Object setProperty(String key, AffineTransform value)
Définit la valeur de la propriété matrice.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| clé | java.lang.String | Le nom de la propriété. |
| valeur | java.awt.geom.AffineTransform | La valeur de la propriété. |
Returns: java.lang.Object - Une propriété.
setProperty(String key, String value)
public Object setProperty(String key, String value)
Définit la valeur de la propriété chaîne.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| clé | java.lang.String | Le nom de la propriété. |
| valeur | java.lang.String | La valeur de la propriété. |
Returns: java.lang.Object - Une propriété.
setProperty(String key, String[] value)
public Object setProperty(String key, String[] value)
Définit la valeur de la propriété tableau de chaînes.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| clé | java.lang.String | Le nom de la propriété. |
| valeur | java.lang.String[] | La valeur de la propriété. |
Returns: java.lang.Object - Une propriété.
setProperty(Properties properties, String key, boolean value)
public static Object setProperty(Properties properties, String key, boolean value)
Définit la valeur de la propriété booléenne dans la table des propriétés spécifiée.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| propriétés | java.util.Properties | Le tableau des propriétés. |
| clé | java.lang.String | Le nom de la propriété. |
| valeur | boolean | La valeur de la propriété. |
Returns: java.lang.Object - Une propriété.
setProperty(Properties properties, String key, double value)
public static Object setProperty(Properties properties, String key, double value)
Définit la valeur de la propriété double dans la table des propriétés spécifiée.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| propriétés | java.util.Properties | Le tableau des propriétés. |
| clé | java.lang.String | Le nom de la propriété. |
| valeur | double | La valeur de la propriété. |
Returns: java.lang.Object - Une propriété.
setProperty(Properties properties, String key, float value)
public static Object setProperty(Properties properties, String key, float value)
Définit la valeur de la propriété float dans la table de propriétés spécifiée.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| propriétés | java.util.Properties | Le tableau des propriétés. |
| clé | java.lang.String | Le nom de la propriété. |
| valeur | float | La valeur de la propriété. |
Returns: java.lang.Object - Une propriété.
setProperty(Properties properties, String key, int value)
public static Object setProperty(Properties properties, String key, int value)
Définit la valeur de la propriété integer dans la table de propriétés spécifiée.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| propriétés | java.util.Properties | Le tableau des propriétés. |
| clé | java.lang.String | Le nom de la propriété. |
| valeur | int | La valeur de la propriété. |
Returns: java.lang.Object - Une propriété.
setProperty(Properties properties, String key, Color value)
public static Object setProperty(Properties properties, String key, Color value)
Définit la valeur de la propriété color dans la table de propriétés spécifiée.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| propriétés | java.util.Properties | Le tableau des propriétés. |
| clé | java.lang.String | Le nom de la propriété. |
| valeur | java.awt.Color | La valeur de la propriété. |
Returns: java.lang.Object - Une propriété.
setProperty(Properties properties, String key, Dimension value)
public static Object setProperty(Properties properties, String key, Dimension value)
Définit la valeur de la propriété dimension dans la table de propriétés spécifiée.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| propriétés | java.util.Properties | Le tableau des propriétés. |
| clé | java.lang.String | Le nom de la propriété. |
| valeur | java.awt.Dimension | La valeur de la propriété. |
Returns: java.lang.Object - Une propriété.
setProperty(Properties properties, String key, Insets value)
public static Object setProperty(Properties properties, String key, Insets value)
Définit la valeur de la propriété insets dans la table de propriétés spécifiée.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| propriétés | java.util.Properties | Le tableau des propriétés. |
| clé | java.lang.String | Le nom de la propriété. |
| valeur | java.awt.Insets | La valeur de la propriété. |
Returns: java.lang.Object - Une propriété.
setProperty(Properties properties, String key, Rectangle value)
public static Object setProperty(Properties properties, String key, Rectangle value)
Définit la valeur de la propriété rectangle dans la table de propriétés spécifiée.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| propriétés | java.util.Properties | Le tableau des propriétés. |
| clé | java.lang.String | Le nom de la propriété. |
| valeur | java.awt.Rectangle | La valeur de la propriété. |
Returns: java.lang.Object - Une propriété.
setProperty(Properties properties, String key, AffineTransform value)
public static Object setProperty(Properties properties, String key, AffineTransform value)
Définit la valeur de la propriété matrix dans la table de propriétés spécifiée.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| propriétés | java.util.Properties | Le tableau des propriétés. |
| clé | java.lang.String | Le nom de la propriété. |
| valeur | java.awt.geom.AffineTransform | La valeur de la propriété. |
Returns: java.lang.Object - Une propriété.
setProperty(Properties properties, String key, String[] value)
public static Object setProperty(Properties properties, String key, String[] value)
Définit la valeur de la propriété string array dans la table de propriétés spécifiée.
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| propriétés | java.util.Properties | Le tableau des propriétés. |
| clé | java.lang.String | Le nom de la propriété. |
| valeur | java.lang.String[] | La valeur de la propriété. |
Returns: java.lang.Object - Une propriété.
size()
public int size()
Returns: int
store(OutputStream arg0, String arg1)
public void store(OutputStream arg0, String arg1)
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| arg0 | java.io.OutputStream | |
| arg1 | java.lang.String |
store(Writer arg0, String arg1)
public void store(Writer arg0, String arg1)
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| arg0 | java.io.Writer | |
| arg1 | java.lang.String |
storeToXML(OutputStream arg0, String arg1)
public void storeToXML(OutputStream arg0, String arg1)
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| 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:
| Paramètre | Type | Description |
|---|---|---|
| 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:
| Paramètre | Type | Description |
|---|---|---|
| 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:
| Paramètre | Type | Description |
|---|---|---|
| arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
| Paramètre | Type | Description |
|---|---|---|
| arg0 | long | |
| arg1 | int |