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.booleancontainsKey(Object key) Deprecated.since 1.1Deprecated.since 1.1default ServerVariablegetServerVariable(String name) Deprecated.Returns a server variable for a given name.Deprecated.Returns a copy map (potentially immutable) of the server variables.default booleanhasServerVariable(String name) Deprecated.Check whether a server variable is present in the map.put(String key, ServerVariable value) Deprecated.since 1.1voidputAll(Map<? extends String, ? extends ServerVariable> m) Deprecated.since 1.1Deprecated.since 1.1voidremoveServerVariable(String name) Deprecated.Removes the given server variables.voidsetServerVariables(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, setExtensionsMethods 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,ServerVariableswill no longer extendsMap, this method will no longer be present. UsegetServerVariable(String)instead.- Specified by:
getin interfaceMap<String,ServerVariable>
-
containsKey
Deprecated.since 1.1In the next version,ServerVariableswill no longer extendsMap, this method will no longer be present. UsehasServerVariable(String)instead.- Specified by:
containsKeyin interfaceMap<String,ServerVariable>
-
put
Deprecated.since 1.1In the next version,ServerVariableswill no longer extendsMap, this method will no longer be present. UseaddServerVariable(String, ServerVariable)instead.- Specified by:
putin interfaceMap<String,ServerVariable>
-
putAll
Deprecated.since 1.1In the next version,ServerVariableswill no longer extendsMap, this method will no longer be present. UsesetServerVariables(Map)instead.- Specified by:
putAllin interfaceMap<String,ServerVariable>
-
remove
Deprecated.since 1.1In the next version,ServerVariableswill no longer extendsMap, this method will no longer be present. UseremoveServerVariable(String)instead.- Specified by:
removein interfaceMap<String,ServerVariable>
-
Map<String, ServerVariable>, because it does not need to be extensible