Uses of Record Class
io.jstach.ezkv.kvs.KeyValue
Package
Description
Ezkv Key Value loading system that allows loading of key values from URI-based
resources.
-
Uses of KeyValue in io.jstach.ezkv.kvs
Modifier and TypeMethodDescriptionKeyValue.addFlags
(Collection<KeyValue.Flag> flagsCol) Adds additional flags to thisKeyValue
and returns a new instance.Constructs aKeyValue
with the given key and value, including flags and source information.KeyValue.redact()
Redacts the sensitive value in this key-value pair by replacing it with a default message.Redacts the sensitive value in this key-value pair by replacing it with a custom message.@Nullable KeyValue
KeyValue.Source.reference()
Returns the value of thereference
record component.@Nullable KeyValue
KeyValuesResource.reference()
Returns theKeyValue
that references this resource, if any.KeyValue.withExpanded
(String expanded) Creates a newKeyValue
with an updated expanded value.KeyValue.withExpanded
(Function<String, @Nullable String> expanded) Returns a newKeyValue
instance with its value expanded using the provided function.Creates a new KeyValue with an updated key.Modifier and TypeMethodDescriptionKeyValues.collector()
Collects a stream ofKeyValue
into aKeyValues
instance.KeyValues.iterator()
KeyValuesServiceProvider.KeyValuesFilter.FilterContext.keyValueIgnore()
Returns the value of thekeyValueIgnore
record component.KeyValues.last()
This method gets the last element of the key values stream.KeyValues.stream()
Returns a stream of the containedKeyValue
entries.Modifier and TypeMethodDescriptionboolean
Checks if this flag is set for the givenKeyValue
.static KeyValues
Creates a single key values instance.Modifier and TypeMethodDescriptionstatic KeyValues
KeyValues.copyOf
(SequencedCollection<KeyValue> kvs) Creates aKeyValues
instance by copying the given collection.default KeyValues
Filters the key-value pairs based on a predicate.default KeyValues
Flattens the key-values by applying a mapping function that returns anotherKeyValues
.default KeyValues
KeyValues.map
(UnaryOperator<KeyValue> kv) Applies a transformation function to each key-value pair in the collection.ModifierConstructorDescriptionCreates an instance of aSource
record class.ModifierConstructorDescriptionFilterContext
(KeyValuesEnvironment environment, Variables.Parameters parameters, Predicate<KeyValue> keyValueIgnore) Creates an instance of aFilterContext
record class.