Uses of Interface
io.jstach.rainbowgum.LogProperty.ValidatedResult
Packages that use LogProperty.ValidatedResult
-
Uses of LogProperty.ValidatedResult in io.jstach.rainbowgum
Subinterfaces of LogProperty.ValidatedResult in io.jstach.rainbowgumModifier and TypeInterfaceDescriptionstatic interfaceA result that is not missing and will either be an error or success.static interfaceA property that is present.Classes in io.jstach.rainbowgum that implement LogProperty.ValidatedResultModifier and TypeClassDescriptionstatic final recordA property that was present but failed conversion.static final recordA property that is missing (null).Methods in io.jstach.rainbowgum that return LogProperty.ValidatedResultModifier and TypeMethodDescriptiondefault LogProperty.ValidatedResult<T> LogProperty.Result.validate(LogProperty.Validator validator) Registers this result withvalidatorviaLogProperty.Validator.add(Result)(a still-LogProperty.Result.Missingresult is treated as a real failure) and returns this result unchanged, so a chain that builds a required property can register itself with a sharedLogProperty.Validatorand keep going in one expression -properties.forKey(key).ofString().or(fallback).validate(v)- instead of a separatevar x = ...; v.add(x);statement pair.default LogProperty.ValidatedResult<T> LogProperty.Result.validateIfError(LogProperty.Validator validator) LikeLogProperty.Result.validate(Validator)but viaLogProperty.Validator.addIfError(Result)instead ofLogProperty.Validator.add(Result)- aLogProperty.Result.Missingresult is expected and ignored, only aLogProperty.Result.Erroris treated as a failure.