Uses of Interface
java.util.Map
Packages that useMap
Package
Description
This is the core package of the Java Debug Interface (JDI), it defines mirrors for values, types, and the target VirtualMachine itself - as well bootstrapping facilities.
This package defines connections between the virtual machine using the JDI and the target virtual machine.
This package contains JDK extensions to the standard implementation of the
java.lang.management
API and also defines the management interface for some other components of the platform.Provides a simple high-level Http server API, which can be used to build embedded HTTP servers.
Provides implementations of
LoginModule
.This package contains the JConsole API.
Contains all of the classes for creating user interfaces and for painting graphics and images.
Provides interfaces and classes for transferring data between and within applications.
Provides classes and interface relating to fonts.
Provides classes and interfaces for the input method framework.
Provides classes that are fundamental to the design of the Java programming language.
Provides classfile parsing, generation, and transformation library.
Provides low-level access to memory and functions outside the Java runtime.
Provides services that allow Java programming language agents to instrument programs running on the Java Virtual Machine (JVM).
Provides the management interfaces for monitoring and management of the Java virtual machine and other components in the Java runtime.
Provides the classes for implementing networking applications.
HTTP Client and WebSocket APIs
Defines interfaces and classes for the Java virtual machine to access files, file attributes, and file systems.
Service-provider classes for the
java.nio.file
package.Provides the classes and interfaces for the security framework.
Provides classes and interfaces for parsing and managing certificates, certificate revocation lists (CRLs), and certification paths.
Provides the API for accessing and processing data stored in a data source (usually a relational database) using the Java programming language.
Provides classes and interfaces for handling text, dates, numbers, and messages in a manner independent of natural languages.
The main API for dates, times, instants, and durations.
Generic API for calendar systems other than the default ISO.
Provides classes to print and parse dates and times.
Access to date and time using fields and units, and date time adjusters.
Contains the collections framework, some internationalization support classes, a service loader, properties, random number generation, string parsing and scanning classes, base64 encoding and decoding, a bit array, and several miscellaneous utility classes.
Utility classes commonly useful in concurrent programming.
Provides classes for reading and writing the JAR (Java ARchive) file format, which is based on the standard ZIP file format with an optional manifest file.
Classes for matching character sequences against patterns specified by regular expressions.
Service provider classes for the classes in the java.util package.
Classes to support functional-style operations on streams of elements, such as map-reduce transformations on collections.
Facilities for declaring annotation processors and for allowing annotation processors to communicate with an annotation processing tool environment.
Interfaces used to model elements of the Java programming language.
Utilities to assist in the processing ofprogram elements andtypes.
Provides the core classes for the Java Management Extensions.
Provides the open data types and Open MBean descriptor classes.
Provides the definition of the Relation Service.
Interfaces for remote access to JMX MBean servers.
The RMI connector is a connector for the JMX Remote API that uses RMI to transmit client requests to a remote MBean server.
Provides the Service Provider Interface for DNS lookups when performing LDAP operations.
Package
javax.print.attribute.standard
contains classes for specific printing attributes.The scripting API consists of interfaces and classes that defineJava Scripting Engines and providesa framework for their use in Java applications.
This package provides a pluggable authentication framework.
This package provides the interface to be used for implementing pluggable authentication modules.
This package contains the classes that should be used to store X500 Principal and X500 Private Credentials in aSubject.
Contains class and interfaces for supporting SASL.
Provides interfaces and classes for I/O, sequencing, and synthesis of MIDI (Musical Instrument Digital Interface) data.
Provides interfaces and classes for capture, processing, and playback of sampled audio data.
Provides the API for server side data source access and processing from the Java programming language.
Standard interfaces and base classes for JDBC
RowSet
implementations.Provides utility classes to allow serializable mappings between SQL types and data types in the Java programming language.
Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
Parameter classes for XML digital signatures.
This package provides classes to create events and control Flight Recorder.
This package contains classes for consuming Flight Recorder data.
Provides interfaces for creating tools, such as a Read-Eval-Print Loop (REPL), which interactively evaluate "snippets" of Java programming language code.
Provides implementation support for building JShell execution engines.
Defines the Service Provider Interface for pluggable JShell execution engines.
Provides a mechanism to launch an instance of a Java shell tool.
This package contains classes to control and monitor Flight Recorder over Java Management Extensions (JMX).
Uses ofMap incom.sun.jdi
Methods incom.sun.jdi that returnMapModifier and TypeMethodDescriptionGets the value of multiple instance and/or static fields in this object.StackFrame.getValues
(List<? extendsLocalVariable> variables) Returns the values of multiple local variables in this frame.Methods incom.sun.jdi with parameters of typeMapModifier and TypeMethodDescriptionvoid
VirtualMachine.redefineClasses
(Map<? extendsReferenceType, byte[]> classToBytes) All classes given are redefined according to the definitions supplied.Uses ofMap incom.sun.jdi.connect
Methods incom.sun.jdi.connect that returnMapModifier and TypeMethodDescriptionConnector.defaultArguments()
Returns the arguments accepted by this Connector and their default values.Methods incom.sun.jdi.connect with parameters of typeMapModifier and TypeMethodDescriptionListeningConnector.accept
(Map<String, ? extendsConnector.Argument> arguments) Waits for a target VM to attach to this connector.AttachingConnector.attach
(Map<String, ? extendsConnector.Argument> arguments) Attaches to a running application and returns a mirror of its VM.LaunchingConnector.launch
(Map<String, ? extendsConnector.Argument> arguments) Launches an application and connects to its VM.ListeningConnector.startListening
(Map<String, ? extendsConnector.Argument> arguments) Listens for one or more connections initiated by target VMs.void
ListeningConnector.stopListening
(Map<String, ? extendsConnector.Argument> arguments) Cancels listening for connections.Uses ofMap incom.sun.management
Methods incom.sun.management that returnMapModifier and TypeMethodDescriptionGcInfo.getMemoryUsageAfterGc()
Returns the memory usage of all memory pools at the end of this GC.GcInfo.getMemoryUsageBeforeGc()
Returns the memory usage of all memory pools at the beginning of this GC.Uses ofMap incom.sun.net.httpserver
Classes incom.sun.net.httpserver that implementMapModifier and TypeClassDescriptionclass
Methods incom.sun.net.httpserver that returnMapMethods incom.sun.net.httpserver with parameters of typeMapModifier and TypeMethodDescriptionstaticHeaders
Returns an immutableHeaders
from the givenheaders
with the same header names and values.void
Constructors incom.sun.net.httpserver with parameters of typeMapUses ofMap incom.sun.security.auth.module
Methods incom.sun.security.auth.module with parameters of typeMapModifier and TypeMethodDescriptionvoid
JndiLoginModule.initialize
(Subject subject,CallbackHandler callbackHandler,Map<String, ?> sharedState,Map<String, ?> options) Initialize thisLoginModule
.void
KeyStoreLoginModule.initialize
(Subject subject,CallbackHandler callbackHandler,Map<String, ?> sharedState,Map<String, ?> options) Initialize thisLoginModule
.void
Krb5LoginModule.initialize
(Subject subject,CallbackHandler callbackHandler,Map<String, ?> sharedState,Map<String, ?> options) Initialize thisLoginModule
.void
LdapLoginModule.initialize
(Subject subject,CallbackHandler callbackHandler,Map<String, ?> sharedState,Map<String, ?> options) Initialize thisLoginModule
.void
NTLoginModule.initialize
(Subject subject,CallbackHandler callbackHandler,Map<String, ?> sharedState,Map<String, ?> options) Initialize thisLoginModule
.void
UnixLoginModule.initialize
(Subject subject,CallbackHandler callbackHandler,Map<String, ?> sharedState,Map<String, ?> options) Initialize thisLoginModule
.Uses ofMap incom.sun.tools.jconsole
Methods incom.sun.tools.jconsole that returnMapUses ofMap injava.awt
Modifier and TypeClassDescriptionclass
TheRenderingHints
class defines and manages collections of keys and associated values which allow an application to provide input into the choice of algorithms used by other classes which perform rendering and image manipulation services.Modifier and TypeMethodDescriptionMap
<TextAttribute, ?> Font.getAttributes()
Returns a map of font attributes available in thisFont
.abstractMap
<TextAttribute, ?> Toolkit.mapInputMethodHighlight
(InputMethodHighlight highlight) Returns a map of visual attributes for the abstract level description of the given input method highlight, or null if no mapping is found.Modifier and TypeMethodDescriptionabstract void
Graphics2D.addRenderingHints
(Map<?, ?> hints) Sets the values of an arbitrary number of preferences for the rendering algorithms.Font.deriveFont
(Map<? extendsAttributedCharacterIterator.Attribute, ?> attributes) Creates a newFont
object by replicating the currentFont
object and applying a new set of font attributes to it.staticFont
Font.getFont
(Map<? extendsAttributedCharacterIterator.Attribute, ?> attributes) Returns aFont
appropriate to the attributes.void
Copies all of the mappings from the specifiedMap
to thisRenderingHints
.abstract void
Graphics2D.setRenderingHints
(Map<?, ?> hints) Replaces the values of all preferences for the rendering algorithms with the specifiedhints
.ModifierConstructorDescriptionFont
(Map<? extendsAttributedCharacterIterator.Attribute, ?> attributes) Creates a newFont
with the specified attributes.RenderingHints
(Map<RenderingHints.Key, ?> init) Constructs a new object with keys and values initialized from the specified Map object which may be null.Uses ofMap injava.awt.datatransfer
Methods injava.awt.datatransfer that returnMapModifier and TypeMethodDescriptionFlavorMap.getFlavorsForNatives
(String[] natives) Returns aMap
of the specifiedString
natives to their correspondingDataFlavor
.SystemFlavorMap.getFlavorsForNatives
(String[] natives) Returns aMap
of the specifiedString
natives to their most preferredDataFlavor
.FlavorMap.getNativesForFlavors
(DataFlavor[] flavors) Returns aMap
of the specifiedDataFlavor
s to their correspondingString
native.SystemFlavorMap.getNativesForFlavors
(DataFlavor[] flavors) Returns aMap
of the specifiedDataFlavor
s to their most preferredString
native.Uses ofMap injava.awt.font
Constructors injava.awt.font with parameters of typeMapModifierConstructorDescriptionTextLayout
(String string,Map<? extendsAttributedCharacterIterator.Attribute, ?> attributes,FontRenderContext frc) Constructs aTextLayout
from aString
and an attribute set.Uses ofMap injava.awt.im
Methods injava.awt.im that returnMapModifier and TypeMethodDescriptionMap
<TextAttribute, ?> InputMethodHighlight.getStyle()
Returns the rendering style attributes for the text range, or null.Constructors injava.awt.im with parameters of typeMapModifierConstructorDescriptionInputMethodHighlight
(boolean selected, int state, int variation,Map<TextAttribute, ?> style) Constructs an input method highlight record.Uses ofMap injava.lang
Modifier and TypeMethodDescriptionProcessBuilder.environment()
Returns a string map view of this process builder's environment.staticMap
<Thread,StackTraceElement[]> Thread.getAllStackTraces()
Returns a map of stack traces for all live platform threads.System.getenv()
Returns an unmodifiable string map view of the current system environment.Uses ofMap injava.lang.classfile
Methods injava.lang.classfile with parameters of typeMapModifier and TypeMethodDescriptionstaticClassHierarchyResolver
ClassHierarchyResolver.of
(Collection<ClassDesc> interfaces,Map<ClassDesc,ClassDesc> classToSuperClass) Returns aClassHierarchyResolver
that extracts class hierarchy information from collections of class hierarchy metadata.Method parameters injava.lang.classfile with type arguments of typeMapModifier and TypeMethodDescriptiondefaultClassHierarchyResolver
ClassHierarchyResolver.cached
(Supplier<Map<ClassDesc,ClassHierarchyResolver.ClassHierarchyInfo>> cacheFactory) Returns aClassHierarchyResolver
that caches class hierarchy information from this resolver.Uses ofMap injava.lang.foreign
Methods injava.lang.foreign that returnMapModifier and TypeMethodDescriptionLinker.canonicalLayouts()
Returns an unmodifiable mapping between the names of data types used by the ABI implemented by this linker and theircanonical layouts.Uses ofMap injava.lang.instrument
Methods injava.lang.instrument with parameters of typeMapModifier and TypeMethodDescriptionvoid
Instrumentation.redefineModule
(Module module,Set<Module> extraReads,Map<String,Set<Module>> extraExports,Map<String,Set<Module>> extraOpens,Set<Class<?>> extraUses,Map<Class<?>,List<Class<?>>> extraProvides) Redefine a module to expand the set of modules that it reads, the set of packages that it exports or opens, or the services that it uses or provides.Uses ofMap injava.lang.management
Methods injava.lang.management that returnMapModifier and TypeMethodDescriptionRuntimeMXBean.getSystemProperties()
Returns a map of names and values of all system properties.Uses ofMap injava.net
Modifier and TypeMethodDescriptionGets all the applicable cookies from a cookie cache for the specified uri in the request header.URLConnection.getHeaderFields()
Returns an unmodifiable Map of the header fields.CacheResponse.getHeaders()
Returns the response headers as a Map.URLConnection.getRequestProperties()
Returns an unmodifiable Map of general request properties for this connection.Modifier and TypeMethodDescriptionGets all the applicable cookies from a cookie cache for the specified uri in the request header.abstractCacheResponse
Retrieve the cached response based on the requesting uri, request method and request headers.abstract void
Sets all the applicable cookies, examples are response header fields that are named Set-Cookie2, present in the response headers into a cookie cache.void
Uses ofMap injava.net.http
Methods injava.net.http that returnMapModifier and TypeMethodDescriptionHttpHeaders.map()
Returns an unmodifiable multi Map view of this HttpHeaders.Methods injava.net.http with parameters of typeMapUses ofMap injava.nio.file
Methods injava.nio.file that returnMapModifier and TypeMethodDescriptionFiles.readAttributes
(Path path,String attributes,LinkOption... options) Reads a set of file attributes as a bulk operation.Methods injava.nio.file with parameters of typeMapModifier and TypeMethodDescriptionstaticFileSystem
FileSystems.newFileSystem
(URI uri,Map<String, ?> env) Constructs a new file system that is identified by aURI
staticFileSystem
FileSystems.newFileSystem
(URI uri,Map<String, ?> env,ClassLoader loader) Constructs a new file system that is identified by aURI
staticFileSystem
FileSystems.newFileSystem
(Path path,Map<String, ?> env) Constructs a newFileSystem
to access the contents of a file as a file system.staticFileSystem
FileSystems.newFileSystem
(Path path,Map<String, ?> env,ClassLoader loader) Constructs a newFileSystem
to access the contents of a file as a file system.Uses ofMap injava.nio.file.spi
Methods injava.nio.file.spi that returnMapModifier and TypeMethodDescriptionFileSystemProvider.readAttributes
(Path path,String attributes,LinkOption... options) Reads a set of file attributes as a bulk operation.Methods injava.nio.file.spi with parameters of typeMapModifier and TypeMethodDescriptionabstractFileSystem
FileSystemProvider.newFileSystem
(URI uri,Map<String, ?> env) Constructs a newFileSystem
object identified by a URI.FileSystemProvider.newFileSystem
(Path path,Map<String, ?> env) Constructs a newFileSystem
to access the contents of a file as a file system.Uses ofMap injava.security
Classes injava.security that implementMapModifier and TypeClassDescriptionclass
This class defines login and logout methods for a provider.class
This class represents a "provider" for the Java Security API, where a provider implements some or all parts of Java Security.Methods injava.security that returnMapModifier and TypeMethodDescriptionDomainLoadStoreParameter.getProtectionParams()
Gets the keystore protection parameters for keystores in this domain.Methods injava.security with parameters of typeMapModifier and TypeMethodDescriptionstaticProvider[]
Security.getProviders
(Map<String, String> filter) Returns an array containing all installed providers that satisfy the specified selection criteria, ornull
if no such providers have been installed.void
Copies all the mappings from the specified Map to thisProvider
.Constructors injava.security with parameters of typeMapModifierConstructorDescriptionDomainLoadStoreParameter
(URI configuration,Map<String,KeyStore.ProtectionParameter> protectionParams) Constructs aDomainLoadStoreParameter
for a keystore domain with the parameters used to protect keystore data.Service
(Provider provider,String type,String algorithm,String className,List<String> aliases,Map<String, String> attributes) Construct a new service.Uses ofMap injava.security.cert
Methods injava.security.cert that returnMapModifier and TypeMethodDescriptionCertificateRevokedException.getExtensions()
Returns a map of X.509 extensions containing additional information about the revoked certificate, such as the Invalidity Date Extension.Map
<X509Certificate, byte[]> PKIXRevocationChecker.getOcspResponses()
Gets the OCSP responses.Methods injava.security.cert with parameters of typeMapModifier and TypeMethodDescriptionvoid
PKIXRevocationChecker.setOcspResponses
(Map<X509Certificate, byte[]> responses) Sets the OCSP responses.Constructors injava.security.cert with parameters of typeMapModifierConstructorDescriptionCertificateRevokedException
(Date revocationDate,CRLReason reason,X500Principal authority,Map<String,Extension> extensions) Constructs aCertificateRevokedException
with the specified revocation date, reason code, authority name, and map of extensions.Uses ofMap injava.sql
Modifier and TypeMethodDescriptionSQLClientInfoException.getFailedProperties()
Returns the list of client info properties that could not be set.Connection.getTypeMap()
Retrieves theMap
object associated with thisConnection
object.Modifier and TypeMethodDescriptionRetrieves a slice of the SQLARRAY
value designated by thisArray
object, beginning with the specifiedindex
and containing up tocount
successive elements of the SQL array.Retrieves the contents of the SQLARRAY
value designated by thisArray
object.Object[]
Struct.getAttributes
(Map<String, Class<?>> map) Produces the ordered values of the attributes of the SQL structured type that thisStruct
object represents.Returns an object representing the value of OUT parameterparameterIndex
and usesmap
for the custom mapping of the parameter value.Returns an object representing the value of OUT parameterparameterName
and usesmap
for the custom mapping of the parameter value.Retrieves the referenced object and maps it to a Java type using the given type map.Retrieves the value of the designated column in the current row of thisResultSet
object as anObject
in the Java programming language.Retrieves the value of the designated column in the current row of thisResultSet
object as anObject
in the Java programming language.Array.getResultSet
(long index, int count,Map<String, Class<?>> map) Retrieves a result set holding the elements of the subarray that starts at indexindex
and contains up tocount
successive elements.Array.getResultSet
(Map<String, Class<?>> map) Retrieves a result set that contains the elements of the SQLARRAY
value designated by thisArray
object.void
Connection.setTypeMap
(Map<String, Class<?>> map) Installs the givenTypeMap
object as the type map for thisConnection
object.ModifierConstructorDescriptionSQLClientInfoException
(String reason,String SQLState, int vendorCode,Map<String,ClientInfoStatus> failedProperties) Constructs aSQLClientInfoException
object initialized with a givenreason
,SQLState
,vendorCode
andfailedProperties
.SQLClientInfoException
(String reason,String SQLState, int vendorCode,Map<String,ClientInfoStatus> failedProperties,Throwable cause) Constructs aSQLClientInfoException
object initialized with a givenreason
,SQLState
,cause
,vendorCode
andfailedProperties
.SQLClientInfoException
(String reason,String SQLState,Map<String,ClientInfoStatus> failedProperties) Constructs aSQLClientInfoException
object initialized with a givenreason
,SQLState
andfailedProperties
.SQLClientInfoException
(String reason,String SQLState,Map<String,ClientInfoStatus> failedProperties,Throwable cause) Constructs aSQLClientInfoException
object initialized with a givenreason
,SQLState
,cause
andfailedProperties
.SQLClientInfoException
(String reason,Map<String,ClientInfoStatus> failedProperties) Constructs aSQLClientInfoException
object initialized with a givenreason
andfailedProperties
.SQLClientInfoException
(String reason,Map<String,ClientInfoStatus> failedProperties,Throwable cause) Constructs aSQLClientInfoException
object initialized with a givenreason
,cause
andfailedProperties
.SQLClientInfoException
(Map<String,ClientInfoStatus> failedProperties) Constructs aSQLClientInfoException
object initialized with a givenfailedProperties
.SQLClientInfoException
(Map<String,ClientInfoStatus> failedProperties,Throwable cause) Constructs aSQLClientInfoException
object initialized with a givencause
andfailedProperties
.Uses ofMap injava.text
Modifier and TypeMethodDescriptionAttributedCharacterIterator.getAttributes()
Returns a map with the attributes defined on the current character.Modifier and TypeMethodDescriptionvoid
AttributedString.addAttributes
(Map<? extendsAttributedCharacterIterator.Attribute, ?> attributes, int beginIndex, int endIndex) Adds a set of attributes to a subrange of the string.ModifierConstructorDescriptionAttributedString
(String text,Map<? extendsAttributedCharacterIterator.Attribute, ?> attributes) Constructs an AttributedString instance with the given text and attributes.Uses ofMap injava.time
Modifier and TypeFieldDescriptionZoneId.SHORT_IDS
A map of zone overrides to enable the short time-zone names to be used.Uses ofMap injava.time.chrono
Methods injava.time.chrono with parameters of typeMapModifier and TypeMethodDescriptionAbstractChronology.resolveDate
(Map<TemporalField,Long> fieldValues,ResolverStyle resolverStyle) Resolves parsedChronoField
values into a date during parsing.Chronology.resolveDate
(Map<TemporalField,Long> fieldValues,ResolverStyle resolverStyle) Resolves parsedChronoField
values into a date during parsing.HijrahChronology.resolveDate
(Map<TemporalField,Long> fieldValues,ResolverStyle resolverStyle) IsoChronology.resolveDate
(Map<TemporalField,Long> fieldValues,ResolverStyle resolverStyle) Resolves parsedChronoField
values into a date during parsing.JapaneseChronology.resolveDate
(Map<TemporalField,Long> fieldValues,ResolverStyle resolverStyle) MinguoChronology.resolveDate
(Map<TemporalField,Long> fieldValues,ResolverStyle resolverStyle) ThaiBuddhistChronology.resolveDate
(Map<TemporalField,Long> fieldValues,ResolverStyle resolverStyle) Uses ofMap injava.time.format
Methods injava.time.format with parameters of typeMapModifier and TypeMethodDescriptionDateTimeFormatterBuilder.appendText
(TemporalField field,Map<Long, String> textLookup) Appends the text of a date-time field to the formatter using the specified map to supply the text.Uses ofMap injava.time.temporal
Methods injava.time.temporal with parameters of typeMapModifier and TypeMethodDescriptiondefaultTemporalAccessor
TemporalField.resolve
(Map<TemporalField,Long> fieldValues,TemporalAccessor partialTemporal,ResolverStyle resolverStyle) Resolves this field to provide a simpler alternative or a date.Uses ofMap injava.util
Modifier and TypeInterfaceDescriptioninterface
NavigableMap<K,
V> ASortedMap
extended with navigation methods returning the closest matches for given search targets.interface
SequencedMap<K,
V> A Map that has a well-defined encounter order, that supports operations at both ends, and that is reversible.interface
SortedMap<K,
V> AMap
that further provides atotal ordering on its keys.Modifier and TypeClassDescriptionclass
AbstractMap<K,
V> This class provides a skeletal implementation of theMap
interface, to minimize the effort required to implement this interface.class
A specializedMap
implementation for use with enum type keys.class
HashMap<K,
V> Hash table based implementation of theMap
interface.class
Hashtable<K,
V> This class implements a hash table, which maps keys to values.class
IdentityHashMap<K,
V> This class implements theMap
interface with a hash table, using reference-equality in place of object-equality when comparing keys (and values).class
LinkedHashMap<K,
V> Hash table and linked list implementation of theMap
interface, with well-defined encounter order.class
TheProperties
class represents a persistent set of properties.class
TreeMap<K,
V> A Red-Black tree basedNavigableMap
implementation.class
WeakHashMap<K,
V> Hash table based implementation of theMap
interface, withweak keys.Modifier and TypeMethodDescriptionstatic <K,
V> Map <K, V> Collections.checkedMap
(Map<K, V> m,Class<K> keyType,Class<V> valueType) Returns a dynamically typesafe view of the specified map.static <K,
V> Map <K, V> Returns anunmodifiable Map containing the entries of the given Map.static final <K,
V> Map <K, V> Collections.emptyMap()
Returns an empty map (immutable).Calendar.getDisplayNames
(int field, int style,Locale locale) Returns aMap
containing all names of the calendarfield
in the givenstyle
andlocale
and their corresponding field values.static <K,
V> Map <K, V> Map.of()
Returns an unmodifiable map containing zero mappings.static <K,
V> Map <K, V> Map.of
(K k1, V v1) Returns an unmodifiable map containing a single mapping.static <K,
V> Map <K, V> Map.of
(K k1, V v1, K k2, V v2) Returns an unmodifiable map containing two mappings.static <K,
V> Map <K, V> Map.of
(K k1, V v1, K k2, V v2, K k3, V v3) Returns an unmodifiable map containing three mappings.static <K,
V> Map <K, V> Map.of
(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4) Returns an unmodifiable map containing four mappings.static <K,
V> Map <K, V> Map.of
(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5) Returns an unmodifiable map containing five mappings.static <K,
V> Map <K, V> Map.of
(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6) Returns an unmodifiable map containing six mappings.static <K,
V> Map <K, V> Map.of
(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7) Returns an unmodifiable map containing seven mappings.static <K,
V> Map <K, V> Map.of
(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8) Returns an unmodifiable map containing eight mappings.static <K,
V> Map <K, V> Map.of
(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8, K k9, V v9) Returns an unmodifiable map containing nine mappings.static <K,
V> Map <K, V> Map.of
(K k1, V v1, K k2, V v2, K k3, V v3, K k4, V v4, K k5, V v5, K k6, V v6, K k7, V v7, K k8, V v8, K k9, V v9, K k10, V v10) Returns an unmodifiable map containing ten mappings.static <K,
V> Map <K, V> Returns an unmodifiable map containing keys and values extracted from the given entries.static <K,
V> Map <K, V> Collections.singletonMap
(K key, V value) Returns an immutable map, mapping only the specified key to the specified value.static <K,
V> Map <K, V> Collections.synchronizedMap
(Map<K, V> m) Returns a synchronized (thread-safe) map backed by the specified map.static <K,
V> Map <K, V> Collections.unmodifiableMap
(Map<? extends K, ? extends V> m) Returns anunmodifiable view of the specified map.Modifier and TypeMethodDescriptionstatic <K,
V> Map <K, V> Collections.checkedMap
(Map<K, V> m,Class<K> keyType,Class<V> valueType) Returns a dynamically typesafe view of the specified map.static <K,
V> Map <K, V> Returns anunmodifiable Map containing the entries of the given Map.staticList
<Locale.LanguageRange> Locale.LanguageRange.mapEquivalents
(List<Locale.LanguageRange> priorityList,Map<String,List<String>> map) Generates a new customized Language Priority List using the givenpriorityList
andmap
.static <E> Set
<E> Collections.newSetFromMap
(Map<E, Boolean> map) Returns a set backed by the specified map.staticList
<Locale.LanguageRange> Parses the givenranges
to generate a Language Priority List, and then customizes the list using the givenmap
.void
Copies all of the mappings from the specified map to this map (optional operation).void
Copies all of the mappings from the specified map to this map.void
Copies all of the mappings from the specified map to this map.void
Copies all of the mappings from the specified map to this hashtable.void
Copies all of the mappings from the specified map to this map.void
Copies all of the mappings from the specified map to this map (optional operation).void
Copies all of the mappings from the specified map to this map.void
Copies all of the mappings from the specified map to this map.static <K,
V> Map <K, V> Collections.synchronizedMap
(Map<K, V> m) Returns a synchronized (thread-safe) map backed by the specified map.static <K,
V> Map <K, V> Collections.unmodifiableMap
(Map<? extends K, ? extends V> m) Returns anunmodifiable view of the specified map.ModifierConstructorDescriptionCreates an enum map initialized from the specified map.Constructs a newHashMap
with the same mappings as the specifiedMap
.Constructs a new hashtable with the same mappings as the given Map.IdentityHashMap
(Map<? extendsK, ? extendsV> m) Constructs a new identity hash map containing the key-value mappings in the specified map.LinkedHashMap
(Map<? extendsK, ? extendsV> m) Constructs an insertion-orderedLinkedHashMap
instance with the same mappings as the specified map.Constructs a new tree map containing the same mappings as the given map, ordered according to thenatural ordering of its keys.WeakHashMap
(Map<? extendsK, ? extendsV> m) Constructs a newWeakHashMap
with the same mappings as the specified map.Uses ofMap injava.util.concurrent
Subinterfaces ofMap injava.util.concurrentModifier and TypeInterfaceDescriptioninterface
ConcurrentMap<K,
V> AMap
providing thread safety and atomicity guarantees.interface
AConcurrentMap
supportingNavigableMap
operations, and recursively so for its navigable sub-maps.Classes injava.util.concurrent that implementMapModifier and TypeClassDescriptionclass
ConcurrentHashMap<K,
V> A hash table supporting full concurrency of retrievals and high expected concurrency for updates.class
A scalable concurrentConcurrentNavigableMap
implementation.Methods injava.util.concurrent with parameters of typeMapModifier and TypeMethodDescriptionvoid
Copies all of the mappings from the specified map to this one.Constructors injava.util.concurrent with parameters of typeMapModifierConstructorDescriptionConcurrentHashMap
(Map<? extendsK, ? extendsV> m) Creates a new map with the same mappings as the given map.ConcurrentSkipListMap
(Map<? extendsK, ? extendsV> m) Constructs a new map containing the same mappings as the given map, sorted according to thenatural ordering of the keys.Uses ofMap injava.util.jar
Classes injava.util.jar that implementMapModifier and TypeClassDescriptionclass
The Attributes class maps Manifest attribute names to associated string values.Fields injava.util.jar declared asMapMethods injava.util.jar that returnMapModifier and TypeMethodDescriptionManifest.getEntries()
Returns a Map of the entries contained in this Manifest.Methods injava.util.jar with parameters of typeMapUses ofMap injava.util.regex
Methods injava.util.regex that returnMapModifier and TypeMethodDescriptionMatcher.namedGroups()
Returns an unmodifiable map from capturing group names to group numbers.MatchResult.namedGroups()
Returns an unmodifiable map from capturing group names to group numbers.Pattern.namedGroups()
Returns an unmodifiable map from capturing group names to group numbers.Uses ofMap injava.util.spi
Methods injava.util.spi that returnMapModifier and TypeMethodDescriptionCalendarNameProvider.getDisplayNames
(String calendarType, int field, int style,Locale locale) Returns aMap
containing all string representations (display names) of theCalendar
field
in the givenstyle
andlocale
and their corresponding field values.Uses ofMap injava.util.stream
Methods injava.util.stream with type parameters of typeMapModifier and TypeMethodDescriptionCollectors.groupingBy
(Function<? super T, ? extends K> classifier,Supplier<M> mapFactory,Collector<? super T, A, D> downstream) Returns aCollector
implementing a cascaded "group by" operation on input elements of typeT
, grouping elements according to a classification function, and then performing a reduction operation on the values associated with a given key using the specified downstreamCollector
.Collectors.toMap
(Function<? super T, ? extends K> keyMapper,Function<? super T, ? extends U> valueMapper,BinaryOperator<U> mergeFunction,Supplier<M> mapFactory) Returns aCollector
that accumulates elements into aMap
whose keys and values are the result of applying the provided mapping functions to the input elements.Methods injava.util.stream that return types with arguments of typeMapModifier and TypeMethodDescriptionCollectors.groupingBy
(Function<? super T, ? extends K> classifier) Returns aCollector
implementing a "group by" operation on input elements of typeT
, grouping elements according to a classification function, and returning the results in aMap
.Collectors.groupingBy
(Function<? super T, ? extends K> classifier,Collector<? super T, A, D> downstream) Returns aCollector
implementing a cascaded "group by" operation on input elements of typeT
, grouping elements according to a classification function, and then performing a reduction operation on the values associated with a given key using the specified downstreamCollector
.Collectors.partitioningBy
(Predicate<? super T> predicate) Returns aCollector
which partitions the input elements according to aPredicate
, and organizes them into aMap<Boolean, List<T>>
.Collectors.partitioningBy
(Predicate<? super T> predicate,Collector<? super T, A, D> downstream) Returns aCollector
which partitions the input elements according to aPredicate
, reduces the values in each partition according to anotherCollector
, and organizes them into aMap<Boolean, D>
whose values are the result of the downstream reduction.Collectors.toMap
(Function<? super T, ? extends K> keyMapper,Function<? super T, ? extends U> valueMapper) Returns aCollector
that accumulates elements into aMap
whose keys and values are the result of applying the provided mapping functions to the input elements.Collectors.toMap
(Function<? super T, ? extends K> keyMapper,Function<? super T, ? extends U> valueMapper,BinaryOperator<U> mergeFunction) Returns aCollector
that accumulates elements into aMap
whose keys and values are the result of applying the provided mapping functions to the input elements.Collectors.toUnmodifiableMap
(Function<? super T, ? extends K> keyMapper,Function<? super T, ? extends U> valueMapper) Returns aCollector
that accumulates the input elements into anunmodifiable Map, whose keys and values are the result of applying the provided mapping functions to the input elements.Collectors.toUnmodifiableMap
(Function<? super T, ? extends K> keyMapper,Function<? super T, ? extends U> valueMapper,BinaryOperator<U> mergeFunction) Returns aCollector
that accumulates the input elements into anunmodifiable Map, whose keys and values are the result of applying the provided mapping functions to the input elements.Uses ofMap injavax.annotation.processing
Methods injavax.annotation.processing that returnMapModifier and TypeMethodDescriptionProcessingEnvironment.getOptions()
Returns the processor-specific options passed to the annotation processing tool.Uses ofMap injavax.lang.model.element
Methods injavax.lang.model.element that returnMapModifier and TypeMethodDescriptionMap
<? extendsExecutableElement, ? extendsAnnotationValue> AnnotationMirror.getElementValues()
Returns the values of this annotation's elements.Uses ofMap injavax.lang.model.util
Methods injavax.lang.model.util that returnMapModifier and TypeMethodDescriptionMap
<? extendsExecutableElement, ? extendsAnnotationValue> Elements.getElementValuesWithDefaults
(AnnotationMirror a) Returns the values of an annotation's elements, including defaults.Uses ofMap injavax.management
Constructors injavax.management with parameters of typeMapModifierConstructorDescriptionImmutableDescriptor
(Map<String, ?> fields) Construct a descriptor where the names and values of the fields are the keys and values of the given Map.Uses ofMap injavax.management.openmbean
Classes injavax.management.openmbean that implementMapModifier and TypeClassDescriptionclass
TheTabularDataSupport
class is theopen data class which implements theTabularData
and theMap
interfaces, and which is internally based on a hash map data structure.Methods injavax.management.openmbean with parameters of typeMapModifier and TypeMethodDescriptionvoid
Add all the values contained in the specified mapt to thisTabularData
instance.Constructors injavax.management.openmbean with parameters of typeMapModifierConstructorDescriptionCompositeDataSupport
(CompositeType compositeType,Map<String, ?> items) Constructs aCompositeDataSupport
instance with the specifiedcompositeType
, whose item names and corresponding values are given by the mappings in the mapitems
.Uses ofMap injavax.management.relation
Methods injavax.management.relation that returnMapModifier and TypeMethodDescriptionRelationService.findAssociatedMBeans
(ObjectName mbeanName,String relationTypeName,String roleName) Retrieves the MBeans associated to given one in a relation.RelationServiceMBean.findAssociatedMBeans
(ObjectName mbeanName,String relationTypeName,String roleName) Retrieves the MBeans associated to given one in a relation.RelationService.findReferencingRelations
(ObjectName mbeanName,String relationTypeName,String roleName) Retrieves the relations where a given MBean is referenced.RelationServiceMBean.findReferencingRelations
(ObjectName mbeanName,String relationTypeName,String roleName) Retrieves the relations where a given MBean is referenced.Relation.getReferencedMBeans()
Retrieves MBeans referenced in the various roles of the relation.RelationService.getReferencedMBeans
(String relationId) Retrieves MBeans referenced in the various roles of the relation.RelationServiceMBean.getReferencedMBeans
(String relationId) Retrieves MBeans referenced in the various roles of the relation.RelationSupport.getReferencedMBeans()
Retrieves MBeans referenced in the various roles of the relation.Uses ofMap injavax.management.remote
Methods injavax.management.remote that returnMapModifier and TypeMethodDescriptionJMXConnectorServerMBean.getAttributes()
The attributes for this connector server.Methods injavax.management.remote with parameters of typeMapModifier and TypeMethodDescriptionvoid
Establishes the connection to the connector server.staticJMXConnector
JMXConnectorFactory.connect
(JMXServiceURL serviceURL,Map<String, ?> environment) Creates a connection to the connector server at the given address.staticJMXConnector
JMXConnectorFactory.newJMXConnector
(JMXServiceURL serviceURL,Map<String, ?> environment) Creates a connector client for the connector server at the given address.JMXConnectorProvider.newJMXConnector
(JMXServiceURL serviceURL,Map<String, ?> environment) Creates a new connector client that is ready to connect to the connector server at the given address.staticJMXConnectorServer
JMXConnectorServerFactory.newJMXConnectorServer
(JMXServiceURL serviceURL,Map<String, ?> environment,MBeanServer mbeanServer) Creates a connector server at the given address.JMXConnectorServerProvider.newJMXConnectorServer
(JMXServiceURL serviceURL,Map<String, ?> environment,MBeanServer mbeanServer) Creates a new connector server at the given address.JMXConnectorServer.toJMXConnector
(Map<String, ?> env) Returns a client stub for this connector server.JMXConnectorServerMBean.toJMXConnector
(Map<String, ?> env) Returns a client stub for this connector server.Uses ofMap injavax.management.remote.rmi
Methods injavax.management.remote.rmi that returnMapMethods injavax.management.remote.rmi with parameters of typeMapModifier and TypeMethodDescriptionvoid
RMIConnectorServer.toJMXConnector
(Map<String, ?> env) Returns a client stub for this connector server.Constructors injavax.management.remote.rmi with parameters of typeMapModifierConstructorDescriptionRMIConnectionImpl
(RMIServerImpl rmiServer,String connectionId,ClassLoader defaultClassLoader,Subject subject,Map<String, ?> env) Constructs a newRMIConnection
.RMIConnector
(JMXServiceURL url,Map<String, ?> environment) Constructs anRMIConnector
that will connect the RMI connector server with the given address.RMIConnector
(RMIServer rmiServer,Map<String, ?> environment) Constructs anRMIConnector
using the given RMI stub.RMIConnectorServer
(JMXServiceURL url,Map<String, ?> environment) Makes anRMIConnectorServer
.RMIConnectorServer
(JMXServiceURL url,Map<String, ?> environment,MBeanServer mbeanServer) Makes anRMIConnectorServer
for the given MBean server.RMIConnectorServer
(JMXServiceURL url,Map<String, ?> environment,RMIServerImpl rmiServerImpl,MBeanServer mbeanServer) Makes anRMIConnectorServer
for the given MBean server.RMIJRMPServerImpl
(int port,RMIClientSocketFactory csf,RMIServerSocketFactory ssf,Map<String, ?> env) Creates a newRMIServer
object that will be exported on the given port using the given socket factories.RMIServerImpl
(Map<String, ?> env) Constructs a newRMIServerImpl
.Uses ofMap injavax.naming.ldap.spi
Methods injavax.naming.ldap.spi with parameters of typeMapModifier and TypeMethodDescriptionabstractOptional
<LdapDnsProviderResult> LdapDnsProvider.lookupEndpoints
(String url,Map<?, ?> env) Lookup the endpoints and domain name for the givenContext
provider URL
and environment.Uses ofMap injavax.print.attribute.standard
Classes injavax.print.attribute.standard that implementMapModifier and TypeClassDescriptionfinal class
ClassPrinterStateReasons
is a printing attribute class, a set of enumeration values, that provides additional information about the printer's current state, i.e., information that augments the value of the printer'sPrinterState
attribute.Constructors injavax.print.attribute.standard with parameters of typeMapModifierConstructorDescriptionConstruct a new printer state reasons attribute that contains the samePrinterStateReason
-to-Severity
mappings as the given map.Uses ofMap injavax.script
Subinterfaces ofMap injavax.scriptModifier and TypeInterfaceDescriptioninterface
A mapping of key/value pairs, all of whose keys areStrings
.Classes injavax.script that implementMapModifier and TypeClassDescriptionclass
A simple implementation of Bindings backed by aHashMap
or some other specifiedMap
.Methods injavax.script with parameters of typeMapModifier and TypeMethodDescriptionvoid
Adds all the mappings in a givenMap
to thisBindings
.void
putAll
is implemented usingMap.putAll
.Constructors injavax.script with parameters of typeMapModifierConstructorDescriptionConstructor uses an existingMap
to store the values.Uses ofMap injavax.security.auth.login
Methods injavax.security.auth.login that returnMapModifier and TypeMethodDescriptionAppConfigurationEntry.getOptions()
Get the options configured for thisLoginModule
.Constructors injavax.security.auth.login with parameters of typeMapModifierConstructorDescriptionAppConfigurationEntry
(String loginModuleName,AppConfigurationEntry.LoginModuleControlFlag controlFlag,Map<String, ?> options) Default constructor for this class.Uses ofMap injavax.security.auth.spi
Methods injavax.security.auth.spi with parameters of typeMapModifier and TypeMethodDescriptionvoid
LoginModule.initialize
(Subject subject,CallbackHandler callbackHandler,Map<String, ?> sharedState,Map<String, ?> options) Initialize thisLoginModule
.Uses ofMap injavax.security.auth.x500
Methods injavax.security.auth.x500 with parameters of typeMapModifier and TypeMethodDescriptionReturns a string representation of the X.500 distinguished name using the specified format.Constructors injavax.security.auth.x500 with parameters of typeMapModifierConstructorDescriptionX500Principal
(String name,Map<String, String> keywordMap) Creates anX500Principal
from a string representation of an X.500 distinguished name (ex: "CN=Duke, OU=JavaSoft, O=Sun Microsystems, C=US").Uses ofMap injavax.security.sasl
Methods injavax.security.sasl with parameters of typeMapModifier and TypeMethodDescriptionstaticSaslClient
Sasl.createSaslClient
(String[] mechanisms,String authorizationId,String protocol,String serverName,Map<String, ?> props,CallbackHandler cbh) Creates aSaslClient
using the parameters supplied.SaslClientFactory.createSaslClient
(String[] mechanisms,String authorizationId,String protocol,String serverName,Map<String, ?> props,CallbackHandler cbh) Creates a SaslClient using the parameters supplied.staticSaslServer
Sasl.createSaslServer
(String mechanism,String protocol,String serverName,Map<String, ?> props,CallbackHandler cbh) Creates aSaslServer
for the specified mechanism.SaslServerFactory.createSaslServer
(String mechanism,String protocol,String serverName,Map<String, ?> props,CallbackHandler cbh) Creates aSaslServer
using the parameters supplied.String[]
SaslClientFactory.getMechanismNames
(Map<String, ?> props) Returns an array of names of mechanisms that match the specified mechanism selection policies.String[]
SaslServerFactory.getMechanismNames
(Map<String, ?> props) Returns an array of names of mechanisms that match the specified mechanism selection policies.Uses ofMap injavax.sound.midi
Methods injavax.sound.midi that returnMapModifier and TypeMethodDescriptionMidiFileFormat.properties()
Obtain an unmodifiable map of properties.Constructors injavax.sound.midi with parameters of typeMapModifierConstructorDescriptionMidiFileFormat
(int type, float divisionType, int resolution, int bytes, long microseconds,Map<String, Object> properties) Construct aMidiFileFormat
with a set of properties.Uses ofMap injavax.sound.sampled
Methods injavax.sound.sampled that returnMapModifier and TypeMethodDescriptionAudioFileFormat.properties()
Obtain an unmodifiable map of properties.AudioFormat.properties()
Obtain an unmodifiable map of properties.Constructors injavax.sound.sampled with parameters of typeMapModifierConstructorDescriptionAudioFileFormat
(AudioFileFormat.Type type,AudioFormat format, int frameLength,Map<String, Object> properties) Construct an audio file format object with a set of defined properties.AudioFormat
(AudioFormat.Encoding encoding, float sampleRate, int sampleSizeInBits, int channels, int frameSize, float frameRate, boolean bigEndian,Map<String, Object> properties) Constructs anAudioFormat
with the given parameters.Uses ofMap injavax.sql
Modifier and TypeMethodDescriptionRowSet.getTypeMap()
Retrieves theMap
object associated with thisRowSet
object, which specifies the custom mapping of SQL user-defined types, if any.Modifier and TypeMethodDescriptionvoid
RowSet.setTypeMap
(Map<String, Class<?>> map) Installs the givenjava.util.Map
object as the default type map for thisRowSet
object.Uses ofMap injavax.sql.rowset
Methods injavax.sql.rowset that returnMapModifier and TypeMethodDescriptionBaseRowSet.getTypeMap()
Retrieves the type map associated with theConnection
object for thisRowSet
object.Methods injavax.sql.rowset with parameters of typeMapModifier and TypeMethodDescriptionvoid
BaseRowSet.setTypeMap
(Map<String, Class<?>> map) Installs the givenjava.util.Map
object as the type map associated with theConnection
object for thisRowSet
object.Uses ofMap injavax.sql.rowset.serial
Methods injavax.sql.rowset.serial with parameters of typeMapModifier and TypeMethodDescriptionReturns a new array that is a copy of a slice of thisSerialArray
object, starting with the element at the given index and containing the given number of consecutive elements.Returns a new array that is a copy of thisSerialArray
object, using the given type map for the custom mapping of each element when the elements are SQL UDTs.Object[]
SerialStruct.getAttributes
(Map<String, Class<?>> map) Retrieves the attributes for the SQL structured type that thisSerialStruct
represents as an array ofObject
values, using the given type map for custom mapping if appropriate.Returns anObject
representing the SQL structured type to which thisSerialRef
object refers.SerialArray.getResultSet
(long index, int count,Map<String, Class<?>> map) Retrieves a result set holding the elements of the subarray that starts at Retrieves aResultSet
object that contains a subarray of the elements in thisSerialArray
object, starting at indexindex and containing up tocount successive elements.SerialArray.getResultSet
(Map<String, Class<?>> map) Retrieves aResultSet
object that contains all of the elements of the SQLARRAY
value represented by thisSerialArray
object.Constructors injavax.sql.rowset.serial with parameters of typeMapModifierConstructorDescriptionSerialArray
(Array array,Map<String, Class<?>> map) Constructs a newSerialArray
object from the givenArray
object, using the given type map for the custom mapping of each element when the elements are SQL UDTs.SerialStruct
(SQLData in,Map<String, Class<?>> map) Constructs aSerialStruct
object from the givenSQLData
object, using the given type map to custom map it to a class in the Java programming language.SerialStruct
(Struct in,Map<String, Class<?>> map) Constructs aSerialStruct
object from the givenStruct
object, using the givenjava.util.Map
object for custom mapping the SQL structured type or any of its attributes that are SQL structured types.SQLInputImpl
(Object[] attributes,Map<String, Class<?>> map) Creates anSQLInputImpl
object initialized with the given array of attributes and the given type map.SQLOutputImpl
(Vector<?> attributes,Map<String, ?> map) Creates a newSQLOutputImpl
object initialized with the given vector of attributes and type map.Uses ofMap injavax.swing
Classes injavax.swing that implementMapUses ofMap injavax.xml.crypto.dsig.spec
Methods injavax.xml.crypto.dsig.spec that returnMapModifier and TypeMethodDescriptionXPathFilterParameterSpec.getNamespaceMap()
Returns a map of namespace prefixes.XPathType.getNamespaceMap()
Returns a map of namespace prefixes.Constructors injavax.xml.crypto.dsig.spec with parameters of typeMapModifierConstructorDescriptionXPathFilterParameterSpec
(String xPath,Map<String, String> namespaceMap) Creates anXPathFilterParameterSpec
with the specified XPath expression and namespace map.Creates anXPathType
instance with the specified XPath expression, filter, and namespace map.Uses ofMap injdk.jfr
Modifier and TypeMethodDescriptionConfiguration.getSettings()
Returns the settings that specifies how a recording is configured.Recording.getSettings()
Returns settings used by this recording.Modifier and TypeMethodDescriptionvoid
Recording.setSettings
(Map<String, String> settings) Replaces all settings for this recording.ModifierConstructorDescriptionAnnotationElement
(Class<? extendsAnnotation> annotationType,Map<String, Object> values) Creates an annotation element to use for dynamically defined events.Creates a recording with settings from a map of name-value pairs.Uses ofMap injdk.jfr.consumer
Methods injdk.jfr.consumer with parameters of typeMapModifier and TypeMethodDescriptionvoid
RecordingStream.setSettings
(Map<String, String> settings) Replaces all settings for this recording stream.Uses ofMap injdk.jshell
Methods injdk.jshell with parameters of typeMapModifier and TypeMethodDescriptionJShell.Builder.executionEngine
(ExecutionControlProvider executionControlProvider,Map<String, String> executionControlParameters) Sets the custom engine for execution.Uses ofMap injdk.jshell.execution
Methods injdk.jshell.execution that returnMapModifier and TypeMethodDescriptionFailOverExecutionControlProvider.defaultParameters()
Create and return the default parameter map for thisExecutionControlProvider
.JdiExecutionControlProvider.defaultParameters()
Create and return the default parameter map for thisExecutionControlProvider
.LocalExecutionControlProvider.defaultParameters()
Create and return the default parameter map forLocalExecutionControlProvider
.Methods injdk.jshell.execution with parameters of typeMapModifier and TypeMethodDescriptionLocalExecutionControlProvider.createExecutionControl
(ExecutionEnv env,Map<String, String> parameters) Create a newExecutionControl
instance.static void
Util.forwardExecutionControlAndIO
(ExecutionControl ec,InputStream inStream,OutputStream outStream,Map<String,Consumer<OutputStream>> outputStreamMap,Map<String,Consumer<InputStream>> inputStreamMap) Forward commands from the input to the specifiedExecutionControl
instance, then responses back on the output.FailOverExecutionControlProvider.generate
(ExecutionEnv env,Map<String, String> parameters) Create and return a locally executingExecutionControl
instance.JdiExecutionControlProvider.generate
(ExecutionEnv env,Map<String, String> parameters) LocalExecutionControlProvider.generate
(ExecutionEnv env,Map<String, String> parameters) Create and return a locally executingExecutionControl
instance.staticExecutionControl
Util.remoteInputOutput
(InputStream input,OutputStream output,Map<String,OutputStream> outputStreamMap,Map<String,InputStream> inputStreamMap,BiFunction<ObjectInput,ObjectOutput,ExecutionControl> factory) Creates an ExecutionControl for given packetized input and output.JdiDefaultExecutionControl.JdiStarter.start
(ExecutionEnv env,Map<String, String> parameters, int port) Start the external process based on the given parameters.Constructors injdk.jshell.execution with parameters of typeMapUses ofMap injdk.jshell.spi
Methods injdk.jshell.spi that returnMapModifier and TypeMethodDescriptionExecutionControlProvider.defaultParameters()
Create and return the default parameter map for thisExecutionControlProvider
.Methods injdk.jshell.spi with parameters of typeMapModifier and TypeMethodDescriptionstaticExecutionControl
Search for a provider, then create and return theExecutionControl
instance.ExecutionControlProvider.generate
(ExecutionEnv env,Map<String, String> parameters) Create and return theExecutionControl
instance.Uses ofMap injdk.jshell.tool
Methods injdk.jshell.tool with parameters of typeMapModifier and TypeMethodDescriptionSet the source for environment variables.JavaShellToolBuilder.persistence
(Map<String, String> prefsMap) Set the storage mechanism for persistent information which includes input history and retained settings.Uses ofMap injdk.management.jfr
Methods injdk.management.jfr that returnMapModifier and TypeMethodDescriptionFlightRecorderMXBean.getRecordingOptions
(long recordingId) Returns a map that contains the options for the recording with the specified ID (for example, the destination file or time span to keep recorded data).FlightRecorderMXBean.getRecordingSettings
(long recordingId) Returns aMap
that contains the settings for the recording with the specified ID, (for example, the event thresholds)ConfigurationInfo.getSettings()
Returns the settings for the configuration associated with thisConfigurationInfo
.RecordingInfo.getSettings()
Returns the settings for the recording associated with thisRecordingInfo
.Methods injdk.management.jfr with parameters of typeMapModifier and TypeMethodDescriptionlong
FlightRecorderMXBean.openStream
(long recordingId,Map<String, String> streamOptions) Opens a data stream for the recording with the specified ID, or0
to get data irrespective of recording.void
FlightRecorderMXBean.setRecordingOptions
(long recordingId,Map<String, String> options) Configures the recording options (for example, destination file and time span to keep data).void
FlightRecorderMXBean.setRecordingSettings
(long recordingId,Map<String, String> settings) Sets and replaces all previous settings for the specified recording.void
RemoteRecordingStream.setSettings
(Map<String, String> settings) Replaces all settings for this recording stream.