public interface PropertiesHandle
PropertiesHandles class.null. If the value can
not be parsed, then a warning is printed, and the method
returns null.null, then
nothing will be done. Otherwise, properties file will be
updated immediately.
null, then the properties
file will be updated immediately.null, it will
be passed to a consumer.| Modifier and Type | Method and Description |
|---|---|
Color |
readColor(String prefix)
Read the specified value
|
Double |
readDouble(String name)
Read the specified value
|
Integer |
readInteger(String name)
Read the specified value
|
Path |
readPath(String name)
Read the specified value
|
Point |
readPoint(String prefix)
Read the specified value
|
Rectangle |
readRectangle(String prefix)
Read the specified value
|
String |
readString(String name)
Read the specified value
|
void |
restoreColor(String prefix,
Consumer<? super Color> consumer)
Restore the specified value
|
void |
restoreDouble(String name,
DoubleConsumer consumer)
Restore the specified value
|
void |
restoreInteger(String name,
IntConsumer consumer)
Restore the specified value
|
void |
restorePath(String name,
Consumer<? super Path> consumer)
Restore the specified value
|
void |
restorePoint(String prefix,
Consumer<? super Point> consumer)
Restore the specified value
|
void |
restoreRectangle(String prefix,
Consumer<? super Rectangle> consumer)
Restore the specified value
|
void |
restoreString(String name,
Consumer<? super String> consumer)
Restore the specified value
|
void |
saveColor(String prefix,
Supplier<? extends Color> supplier)
Save the value from the given supplier
|
void |
saveDouble(String name,
DoubleSupplier supplier)
Save the value from the given supplier
|
void |
saveInteger(String name,
IntSupplier supplier)
Save the value from the given supplier
|
void |
savePath(String name,
Supplier<? extends Path> supplier)
Save the value from the given supplier
|
void |
savePoint(String prefix,
Supplier<? extends Point> supplier)
Save the value from the given supplier
|
void |
saveRectangle(String prefix,
Supplier<? extends Rectangle> supplier)
Save the value from the given supplier
|
void |
saveString(String name,
Supplier<? extends String> supplier)
Save the value from the given supplier
|
void |
writeColor(String prefix,
Color value)
Write the given value
|
void |
writeDouble(String name,
Double value)
Write the given value
|
void |
writeInteger(String name,
Integer value)
Write the given value
|
void |
writePath(String name,
Path value)
Write the given value
|
void |
writePoint(String prefix,
Point value)
Write the given value
|
void |
writeRectangle(String prefix,
Rectangle value)
Write the given value
|
void |
writeString(String name,
String value)
Write the given value
|
void writeString(String name, String value)
name - The namevalue - The valuevoid saveString(String name, Supplier<? extends String> supplier)
name - The namesupplier - The supplierString readString(String name)
name - The namevoid restoreString(String name, Consumer<? super String> consumer)
name - The nameconsumer - The consumervoid writeInteger(String name, Integer value)
name - The namevalue - The valuevoid saveInteger(String name, IntSupplier supplier)
name - The namesupplier - The supplierInteger readInteger(String name)
name - The namevoid restoreInteger(String name, IntConsumer consumer)
name - The nameconsumer - The consumervoid writeDouble(String name, Double value)
name - The namevalue - The valuevoid saveDouble(String name, DoubleSupplier supplier)
name - The namesupplier - The supplierDouble readDouble(String name)
name - The namevoid restoreDouble(String name, DoubleConsumer consumer)
name - The nameconsumer - The consumervoid writePath(String name, Path value)
name - The namevalue - The valuevoid savePath(String name, Supplier<? extends Path> supplier)
name - The namesupplier - The supplierPath readPath(String name)
name - The namevoid restorePath(String name, Consumer<? super Path> consumer)
name - The nameconsumer - The consumervoid writePoint(String prefix, Point value)
prefix - The prefixvalue - The valuevoid savePoint(String prefix, Supplier<? extends Point> supplier)
prefix - The namesupplier - The supplierPoint readPoint(String prefix)
prefix - The prefixvoid restorePoint(String prefix, Consumer<? super Point> consumer)
prefix - The prefixconsumer - The consumervoid writeRectangle(String prefix, Rectangle value)
prefix - The prefixvalue - The valuevoid saveRectangle(String prefix, Supplier<? extends Rectangle> supplier)
prefix - The prefixsupplier - The supplierRectangle readRectangle(String prefix)
prefix - The prefixvoid restoreRectangle(String prefix, Consumer<? super Rectangle> consumer)
prefix - The prefixconsumer - The consumervoid writeColor(String prefix, Color value)
prefix - The prefixvalue - The valuevoid saveColor(String prefix, Supplier<? extends Color> supplier)
prefix - The prefixsupplier - The supplierColor readColor(String prefix)
prefix - The prefixCopyright © 2022. All rights reserved.