Interface ServerVariables
- All Superinterfaces:
Constructible
,Extensible<ServerVariables>
,Map<String,
ServerVariable>
@Deprecated
public interface ServerVariables
extends Constructible, Extensible<ServerVariables>, Map<String,ServerVariable>
Deprecated.
ServerVariables
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddServerVariable
(String name, ServerVariable serverVariable) Deprecated.This method adds a key-value item to a ServerVariables instance from the name-item parameter pair and returns the modified instance.boolean
containsKey
(Object key) Deprecated.since 1.1Deprecated.since 1.1default ServerVariable
getServerVariable
(String name) Deprecated.Returns a server variable for a given name.Deprecated.Returns a copy map (potentially immutable) of the server variables.default boolean
hasServerVariable
(String name) Deprecated.Check whether a server variable is present in the map.put
(String key, ServerVariable value) Deprecated.since 1.1void
putAll
(Map<? extends String, ? extends ServerVariable> m) Deprecated.since 1.1Deprecated.since 1.1void
removeServerVariable
(String name) Deprecated.Removes the given server variables.void
setServerVariables
(Map<String, ServerVariable> items) Deprecated.Set the server variables map to this ServerVariables object.Methods inherited from interface org.eclipse.microprofile.openapi.models.Extensible
addExtension, extensions, getExtensions, removeExtension, setExtensions
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsValue, entrySet, equals, forEach, getOrDefault, hashCode, isEmpty, keySet, merge, putIfAbsent, remove, replace, replace, replaceAll, size, values
-
Method Details
-
addServerVariable
Deprecated.This method adds a key-value item to a ServerVariables instance from the name-item parameter pair and returns the modified instance.- Parameters:
name
- the name of ServerVariable instanceserverVariable
- the ServerVariable instance. null values will be rejected (implementation will throw an exception) or ignored.- Returns:
- ServerVariables instance with the added name-item pair.
-
removeServerVariable
Deprecated.Removes the given server variables.- Parameters:
name
- the name of ServerVariable instance
-
getServerVariables
Map<String,ServerVariable> getServerVariables()Deprecated.Returns a copy map (potentially immutable) of the server variables.- Returns:
- all items
-
setServerVariables
Deprecated.Set the server variables map to this ServerVariables object.- Parameters:
items
- a map containing key-value item.
-
hasServerVariable
Deprecated.Check whether a server variable is present in the map. This is a convenience method forgetServerVariables().containsKey(name)
- Parameters:
name
- the name of ServerVariable instance- Returns:
- a boolean to indicate if the server variable is present or not.
-
getServerVariable
Deprecated.Returns a server variable for a given name. This is a convenience method forgetServerVariables().get(name)
- Parameters:
name
- the name of ServerVariable instance- Returns:
- the corresponding server variable or null.
-
get
Deprecated.since 1.1In the next version,ServerVariables
will no longer extendsMap
, this method will no longer be present. UsegetServerVariable(String)
instead.- Specified by:
get
in interfaceMap<String,
ServerVariable>
-
containsKey
Deprecated.since 1.1In the next version,ServerVariables
will no longer extendsMap
, this method will no longer be present. UsehasServerVariable(String)
instead.- Specified by:
containsKey
in interfaceMap<String,
ServerVariable>
-
put
Deprecated.since 1.1In the next version,ServerVariables
will no longer extendsMap
, this method will no longer be present. UseaddServerVariable(String, ServerVariable)
instead.- Specified by:
put
in interfaceMap<String,
ServerVariable>
-
putAll
Deprecated.since 1.1In the next version,ServerVariables
will no longer extendsMap
, this method will no longer be present. UsesetServerVariables(Map)
instead.- Specified by:
putAll
in interfaceMap<String,
ServerVariable>
-
remove
Deprecated.since 1.1In the next version,ServerVariables
will no longer extendsMap
, this method will no longer be present. UseremoveServerVariable(String)
instead.- Specified by:
remove
in interfaceMap<String,
ServerVariable>
-
Map<String, ServerVariable>
, because it does not need to be extensible