Class SystemProperty
java.lang.Object
dev.prozilla.pine.common.property.LazyProperty<String>
dev.prozilla.pine.common.property.SystemProperty
- All Implemented Interfaces:
MutableObjectProperty<String>,MutableProperty<String>,MutableStringProperty,Property<String>,StringProperty,Functor<String>
Represents a system property whose value is read using
System.getProperty(java.lang.String).
Unless fetch() is explicitly called, the value will only be read once and cached for later uses.
-
Field Summary
Fields inherited from class dev.prozilla.pine.common.property.LazyProperty
value -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class dev.prozilla.pine.common.property.LazyProperty
getValueMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface dev.prozilla.pine.common.property.mutable.MutableObjectProperty
setNull, stealMethods inherited from interface dev.prozilla.pine.common.property.mutable.MutableProperty
modifyValue, swapValueMethods inherited from interface dev.prozilla.pine.common.property.mutable.MutableStringProperty
appendValue, prependValue, toLowerCase, toStringProperty, toUpperCase, trimValue, viewPropertyMethods inherited from interface dev.prozilla.pine.common.property.Property
getValue, getValueOr, hasValue, hasValueProperty, isNotNull, isNotNullProperty, isNull, map, requireValue, snapshotMethods inherited from interface dev.prozilla.pine.common.property.StringProperty
append, append, lengthProperty, parse, prepend, prepend, replaceNull, toLowerCaseProperty, toUpperCaseProperty
-
Constructor Details
-
SystemProperty
-
-
Method Details
-
fetch
Reads the value of this system property.- Specified by:
fetchin classLazyProperty<String>- See Also:
-
setValue
Overrides the value of this property without modifying the actual system property.- Specified by:
setValuein interfaceMutableProperty<String>- Parameters:
value- The new value- Returns:
trueif the value was changed.
-