Interface ReadableStringValue
-
- All Superinterfaces:
ReadableSimpleValue<String>,ReadableTypedValue<String>,ReadableValue<String>,Supplier<String>
- All Known Subinterfaces:
ObservableStringValue,ReadableStringProperty,StringExpression,WritableStringProperty,WritableStringValue
- All Known Implementing Classes:
StringBinding,StringListProperty,StringProperty
public interface ReadableStringValue extends ReadableSimpleValue<String>
- Since:
- 1.0.0
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default StringgetAsString()default StringgetSafe()default StringgetValue()Same asReadableValue.get().default Class<String>getValueClass()-
Methods inherited from interface io.github.mmm.value.ReadableValue
get
-
-
-
-
Method Detail
-
getAsString
default String getAsString()
- Specified by:
getAsStringin interfaceReadableSimpleValue<String>- Returns:
- the
valueasString.
-
getValueClass
default Class<String> getValueClass()
- Specified by:
getValueClassin interfaceReadableTypedValue<String>- Returns:
- the
Classreflecting the type ofvaluesthat can be stored by this property. Even if thevalueisnullthe property must support returning the property class.
-
getValue
default String getValue()
Same asReadableValue.get().- Returns:
- the current
value.
-
getSafe
default String getSafe()
- Specified by:
getSafein interfaceReadableValue<String>- Returns:
- the same as
ReadableValue.get()but trying to avoid returningnullwhere possible. So a neutral element is returned instead ofnullfor each type supporting this (e.g. "" forString,0for any kind ofNumber,Boolean.FALSE, empty collection, etc.).
-
-