Interface UriQuery.Copyable
- All Superinterfaces:
Parameters, UriQuery
- Enclosing interface:
UriQuery
A Helidon query that can provide an independent snapshot of its parameter state.
This retains entries that cannot be reconstructed from
UriQuery.rawValue(),
such as raw parameters whose value lists have been cleared.-
Nested Class Summary
Nested classes/interfaces inherited from interface Parameters
Parameters.BuilderNested classes/interfaces inherited from interface UriQuery
UriQuery.CopyableModifier and TypeInterfaceDescriptionstatic interfaceA Helidon query that can provide an independent snapshot of its parameter state. -
Field Summary
Fields inherited from interface Parameters
GENERIC_TYPEModifier and TypeFieldDescriptionstatic final GenericType<Parameters> Generic type for parameters. -
Method Summary
Methods inherited from interface Parameters
all, all, allValues, allValues, component, contains, first, get, isEmpty, names, size, toMapModifier and TypeMethodDescriptionGet all values.Get all values using a default value supplier if the parameter does not exist.A list of values for the named parameter.Get all values using a default value supplier if the parameter does not exist.Name of the component of these parameters.booleanWhether these parameters contain the provided name.Get the first value as an optional.Get the first value.default booleanisEmpty()Whether these parameters are empty.names()Set of parameter names.intsize()Number of parameter names in these parameters.toMap()Get a map representation of these parameters.Methods inherited from interface UriQuery
getAllRaw, getRaw, rawValue, value
-
Method Details
-
copy
UriQuery copy()Copy the current raw and decoded parameters independently, including raw names, empty entries, and edits made through parameter lists. The returned query and this query must not share mutable state. The raw query serialization may be normalized. Implementations should return a standard query created usingUriQueryWriteable.create()so that its complete parameter state can be copied without serialization. A non-standard snapshot should expose every serialized raw parameter name throughUriQuery.getAllRaw(String)using the same encoded spelling to retain each raw alias.- Returns:
- independent parameter-state snapshot
-