Uses of Interface
java.util.Set
Packages that useSet
Package
Description
This package defines JDI events and event processing.
Provides a simple high-level Http server API, which can be used to build embedded HTTP servers.
A Java API for Stream Control Transport Protocol.
Provides interfaces to represent source code as abstract syntax trees (AST).
Contains all of the classes for creating user interfaces and for painting graphics and images.
Provides classes and interface relating to fonts.
Provides classes that are fundamental to the design of the Java programming language.
Provides services that allow Java programming language agents to instrument programs running on the JVM.
Provides the management interfaces for monitoring and management of theJava virtual machine and other components in the Java runtime.
Classes to support module descriptors and creating configurations of modules by means of resolution and service binding.
Provides the classes for implementing networking applications.
Defines channels, which represent connections to entities that are capable of performing I/O operations, such as files and sockets; defines selectors, for multiplexed, non-blocking I/O operations.
Service-provider classes for the
java.nio.channels package.Defines charsets, decoders, and encoders, for translating between bytes and Unicode characters.
Defines interfaces and classes for the Java virtual machine to access files, file attributes, and file systems.
Interfaces and classes providing access to file and file system attributes.
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 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.
Support for time-zones and their rules.
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 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.
The main package of the Java Image I/O API.
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 classes which implement advanced dynamic loading.
Provides the open data types and Open MBean descriptor classes.
The RMI connector is a connector for the JMX Remote API that uses RMI to transmit client requests to a remote MBean server.
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 framework for authentication and authorization.
Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
Provides interfaces for tools which can be invoked from a program, for example, compilers.
Contains the linker for ordinary Java objects.
The Doclet API provides an environment which, in conjunction with the Language Model API and Compiler Tree API, allows clients to inspect the source-level structures of programs and libraries, including API comments embedded in the source.
This package provides classes to create events and control Flight Recorder.
Platform specific socket options for the
java.net andjava.nio.channels socket classes.Uses ofSet incom.sun.jdi.event
Subinterfaces ofSet incom.sun.jdi.eventModifier and TypeInterfaceDescriptioninterfaceSeveralEventobjects may be created at a given time by the targetVirtualMachine.Uses ofSet incom.sun.net.httpserver
Methods incom.sun.net.httpserver that returnSetUses ofSet incom.sun.nio.sctp
Methods incom.sun.nio.sctp that returnSetModifier and TypeMethodDescriptionabstractSet<Association>SctpMultiChannel.associations()Returns the open associations on this channel's socket.abstractSet<SocketAddress>SctpChannel.getAllLocalAddresses()Returns all of the socket addresses to which this channel's socket is bound.abstractSet<SocketAddress>SctpMultiChannel.getAllLocalAddresses()Returns all of the socket addresses to which this channel's socket is bound.abstractSet<SocketAddress>SctpServerChannel.getAllLocalAddresses()Returns all of the socket addresses to which this channel's socket is bound.abstractSet<SocketAddress>SctpChannel.getRemoteAddresses()Returns all of the remote addresses to which this channel's socket is connected.abstractSet<SocketAddress>SctpMultiChannel.getRemoteAddresses(Association association) Returns all of the remote addresses to which the given association on this channel's socket is connected.abstractSet<SctpSocketOption<?>>SctpChannel.supportedOptions()Returns a set of the socket options supported by this channel.abstractSet<SctpSocketOption<?>>SctpMultiChannel.supportedOptions()Returns a set of the socket options supported by this channel.abstractSet<SctpSocketOption<?>>SctpServerChannel.supportedOptions()Returns a set of the socket options supported by this channel.Uses ofSet incom.sun.source.tree
Methods incom.sun.source.tree that returnSetUses ofSet injava.awt
Modifier and TypeMethodDescriptionRenderingHints.entrySet()Returns aSetview of the mappings contained in thisRenderingHints.KeyboardFocusManager.getDefaultFocusTraversalKeys(int id) Returns a Set of default focus traversal keys for a given traversal operation.Component.getFocusTraversalKeys(int id) Returns the Set of focus traversal keys for a given traversal operation for this Component.Container.getFocusTraversalKeys(int id) Returns the Set of focus traversal keys for a given traversal operation for this Container.Window.getFocusTraversalKeys(int id) Gets a focus traversal key for this Window.RenderingHints.keySet()Returns aSetview of the Keys contained in thisRenderingHints.Modifier and TypeMethodDescriptionvoidKeyboardFocusManager.setDefaultFocusTraversalKeys(int id,Set<? extendsAWTKeyStroke> keystrokes) Sets the default focus traversal keys for a given traversal operation.voidComponent.setFocusTraversalKeys(int id,Set<? extendsAWTKeyStroke> keystrokes) Sets the focus traversal keys for a given traversal operation for this Component.voidContainer.setFocusTraversalKeys(int id,Set<? extendsAWTKeyStroke> keystrokes) Sets the focus traversal keys for a given traversal operation for this Container.Uses ofSet injava.awt.font
Methods injava.awt.font that returnSetModifier and TypeMethodDescriptionNumericShaper.getRangeSet()Returns aSetrepresenting all the Unicode ranges in thisNumericShaperthat will be shaped.Methods injava.awt.font with parameters of typeSetModifier and TypeMethodDescriptionstaticNumericShaperNumericShaper.getContextualShaper(Set<NumericShaper.Range> ranges) Returns a contextual shaper for the provided Unicode range(s).staticNumericShaperNumericShaper.getContextualShaper(Set<NumericShaper.Range> ranges,NumericShaper.Range defaultContext) Returns a contextual shaper for the provided Unicode range(s).Uses ofSet injava.lang
Modifier and TypeMethodDescriptionModule.getPackages()Returns the set of package names for the packages in this module.ModuleLayer.modules()Returns an unmodifiable set of the modules in this layer.Modifier and TypeMethodDescriptionstaticStackWalkerStackWalker.getInstance(Set<StackWalker.Option> options) Returns aStackWalkerinstance with the givenoptionsspecifying the stack frame information it can access.staticStackWalkerStackWalker.getInstance(Set<StackWalker.Option> options, int estimateDepth) Returns aStackWalkerinstance with the givenoptionsspecifying the stack frame information it can access.Uses ofSet injava.lang.instrument
Methods injava.lang.instrument with parameters of typeSetModifier and TypeMethodDescriptionvoidInstrumentation.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.Method parameters injava.lang.instrument with type arguments of typeSetModifier and TypeMethodDescriptionvoidInstrumentation.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 ofSet injava.lang.management
Methods injava.lang.management that returnSetModifier and TypeMethodDescriptionstaticSet<Class<? extendsPlatformManagedObject>>ManagementFactory.getPlatformManagementInterfaces()Returns the set ofClassobjects, subinterface ofPlatformManagedObject, representing all management interfaces for monitoring and managing the Java platform.Uses ofSet injava.lang.module
Methods injava.lang.module that returnSetModifier and TypeMethodDescriptionModuleDescriptor.exports()Returns the set ofExportsobjects representing the exported packages.ModuleFinder.findAll()Returns the set of all module references that this finder can locate.ModuleDescriptor.Exports.modifiers()Returns the set of modifiers.ModuleDescriptor.modifiers()Returns the set of module modifiers.ModuleDescriptor.Opens.modifiers()Returns the set of modifiers.ModuleDescriptor.Requires.modifiers()Returns the set of modifiers.Configuration.modules()Returns an unmodifiable set of the resolved modules in this configuration.ModuleDescriptor.opens()Returns the set ofOpensobjects representing the open packages.ModuleDescriptor.packages()Returns the set of packages in the module.ModuleDescriptor.provides()Returns the set ofProvidesobjects representing the services that the module provides.ResolvedModule.reads()Returns the set of resolved modules that this resolved module reads.ModuleDescriptor.requires()Returns the set ofRequiresobjects representing the module dependences.ModuleDescriptor.Exports.targets()For a qualified export, returns the non-empty and immutable set of the module names to which the package is exported.ModuleDescriptor.Opens.targets()For a qualifiedOpens, returns the non-empty and immutable set of the module names to which the package is open.ModuleDescriptor.uses()Returns the set of service dependences.Methods injava.lang.module with parameters of typeSetModifier and TypeMethodDescriptionAdds an exported package.ModuleDescriptor.Builder.exports(Set<ModuleDescriptor.Exports.Modifier> ms,String pn) Adds an exported package with the given (and possibly empty) set of modifiers.ModuleDescriptor.Builder.exports(Set<ModuleDescriptor.Exports.Modifier> ms,String pn,Set<String> targets) Adds an exported package with the given (and possibly empty) set of modifiers.staticModuleDescriptor.BuilderModuleDescriptor.newModule(String name,Set<ModuleDescriptor.Modifier> ms) Instantiates a builder to build a module descriptor.Adds an open package.ModuleDescriptor.Builder.opens(Set<ModuleDescriptor.Opens.Modifier> ms,String pn) Adds an open package with the given (and possibly empty) set of modifiers.ModuleDescriptor.Builder.opens(Set<ModuleDescriptor.Opens.Modifier> ms,String pn,Set<String> targets) Adds an open package with the given (and possibly empty) set of modifiers.Adds packages to the module.ModuleDescriptor.Builder.requires(Set<ModuleDescriptor.Requires.Modifier> ms,String mn) Adds a dependence on a module with the given (and possibly empty) set of modifiers.ModuleDescriptor.Builder.requires(Set<ModuleDescriptor.Requires.Modifier> ms,String mn,ModuleDescriptor.Version compiledVersion) Adds a dependence on a module with the given (and possibly empty) set of modifiers.Method parameters injava.lang.module with type arguments of typeSetModifier and TypeMethodDescriptionstaticModuleDescriptorModuleDescriptor.read(InputStream in,Supplier<Set<String>> packageFinder) Reads the binary form of a module declaration from an input stream as a module descriptor.staticModuleDescriptorModuleDescriptor.read(ByteBuffer bb,Supplier<Set<String>> packageFinder) Reads the binary form of a module declaration from a byte buffer as a module descriptor.Uses ofSet injava.net
Modifier and TypeMethodDescriptionSet<SocketOption<?>>DatagramSocket.supportedOptions()Returns a set of the socket options supported by this socket.protectedSet<SocketOption<?>>DatagramSocketImpl.supportedOptions()Returns a set of SocketOptions supported by this impl and by this impl's socket (DatagramSocket or MulticastSocket)Set<SocketOption<?>>ServerSocket.supportedOptions()Returns a set of the socket options supported by this server socket.Set<SocketOption<?>>Socket.supportedOptions()Returns a set of the socket options supported by this socket.protectedSet<SocketOption<?>>SocketImpl.supportedOptions()Returns a set of SocketOptions supported by this impl and by this impl's socket (Socket or ServerSocket)Uses ofSet injava.nio.channels
Methods injava.nio.channels that returnSetModifier and TypeMethodDescriptionabstractSet<SelectionKey>Selector.keys()Returns this selector's key set.abstractSet<SelectionKey>Selector.selectedKeys()Returns this selector's selected-key set.Set<SocketOption<?>>NetworkChannel.supportedOptions()Returns a set of the socket options supported by this channel.Methods injava.nio.channels with parameters of typeSetModifier and TypeMethodDescriptionstaticAsynchronousFileChannelAsynchronousFileChannel.open(Path file,Set<? extendsOpenOption> options,ExecutorService executor,FileAttribute<?>... attrs) Opens or creates a file for reading and/or writing, returning an asynchronous file channel to access the file.staticFileChannelFileChannel.open(Path path,Set<? extendsOpenOption> options,FileAttribute<?>... attrs) Opens or creates a file, returning a file channel to access the file.Uses ofSet injava.nio.channels.spi
Methods injava.nio.channels.spi that returnSetModifier and TypeMethodDescriptionprotected finalSet<SelectionKey>AbstractSelector.cancelledKeys()Retrieves this selector's cancelled-key set.Uses ofSet injava.nio.charset
Methods injava.nio.charset that returnSetUses ofSet injava.nio.file
Methods injava.nio.file that returnSetModifier and TypeMethodDescriptionstaticSet<PosixFilePermission>Files.getPosixFilePermissions(Path path,LinkOption... options) Returns a file's POSIX file permissions.FileSystem.supportedFileAttributeViews()Returns the set of thenamesof the file attribute views supported by thisFileSystem.Methods injava.nio.file with parameters of typeSetModifier and TypeMethodDescriptionstaticSeekableByteChannelFiles.newByteChannel(Path path,Set<? extendsOpenOption> options,FileAttribute<?>... attrs) Opens or creates a file, returning a seekable byte channel to access the file.SecureDirectoryStream.newByteChannel(T path,Set<? extendsOpenOption> options,FileAttribute<?>... attrs) Opens or creates a file in this directory, returning a seekable byte channel to access the file.staticPathFiles.setPosixFilePermissions(Path path,Set<PosixFilePermission> perms) Sets a file's POSIX permissions.staticPathFiles.walkFileTree(Path start,Set<FileVisitOption> options, int maxDepth,FileVisitor<? superPath> visitor) Walks a file tree.Uses ofSet injava.nio.file.attribute
Methods injava.nio.file.attribute that returnSetModifier and TypeMethodDescriptionAclEntry.flags()Returns a copy of the flags component.staticSet<PosixFilePermission>PosixFilePermissions.fromString(String perms) Returns the set of permissions corresponding to a givenStringrepresentation.AclEntry.permissions()Returns a copy of the permissions component.PosixFileAttributes.permissions()Returns the permissions of the file.Methods injava.nio.file.attribute that return types with arguments of typeSetModifier and TypeMethodDescriptionstaticFileAttribute<Set<PosixFilePermission>>PosixFilePermissions.asFileAttribute(Set<PosixFilePermission> perms) Creates aFileAttribute, encapsulating a copy of the given file permissions, suitable for passing to thecreateFileorcreateDirectorymethods.Methods injava.nio.file.attribute with parameters of typeSetModifier and TypeMethodDescriptionstaticFileAttribute<Set<PosixFilePermission>>PosixFilePermissions.asFileAttribute(Set<PosixFilePermission> perms) Creates aFileAttribute, encapsulating a copy of the given file permissions, suitable for passing to thecreateFileorcreateDirectorymethods.AclEntry.Builder.setFlags(Set<AclEntryFlag> flags) Sets the flags component of this builder.AclEntry.Builder.setPermissions(Set<AclEntryPermission> perms) Sets the permissions component of this builder.voidPosixFileAttributeView.setPermissions(Set<PosixFilePermission> perms) Updates the file permissions.staticStringPosixFilePermissions.toString(Set<PosixFilePermission> perms) Returns theStringrepresentation of a set of permissions.Uses ofSet injava.nio.file.spi
Methods injava.nio.file.spi with parameters of typeSetModifier and TypeMethodDescriptionFileSystemProvider.newAsynchronousFileChannel(Path path,Set<? extendsOpenOption> options,ExecutorService executor,FileAttribute<?>... attrs) Opens or creates a file for reading and/or writing, returning an asynchronous file channel to access the file.abstractSeekableByteChannelFileSystemProvider.newByteChannel(Path path,Set<? extendsOpenOption> options,FileAttribute<?>... attrs) Opens or creates a file, returning a seekable byte channel to access the file.FileSystemProvider.newFileChannel(Path path,Set<? extendsOpenOption> options,FileAttribute<?>... attrs) Opens or creates a file for reading and/or writing, returning a file channel to access the file.Uses ofSet injava.security
Methods injava.security that returnSetModifier and TypeMethodDescriptionProvider.entrySet()Returns an unmodifiable Set view of the property entries contained in this Provider.Security.getAlgorithms(String serviceName) Returns a Set of Strings containing the names of all available algorithms or types for the specified Java cryptographic service (e.g., Signature, MessageDigest, Cipher, Mac, KeyStore).defaultSet<KeyStore.Entry.Attribute>KeyStore.Entry.getAttributes()Retrieves the attributes associated with an entry.KeyStore.PrivateKeyEntry.getAttributes()Retrieves the attributes associated with an entry.KeyStore.SecretKeyEntry.getAttributes()Retrieves the attributes associated with an entry.KeyStore.TrustedCertificateEntry.getAttributes()Retrieves the attributes associated with an entry.Provider.getServices()Get an unmodifiable Set of all services supported by this Provider.Provider.keySet()Returns an unmodifiable Set view of the property keys contained in this provider.Methods injava.security with parameters of typeSetModifier and TypeMethodDescriptionbooleanAlgorithmConstraints.permits(Set<CryptoPrimitive> primitives,String algorithm,AlgorithmParameters parameters) Determines whether an algorithm is granted permission for the specified cryptographic primitives.booleanAlgorithmConstraints.permits(Set<CryptoPrimitive> primitives,String algorithm,Key key,AlgorithmParameters parameters) Determines whether an algorithm and the corresponding key are granted permission for the specified cryptographic primitives.booleanAlgorithmConstraints.permits(Set<CryptoPrimitive> primitives,Key key) Determines whether a key is granted permission for the specified cryptographic primitives.Constructors injava.security with parameters of typeSetModifierConstructorDescriptionPrivateKeyEntry(PrivateKey privateKey,Certificate[] chain,Set<KeyStore.Entry.Attribute> attributes) Constructs aPrivateKeyEntrywith aPrivateKeyand corresponding certificate chain and associated entry attributes.SecretKeyEntry(SecretKey secretKey,Set<KeyStore.Entry.Attribute> attributes) Constructs aSecretKeyEntrywith aSecretKeyand associated entry attributes.TrustedCertificateEntry(Certificate trustedCert,Set<KeyStore.Entry.Attribute> attributes) Constructs aTrustedCertificateEntrywith a trustedCertificateand associated entry attributes.Uses ofSet injava.security.cert
Methods injava.security.cert that returnSetModifier and TypeMethodDescriptionX509Extension.getCriticalExtensionOIDs()Gets a Set of the OID strings for the extension(s) marked CRITICAL in the certificate/CRL managed by the object implementing this interface.PolicyNode.getExpectedPolicies()Returns the set of expected policies that would satisfy this node's valid policy in the next certificate to be processed.X509CertSelector.getExtendedKeyUsage()Returns the extendedKeyUsage criterion.PKIXParameters.getInitialPolicies()Returns an immutableSetof initial policy identifiers (OID strings), indicating that any one of these policies would be acceptable to the certificate user for the purposes of certification path processing.X509Extension.getNonCriticalExtensionOIDs()Gets a Set of the OID strings for the extension(s) marked NON-CRITICAL in the certificate/CRL managed by the object implementing this interface.PKIXRevocationChecker.getOptions()Gets the revocation options.X509CertSelector.getPolicy()Returns the policy criterion.Set<? extendsPolicyQualifierInfo>PolicyNode.getPolicyQualifiers()Returns the set of policy qualifiers associated with the valid policy represented by this node.abstractSet<? extendsX509CRLEntry>X509CRL.getRevokedCertificates()Gets all the entries from this CRL.PKIXCertPathChecker.getSupportedExtensions()Returns an immutableSetof X.509 certificate extensions that thisPKIXCertPathCheckersupports (i.e. recognizes, is able to process), ornullif no extensions are supported.PKIXParameters.getTrustAnchors()Returns an immutableSetof the most-trusted CAs.Methods injava.security.cert with parameters of typeSetModifier and TypeMethodDescriptionvoidX509CertSelector.setExtendedKeyUsage(Set<String> keyPurposeSet) Sets the extendedKeyUsage criterion.voidPKIXParameters.setInitialPolicies(Set<String> initialPolicies) Sets theSetof initial policy identifiers (OID strings), indicating that any one of these policies would be acceptable to the certificate user for the purposes of certification path processing.voidPKIXRevocationChecker.setOptions(Set<PKIXRevocationChecker.Option> options) Sets the revocation options.voidSets the policy constraint.voidPKIXParameters.setTrustAnchors(Set<TrustAnchor> trustAnchors) Sets theSetof most-trusted CAs.Constructors injava.security.cert with parameters of typeSetModifierConstructorDescriptionPKIXBuilderParameters(Set<TrustAnchor> trustAnchors,CertSelector targetConstraints) Creates an instance ofPKIXBuilderParameterswith the specifiedSetof most-trusted CAs.PKIXParameters(Set<TrustAnchor> trustAnchors) Creates an instance ofPKIXParameterswith the specifiedSetof most-trusted CAs.Uses ofSet injava.text
Modifier and TypeMethodDescriptionAttributedCharacterIterator.getAllAttributeKeys()Returns the keys of all attributes defined on the iterator's text range.Modifier and TypeMethodDescriptionintAttributedCharacterIterator.getRunLimit(Set<? extendsAttributedCharacterIterator.Attribute> attributes) Returns the index of the first character following the run with respect to the givenattributescontaining the current character.intAttributedCharacterIterator.getRunStart(Set<? extendsAttributedCharacterIterator.Attribute> attributes) Returns the index of the first character of the run with respect to the givenattributescontaining the current character.Uses ofSet injava.time
Uses ofSet injava.time.chrono
Methods injava.time.chrono that returnSetModifier and TypeMethodDescriptionstaticSet<Chronology>Chronology.getAvailableChronologies()Returns the available chronologies.Uses ofSet injava.time.format
Methods injava.time.format that returnSetModifier and TypeMethodDescriptionDecimalStyle.getAvailableLocales()Lists all the locales that are supported.DateTimeFormatter.getResolverFields()Gets the resolver fields to use during parsing.Methods injava.time.format with parameters of typeSetModifier and TypeMethodDescriptionDateTimeFormatterBuilder.appendGenericZoneText(TextStyle textStyle,Set<ZoneId> preferredZones) Appends the generic time-zone name, such as 'Pacific Time', to the formatter.DateTimeFormatterBuilder.appendZoneText(TextStyle textStyle,Set<ZoneId> preferredZones) Appends the time-zone name, such as 'British Summer Time', to the formatter.DateTimeFormatter.withResolverFields(Set<TemporalField> resolverFields) Returns a copy of this formatter with a new set of resolver fields.Uses ofSet injava.time.zone
Methods injava.time.zone that returnSetModifier and TypeMethodDescriptionZoneRulesProvider.getAvailableZoneIds()Gets the set of available zone IDs.ZoneRulesProvider.provideZoneIds()SPI method to get the available zone IDs.Uses ofSet injava.util
Modifier and TypeInterfaceDescriptioninterfaceNavigableSet<E>ASortedSetextended with navigation methods reporting closest matches for given search targets.interfaceSortedSet<E>ASetthat further provides atotal ordering on its elements.Modifier and TypeClassDescriptionclassAbstractSet<E>This class provides a skeletal implementation of theSetinterface to minimize the effort required to implement this interface.classA specializedSetimplementation for use with enum types.classHashSet<E>This class implements theSetinterface, backed by a hash table (actually aHashMapinstance).classHash table and linked list implementation of theSetinterface, with predictable iteration order.classTreeSet<E>ANavigableSetimplementation based on aTreeMap.Modifier and TypeMethodDescriptionstatic <E> Set<E>Collections.checkedSet(Set<E> s,Class<E> type) Returns a dynamically typesafe view of the specified set.static <E> Set<E>Set.copyOf(Collection<? extends E> coll) Returns anunmodifiable Set containing the elements of the given Collection.static final <T> Set<T>Collections.emptySet()Returns an empty set (immutable).EnumMap.entrySet()Returns aSetview of the mappings contained in this map.HashMap.entrySet()Returns aSetview of the mappings contained in this map.Hashtable.entrySet()Returns aSetview of the mappings contained in this map.IdentityHashMap.entrySet()Returns aSetview of the mappings contained in this map.LinkedHashMap.entrySet()Returns aSetview of the mappings contained in this map.Map.entrySet()Returns aSetview of the mappings contained in this map.SortedMap.entrySet()Returns aSetview of the mappings contained in this map.TreeMap.entrySet()Returns aSetview of the mappings contained in this map.WeakHashMap.entrySet()Returns aSetview of the mappings contained in this map.Calendar.getAvailableCalendarTypes()Returns an unmodifiableSetcontaining all calendar types supported byCalendarin the runtime environment.Currency.getAvailableCurrencies()Gets the set of available currencies.Locale.getExtensionKeys()Returns the set of extension keys associated with this locale, or the empty set if it has no extensions.Locale.getISOCountries(Locale.IsoCountryCode type) Returns aSetof ISO3166 country codes for the specified type.Locale.getUnicodeLocaleAttributes()Returns the set of unicode locale attributes associated with this locale, or the empty set if it has no attributes.Locale.getUnicodeLocaleKeys()Returns the set of Unicode locale keys defined by this locale, or the empty set if this locale has none.ListResourceBundle.handleKeySet()Returns aSetof the keys containedonly in thisResourceBundle.PropertyResourceBundle.handleKeySet()Returns aSetof the keys containedonly in thisResourceBundle.ResourceBundle.handleKeySet()Returns aSetof the keys containedonly in thisResourceBundle.AbstractMap.keySet()Returns aSetview of the keys contained in this map.EnumMap.keySet()Returns aSetview of the keys contained in this map.HashMap.keySet()Returns aSetview of the keys contained in this map.Hashtable.keySet()Returns aSetview of the keys contained in this map.IdentityHashMap.keySet()Returns an identity-based set view of the keys contained in this map.LinkedHashMap.keySet()Returns aSetview of the keys contained in this map.Map.keySet()Returns aSetview of the keys contained in this map.ResourceBundle.keySet()Returns aSetof all keys contained in thisResourceBundleand its parent bundles.SortedMap.keySet()Returns aSetview of the keys contained in this map.TreeMap.keySet()Returns aSetview of the keys contained in this map.WeakHashMap.keySet()Returns aSetview of the keys contained in this map.static <E> Set<E>Collections.newSetFromMap(Map<E, Boolean> map) Returns a set backed by the specified map.static <E> Set<E>Set.of()Returns an unmodifiable set containing zero elements.static <E> Set<E>Set.of(E e1) Returns an unmodifiable set containing one element.static <E> Set<E>Set.of(E... elements) Returns an unmodifiable set containing an arbitrary number of elements.static <E> Set<E>Set.of(E e1, E e2) Returns an unmodifiable set containing two elements.static <E> Set<E>Set.of(E e1, E e2, E e3) Returns an unmodifiable set containing three elements.static <E> Set<E>Set.of(E e1, E e2, E e3, E e4) Returns an unmodifiable set containing four elements.static <E> Set<E>Set.of(E e1, E e2, E e3, E e4, E e5) Returns an unmodifiable set containing five elements.static <E> Set<E>Set.of(E e1, E e2, E e3, E e4, E e5, E e6) Returns an unmodifiable set containing six elements.static <E> Set<E>Set.of(E e1, E e2, E e3, E e4, E e5, E e6, E e7) Returns an unmodifiable set containing seven elements.static <E> Set<E>Set.of(E e1, E e2, E e3, E e4, E e5, E e6, E e7, E e8) Returns an unmodifiable set containing eight elements.static <E> Set<E>Set.of(E e1, E e2, E e3, E e4, E e5, E e6, E e7, E e8, E e9) Returns an unmodifiable set containing nine elements.static <E> Set<E>Set.of(E e1, E e2, E e3, E e4, E e5, E e6, E e7, E e8, E e9, E e10) Returns an unmodifiable set containing ten elements.static <T> Set<T>Collections.singleton(T o) Returns an immutable set containing only the specified object.Properties.stringPropertyNames()Returns an unmodifiable set of keys from this property list where the key and its corresponding value are strings, including distinct keys in the default property list if a key of the same name has not already been found from the main properties list.static <T> Set<T>Collections.synchronizedSet(Set<T> s) Returns a synchronized (thread-safe) set backed by the specified set.static <T> Set<T>Collections.unmodifiableSet(Set<? extends T> s) Returns anunmodifiable view of the specified set.Modifier and TypeMethodDescriptionstatic <E> Set<E>Collections.checkedSet(Set<E> s,Class<E> type) Returns a dynamically typesafe view of the specified set.static <T> Set<T>Collections.synchronizedSet(Set<T> s) Returns a synchronized (thread-safe) set backed by the specified set.static <T> Set<T>Collections.unmodifiableSet(Set<? extends T> s) Returns anunmodifiable view of the specified set.Uses ofSet injava.util.concurrent
Classes injava.util.concurrent that implementSetModifier and TypeClassDescriptionstatic classA view of a ConcurrentHashMap as aSetof keys, in which additions may optionally be enabled by mapping to a common value.classA scalable concurrentNavigableSetimplementation based on aConcurrentSkipListMap.classASetthat uses an internalCopyOnWriteArrayListfor all of its operations.Methods injava.util.concurrent that returnSetUses ofSet injava.util.jar
Methods injava.util.jar that returnSetUses ofSet injava.util.stream
Methods injava.util.stream that returnSetModifier and TypeMethodDescriptionCollector.characteristics()Returns aSetofCollector.Characteristicsindicating the characteristics of this Collector.Methods injava.util.stream that return types with arguments of typeSetModifier and TypeMethodDescriptionCollectors.toSet()Returns aCollectorthat accumulates the input elements into a newSet.Collectors.toUnmodifiableSet()Returns aCollectorthat accumulates the input elements into anunmodifiable Set.Uses ofSet injavax.annotation.processing
Methods injavax.annotation.processing that returnSetModifier and TypeMethodDescriptionRoundEnvironment.getElementsAnnotatedWith(Class<? extendsAnnotation> a) Returns the elements annotated with the given annotation type.RoundEnvironment.getElementsAnnotatedWith(TypeElement a) Returns the elements annotated with the given annotation type.RoundEnvironment.getElementsAnnotatedWithAny(Set<Class<? extendsAnnotation>> annotations) Returns the elements annotated with one or more of the given annotation types.RoundEnvironment.getElementsAnnotatedWithAny(TypeElement... annotations) Returns the elements annotated with one or more of the given annotation types.RoundEnvironment.getRootElements()Returns theroot elements for annotation processing generated by the prior round.AbstractProcessor.getSupportedAnnotationTypes()If the processor class is annotated withSupportedAnnotationTypes, return an unmodifiable set with the same set of strings as the annotation.Processor.getSupportedAnnotationTypes()Returns the names of the annotation interfaces supported by this processor.AbstractProcessor.getSupportedOptions()If the processor class is annotated withSupportedOptions, return an unmodifiable set with the same set of strings as the annotation.Processor.getSupportedOptions()Returns the options recognized by this processor.Methods injavax.annotation.processing with parameters of typeSetModifier and TypeMethodDescriptionRoundEnvironment.getElementsAnnotatedWithAny(Set<Class<? extendsAnnotation>> annotations) Returns the elements annotated with one or more of the given annotation types.booleanProcessor.process(Set<? extendsTypeElement> annotations,RoundEnvironment roundEnv) Processes a set of annotation interfaces on type elements originating from the prior round and returns whether or not these annotation interfaces are claimed by this processor.Uses ofSet injavax.imageio
Methods injavax.imageio with parameters of typeSetModifier and TypeMethodDescriptionImageReader.getImageMetadata(int imageIndex,String formatName,Set<String> nodeNames) Returns anIIOMetadataobject representing the metadata associated with the given image, ornullif the reader does not support reading metadata or none is available.ImageReader.getStreamMetadata(String formatName,Set<String> nodeNames) Returns anIIOMetadataobject representing the metadata associated with the input source as a whole (i.e., not associated with any particular image).Uses ofSet injavax.lang.model.element
Methods injavax.lang.model.element that returnSetModifier and TypeMethodDescriptionElement.getModifiers()Returns the modifiers of this element, excluding annotations.Uses ofSet injavax.lang.model.util
Methods injavax.lang.model.util that returnSetModifier and TypeMethodDescriptionstaticSet<ExecutableElement>ElementFilter.constructorsIn(Set<? extendsElement> elements) Returns a set of constructors inelements.staticSet<VariableElement>Returns a set of fields inelements.defaultSet<? extendsModuleElement>Elements.getAllModuleElements()Returns all module elements in the current environment.defaultSet<? extendsPackageElement>Elements.getAllPackageElements(CharSequence name) Returns all package elements with the given canonical name.defaultSet<? extendsTypeElement>Elements.getAllTypeElements(CharSequence name) Returns all type elements with the given canonical name.staticSet<ExecutableElement>Returns a set of methods inelements.staticSet<ModuleElement>Returns a set of modules inelements.staticSet<PackageElement>ElementFilter.packagesIn(Set<? extendsElement> elements) Returns a set of packages inelements.staticSet<RecordComponentElement>ElementFilter.recordComponentsIn(Set<? extendsElement> elements) Returns a set of record components inelements.staticSet<TypeElement>Returns a set of types inelements.Methods injavax.lang.model.util with parameters of typeSetModifier and TypeMethodDescriptionstaticSet<ExecutableElement>ElementFilter.constructorsIn(Set<? extendsElement> elements) Returns a set of constructors inelements.staticSet<VariableElement>Returns a set of fields inelements.staticSet<ExecutableElement>Returns a set of methods inelements.staticSet<ModuleElement>Returns a set of modules inelements.staticSet<PackageElement>ElementFilter.packagesIn(Set<? extendsElement> elements) Returns a set of packages inelements.staticSet<RecordComponentElement>ElementFilter.recordComponentsIn(Set<? extendsElement> elements) Returns a set of record components inelements.staticSet<TypeElement>Returns a set of types inelements.Uses ofSet injavax.management
Methods injavax.management that returnSetModifier and TypeMethodDescriptionMBeanServer.queryMBeans(ObjectName name,QueryExp query) Gets MBeans controlled by the MBean server.MBeanServerConnection.queryMBeans(ObjectName name,QueryExp query) Gets MBeans controlled by the MBean server.MBeanServer.queryNames(ObjectName name,QueryExp query) Gets the names of MBeans controlled by the MBean server.MBeanServerConnection.queryNames(ObjectName name,QueryExp query) Gets the names of MBeans controlled by the MBean server.Uses ofSet injavax.management.loading
Methods injavax.management.loading that returnSetModifier and TypeMethodDescriptionMLet.getMBeansFromURL(String url) Loads a text file containing MLET tags that define the MBeans to be added to the MBean server.MLet.getMBeansFromURL(URL url) Loads a text file containing MLET tags that define the MBeans to be added to the MBean server.MLetMBean.getMBeansFromURL(String url) Loads a text file containing MLET tags that define the MBeans to be added to the MBean server.MLetMBean.getMBeansFromURL(URL url) Loads a text file containing MLET tags that define the MBeans to be added to the MBean server.Uses ofSet injavax.management.openmbean
Methods injavax.management.openmbean that returnSetModifier and TypeMethodDescriptionTabularDataSupport.entrySet()Returns a collection view of the index to row mappings contained in thisTabularDataSupportinstance.Set<?>OpenMBeanAttributeInfoSupport.getLegalValues()Returns an unmodifiable Set of legal values for the attribute described by thisOpenMBeanAttributeInfoSupportinstance, if specified, ornullotherwise.Set<?>OpenMBeanParameterInfo.getLegalValues()Returns the set of legal values for this parameter, if it has one, ornullotherwise.Set<?>OpenMBeanParameterInfoSupport.getLegalValues()Returns an unmodifiable Set of legal values for the parameter described by thisOpenMBeanParameterInfoSupportinstance, if specified, ornullotherwise.CompositeType.keySet()Returns an unmodifiable Set view of all the item names defined by thisCompositeTypeinstance.Set<?>TabularData.keySet()Returns a set view of the keys (ie the index values) of theCompositeDatavalues (ie the rows) contained in thisTabularDatainstance.TabularDataSupport.keySet()Returns a set view of the keys contained in the underlying map of thisTabularDataSupportinstance used to index the rows.Uses ofSet injavax.management.remote.rmi
Methods injavax.management.remote.rmi that returnSetModifier and TypeMethodDescriptionRMIConnection.queryMBeans(ObjectName name,MarshalledObject query,Subject delegationSubject) Handles the methodMBeanServerConnection.queryMBeans(ObjectName, QueryExp).RMIConnectionImpl_Stub.queryMBeans(ObjectName $param_ObjectName_1,MarshalledObject $param_MarshalledObject_2,Subject $param_Subject_3) RMIConnectionImpl.queryMBeans(ObjectName name,MarshalledObject query,Subject delegationSubject) RMIConnection.queryNames(ObjectName name,MarshalledObject query,Subject delegationSubject) Handles the methodMBeanServerConnection.queryNames(ObjectName, QueryExp).RMIConnectionImpl_Stub.queryNames(ObjectName $param_ObjectName_1,MarshalledObject $param_MarshalledObject_2,Subject $param_Subject_3) RMIConnectionImpl.queryNames(ObjectName name,MarshalledObject query,Subject delegationSubject) Uses ofSet injavax.print.attribute.standard
Classes injavax.print.attribute.standard that implementSetModifier and TypeClassDescriptionfinal classClassJobStateReasonsis a printing attribute class, a set of enumeration values, that provides additional information about the job's current state, i.e., information that augments the value of the job'sJobStateattribute.Methods injavax.print.attribute.standard that returnSetModifier and TypeMethodDescriptionPrinterStateReasons.printerStateReasonSet(Severity severity) Obtain an unmodifiable set view of the individual printer state reason attributes at the given severity level in thisPrinterStateReasonsattribute.Uses ofSet injavax.script
Methods injavax.script that returnSetUses ofSet injavax.security.auth
Methods injavax.security.auth that returnSetModifier and TypeMethodDescriptionSubject.getPrincipals()Return theSetof Principals associated with thisSubject.Subject.getPrincipals(Class<T> c) Return aSetof Principals associated with thisSubjectthat are instances or subclasses of the specifiedClass.Subject.getPrivateCredentials()Return theSetof private credentials held by thisSubject.<T> Set<T>Subject.getPrivateCredentials(Class<T> c) Return aSetof private credentials associated with thisSubjectthat are instances or subclasses of the specifiedClass.Subject.getPublicCredentials()Return theSetof public credentials held by thisSubject.<T> Set<T>Subject.getPublicCredentials(Class<T> c) Return aSetof public credentials associated with thisSubjectthat are instances or subclasses of the specifiedClass.Constructors injavax.security.auth with parameters of typeSetUses ofSet injavax.swing
Methods injavax.swing with parameters of typeSetModifier and TypeMethodDescriptionvoidJComponent.setFocusTraversalKeys(int id,Set<? extendsAWTKeyStroke> keystrokes) Sets the focus traversal keys for a given traversal operation for this Component.Uses ofSet injavax.tools
Methods injavax.tools that returnSetModifier and TypeMethodDescriptionTool.getSourceVersions()Returns the source versions of the Java programming language supported by this tool.Methods injavax.tools that return types with arguments of typeSetModifier and TypeMethodDescriptionForwardingJavaFileManager.listLocationsForModules(JavaFileManager.Location location) defaultIterable<Set<JavaFileManager.Location>>JavaFileManager.listLocationsForModules(JavaFileManager.Location location) Lists the locations for all the modules in a module-oriented location or an output location.Methods injavax.tools with parameters of typeSetModifier and TypeMethodDescriptionForwardingJavaFileManager.list(JavaFileManager.Location location,String packageName,Set<JavaFileObject.Kind> kinds, boolean recurse) JavaFileManager.list(JavaFileManager.Location location,String packageName,Set<JavaFileObject.Kind> kinds, boolean recurse) Lists all file objects matching the given criteria in the given package-oriented location.Uses ofSet injdk.dynalink.beans
Methods injdk.dynalink.beans that returnSetModifier and TypeMethodDescriptionBeansLinker.getInstanceMethodNames(Class<?> clazz) Returns a set of names of all instance methods of a class.BeansLinker.getReadableInstancePropertyNames(Class<?> clazz) Returns a set of names of all readable instance properties of a class.BeansLinker.getReadableStaticPropertyNames(Class<?> clazz) Returns a set of names of all readable static properties of a class.BeansLinker.getStaticMethodNames(Class<?> clazz) Returns a set of names of all static methods of a class.BeansLinker.getWritableInstancePropertyNames(Class<?> clazz) Returns a set of names of all writable instance properties of a class.BeansLinker.getWritableStaticPropertyNames(Class<?> clazz) Returns a set of names of all writable static properties of a class.Uses ofSet injdk.javadoc.doclet
Methods injdk.javadoc.doclet that returnSetModifier and TypeMethodDescriptionTaglet.getAllowedLocations()Returns the set of supported locations for block tags.DocletEnvironment.getIncludedElements()Returns the module, package and type elements that should beincluded in the documentation.DocletEnvironment.getSpecifiedElements()Returns the elementsspecified when the tool is invoked.Set<? extendsDoclet.Option>Doclet.getSupportedOptions()Returns all the supported options.Set<? extendsDoclet.Option>StandardDoclet.getSupportedOptions()Uses ofSet injdk.jfr
Uses ofSet injdk.net
Modifier and TypeMethodDescriptionstaticSet<SocketOption<?>>Sockets.supportedOptions(Class<?> socketType) Deprecated, for removal: This API element is subject to removal in a future version.