Uses of Interface
java.util.Set
Packages that useSet Package Description com.sun.jdi.event This package defines JDI events and event processing.com.sun.nio.sctp A Java API for Stream Control Transport Protocol.com.sun.source.tree Provides interfaces to represent source code as abstract syntax trees (AST).java.awt Contains all of the classes for creating user interfaces and for painting graphics and images.java.awt.font Provides classes and interface relating to fonts.java.lang Provides classes that are fundamental to the design of the Java programming language.java.lang.instrument Provides services that allow Java programming language agents to instrument programs running on the JVM.java.lang.management Provides the management interfaces for monitoring and management of theJava virtual machine and other components in the Java runtime.java.lang.module Classes to support module descriptors and creating configurations of modules by means of resolution and service binding.java.net Provides the classes for implementing networking applications.java.nio.channels 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.java.nio.channels.spi Service-provider classes for thejava.nio.channelspackage.java.nio.charset Defines charsets, decoders, and encoders, for translating between bytes and Unicode characters.java.nio.file Defines interfaces and classes for the Java virtual machine to access files, file attributes, and file systems.java.nio.file.attribute Interfaces and classes providing access to file and file system attributes.java.nio.file.spi Service-provider classes for thejava.nio.filepackage.java.security Provides the classes and interfaces for the security framework.java.security.cert Provides classes and interfaces for parsing and managing certificates, certificate revocation lists (CRLs), and certification paths.java.text Provides classes and interfaces for handling text, dates, numbers, and messages in a manner independent of natural languages.java.time The main API for dates, times, instants, and durations.java.time.chrono Generic API for calendar systems other than the default ISO.java.time.format Provides classes to print and parse dates and times.java.time.zone Support for time-zones and their rules.java.util 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.java.util.concurrent Utility classes commonly useful in concurrent programming.java.util.jar 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.java.util.stream Classes to support functional-style operations on streams of elements, such as map-reduce transformations on collections.javax.annotation.processing Facilities for declaring annotation processors and for allowing annotation processors to communicate with an annotation processing tool environment.javax.imageio The main package of the Java Image I/O API.javax.lang.model.element Interfaces used to model elements of the Java programming language.javax.lang.model.util Utilities to assist in the processing ofprogram elements andtypes.javax.management Provides the core classes for the Java Management Extensions.javax.management.loading Provides the classes which implement advanced dynamic loading.javax.management.openmbean Provides the open data types and Open MBean descriptor classes.javax.management.remote.rmi The RMI connector is a connector for the JMX Remote API that uses RMI to transmit client requests to a remote MBean server.javax.print.attribute.standard Packagejavax.print.attribute.standardcontains classes for specific printing attributes.javax.security.auth This package provides a framework for authentication and authorization.javax.swing Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.javax.tools Provides interfaces for tools which can be invoked from a program, for example, compilers.jdk.dynalink.beans Contains the linker for ordinary Java objects.jdk.javadoc.doclet 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.jdk.jfr This package provides classes to create events and control Flight Recorder.jdk.nashorn.api.scripting This package provides thejavax.scriptintegration, which is the preferred way to use Nashorn.jdk.net Platform specific socket options for thejava.netandjava.nio.channelssocket classes.Uses ofSet incom.sun.jdi.event
Subinterfaces ofSet incom.sun.jdi.event Modifier and Type Interface Description interfaceEventSetSeveralEventobjects may be created at a given time by the targetVirtualMachine.Uses ofSet incom.sun.nio.sctp
Methods incom.sun.nio.sctp that returnSet Modifier and Type Method Description abstractSet<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 returnSet Modifier and Type Method Description Set<Modifier>ModifiersTree. getFlags()Returns the flags in this modifiers tree.Uses ofSet injava.awt
Methods injava.awt that returnSet Modifier and Type Method Description Set<Map.Entry<Object,Object>>RenderingHints. entrySet()Returns aSetview of the mappings contained in thisRenderingHints.Set<AWTKeyStroke>KeyboardFocusManager. getDefaultFocusTraversalKeys(int id)Returns a Set of default focus traversal keys for a given traversal operation.Set<AWTKeyStroke>Component. getFocusTraversalKeys(int id)Returns the Set of focus traversal keys for a given traversal operation for this Component.Set<AWTKeyStroke>Container. getFocusTraversalKeys(int id)Returns the Set of focus traversal keys for a given traversal operation for this Container.Set<AWTKeyStroke>Window. getFocusTraversalKeys(int id)Gets a focus traversal key for this Window.Set<Object>RenderingHints. keySet()Returns aSetview of the Keys contained in thisRenderingHints.Methods injava.awt with parameters of typeSet Modifier and Type Method Description voidKeyboardFocusManager. 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 returnSet Modifier and Type Method Description Set<NumericShaper.Range>NumericShaper. getRangeSet()Returns aSetrepresenting all the Unicode ranges in thisNumericShaperthat will be shaped.Methods injava.awt.font with parameters of typeSet Modifier and Type Method Description staticNumericShaperNumericShaper. 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
Methods injava.lang that returnSet Modifier and Type Method Description Set<String>Module. getPackages()Returns the set of package names for the packages in this module.Set<Module>ModuleLayer. modules()Returns the set of the modules in this layer.Methods injava.lang with parameters of typeSet Modifier and Type Method Description staticStackWalkerStackWalker. 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 typeSet Modifier and Type Method Description voidInstrumentation. 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 typeSet Modifier and Type Method Description voidInstrumentation. 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 returnSet Modifier and Type Method Description staticSet<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 returnSet Modifier and Type Method Description Set<ModuleDescriptor.Exports>ModuleDescriptor. exports()Returns the set ofExportsobjects representing the exported packages.Set<ModuleReference>ModuleFinder. findAll()Returns the set of all module references that this finder can locate.Set<ModuleDescriptor.Exports.Modifier>ModuleDescriptor.Exports. modifiers()Returns the set of modifiers.Set<ModuleDescriptor.Modifier>ModuleDescriptor. modifiers()Returns the set of module modifiers.Set<ModuleDescriptor.Opens.Modifier>ModuleDescriptor.Opens. modifiers()Returns the set of modifiers.Set<ModuleDescriptor.Requires.Modifier>ModuleDescriptor.Requires. modifiers()Returns the set of modifiers.Set<ResolvedModule>Configuration. modules()Returns an immutable set of the resolved modules in this configuration.Set<ModuleDescriptor.Opens>ModuleDescriptor. opens()Returns the set ofOpensobjects representing the open packages.Set<String>ModuleDescriptor. packages()Returns the set of packages in the module.Set<ModuleDescriptor.Provides>ModuleDescriptor. provides()Returns the set ofProvidesobjects representing the services that the module provides.Set<ResolvedModule>ResolvedModule. reads()Returns the set of resolved modules that this resolved module reads.Set<ModuleDescriptor.Requires>ModuleDescriptor. requires()Returns the set ofRequiresobjects representing the module dependences.Set<String>ModuleDescriptor.Exports. targets()For a qualified export, returns the non-empty and immutable set of the module names to which the package is exported.Set<String>ModuleDescriptor.Opens. targets()For a qualified opens, returns the non-empty and immutable set of the module names to which the package is open.Set<String>ModuleDescriptor. uses()Returns the set of service dependences.Methods injava.lang.module with parameters of typeSet Modifier and Type Method Description ModuleDescriptor.BuilderModuleDescriptor.Builder. exports(String pn,Set<String> targets)Adds an exported package.ModuleDescriptor.BuilderModuleDescriptor.Builder. exports(Set<ModuleDescriptor.Exports.Modifier> ms,String pn)Adds an exported package with the given (and possibly empty) set of modifiers.ModuleDescriptor.BuilderModuleDescriptor.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.ModuleDescriptor.BuilderModuleDescriptor.Builder. opens(String pn,Set<String> targets)Adds an open package.ModuleDescriptor.BuilderModuleDescriptor.Builder. opens(Set<ModuleDescriptor.Opens.Modifier> ms,String pn)Adds an open package with the given (and possibly empty) set of modifiers.ModuleDescriptor.BuilderModuleDescriptor.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.ModuleDescriptor.BuilderModuleDescriptor.Builder. packages(Set<String> pns)Adds packages to the module.ModuleDescriptor.BuilderModuleDescriptor.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.BuilderModuleDescriptor.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 typeSet Modifier and Type Method Description staticModuleDescriptorModuleDescriptor. 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
Methods injava.net that returnSet Modifier and Type Method Description Set<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 returnSet Modifier and Type Method Description abstractSet<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 typeSet Modifier and Type Method Description staticAsynchronousFileChannelAsynchronousFileChannel. 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 returnSet Modifier and Type Method Description protectedSet<SelectionKey>AbstractSelector. cancelledKeys()Retrieves this selector's cancelled-key set.Uses ofSet injava.nio.charset
Methods injava.nio.charset that returnSet Modifier and Type Method Description Set<String>Charset. aliases()Returns a set containing this charset's aliases.Uses ofSet injava.nio.file
Methods injava.nio.file that returnSet Modifier and Type Method Description staticSet<PosixFilePermission>Files. getPosixFilePermissions(Path path,LinkOption... options)Returns a file's POSIX file permissions.abstractSet<String>FileSystem. supportedFileAttributeViews()Returns the set of thenamesof the file attribute views supported by thisFileSystem.Methods injava.nio.file with parameters of typeSet Modifier and Type Method Description staticSeekableByteChannelFiles. newByteChannel(Path path,Set<? extendsOpenOption> options,FileAttribute<?>... attrs)Opens or creates a file, returning a seekable byte channel to access the file.SeekableByteChannelSecureDirectoryStream. 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 returnSet Modifier and Type Method Description Set<AclEntryFlag>AclEntry. flags()Returns a copy of the flags component.staticSet<PosixFilePermission>PosixFilePermissions. fromString(String perms)Returns the set of permissions corresponding to a givenStringrepresentation.Set<AclEntryPermission>AclEntry. permissions()Returns a copy of the permissions component.Set<PosixFilePermission>PosixFileAttributes. permissions()Returns the permissions of the file.Methods injava.nio.file.attribute that return types with arguments of typeSet Modifier and Type Method Description staticFileAttribute<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 typeSet Modifier and Type Method Description staticFileAttribute<Set<PosixFilePermission>>PosixFilePermissions. asFileAttribute(Set<PosixFilePermission> perms)Creates aFileAttribute, encapsulating a copy of the given file permissions, suitable for passing to thecreateFileorcreateDirectorymethods.AclEntry.BuilderAclEntry.Builder. setFlags(Set<AclEntryFlag> flags)Sets the flags component of this builder.AclEntry.BuilderAclEntry.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 typeSet Modifier and Type Method Description AsynchronousFileChannelFileSystemProvider. 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.FileChannelFileSystemProvider. 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 returnSet Modifier and Type Method Description Set<Map.Entry<Object,Object>>Provider. entrySet()Returns an unmodifiable Set view of the property entries contained in this Provider.staticSet<String>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.Set<KeyStore.Entry.Attribute>KeyStore.PrivateKeyEntry. getAttributes()Retrieves the attributes associated with an entry.Set<KeyStore.Entry.Attribute>KeyStore.SecretKeyEntry. getAttributes()Retrieves the attributes associated with an entry.Set<KeyStore.Entry.Attribute>KeyStore.TrustedCertificateEntry. getAttributes()Retrieves the attributes associated with an entry.Set<Provider.Service>Provider. getServices()Get an unmodifiable Set of all services supported by this Provider.Set<Object>Provider. keySet()Returns an unmodifiable Set view of the property keys contained in this provider.Methods injava.security with parameters of typeSet Modifier and Type Method Description booleanAlgorithmConstraints. 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 typeSet Constructor Description PrivateKeyEntry(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 returnSet Modifier and Type Method Description Set<String>X509Extension. 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.Set<String>PolicyNode. getExpectedPolicies()Returns the set of expected policies that would satisfy this node's valid policy in the next certificate to be processed.Set<String>X509CertSelector. getExtendedKeyUsage()Returns the extendedKeyUsage criterion.Set<String>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.Set<String>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.Set<PKIXRevocationChecker.Option>PKIXRevocationChecker. getOptions()Gets the revocation options.Set<String>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.abstractSet<String>PKIXCertPathChecker. getSupportedExtensions()Returns an immutableSetof X.509 certificate extensions that thisPKIXCertPathCheckersupports (i.e. recognizes, is able to process), ornullif no extensions are supported.Set<TrustAnchor>PKIXParameters. getTrustAnchors()Returns an immutableSetof the most-trusted CAs.Methods injava.security.cert with parameters of typeSet Modifier and Type Method Description voidX509CertSelector. 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.voidX509CertSelector. setPolicy(Set<String> certPolicySet)Sets the policy constraint.voidPKIXParameters. setTrustAnchors(Set<TrustAnchor> trustAnchors)Sets theSetof most-trusted CAs.Constructors injava.security.cert with parameters of typeSet Constructor Description PKIXBuilderParameters(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
Methods injava.text that returnSet Modifier and Type Method Description Set<AttributedCharacterIterator.Attribute>AttributedCharacterIterator. getAllAttributeKeys()Returns the keys of all attributes defined on the iterator's text range.Methods injava.text with parameters of typeSet Modifier and Type Method Description intAttributedCharacterIterator. 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
Methods injava.time that returnSet Modifier and Type Method Description staticSet<String>ZoneId. getAvailableZoneIds()Gets the set of available zone IDs.Uses ofSet injava.time.chrono
Methods injava.time.chrono that returnSet Modifier and Type Method Description staticSet<Chronology>Chronology. getAvailableChronologies()Returns the available chronologies.Uses ofSet injava.time.format
Methods injava.time.format that returnSet Modifier and Type Method Description staticSet<Locale>DecimalStyle. getAvailableLocales()Lists all the locales that are supported.Set<TemporalField>DateTimeFormatter. getResolverFields()Gets the resolver fields to use during parsing.Methods injava.time.format with parameters of typeSet Modifier and Type Method Description DateTimeFormatterBuilderDateTimeFormatterBuilder. appendGenericZoneText(TextStyle textStyle,Set<ZoneId> preferredZones)Appends the generic time-zone name, such as 'Pacific Time', to the formatter.DateTimeFormatterBuilderDateTimeFormatterBuilder. appendZoneText(TextStyle textStyle,Set<ZoneId> preferredZones)Appends the time-zone name, such as 'British Summer Time', to the formatter.DateTimeFormatterDateTimeFormatter. 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 returnSet Modifier and Type Method Description staticSet<String>ZoneRulesProvider. getAvailableZoneIds()Gets the set of available zone IDs.protected abstractSet<String>ZoneRulesProvider. provideZoneIds()SPI method to get the available zone IDs.Uses ofSet injava.util
Subinterfaces ofSet injava.util Modifier and Type Interface Description interfaceNavigableSet<E>ASortedSetextended with navigation methods reporting closest matches for given search targets.interfaceSortedSet<E>ASetthat further provides atotal ordering on its elements.Classes injava.util that implementSet Modifier and Type Class Description classAbstractSet<E>This class provides a skeletal implementation of theSetinterface to minimize the effort required to implement this interface.classEnumSet<E extendsEnum<E>>A specializedSetimplementation for use with enum types.classHashSet<E>This class implements theSetinterface, backed by a hash table (actually aHashMapinstance).classLinkedHashSet<E>Hash table and linked list implementation of theSetinterface, with predictable iteration order.classTreeSet<E>ANavigableSetimplementation based on aTreeMap.Fields injava.util declared asSet Modifier and Type Field Description staticSetCollections. EMPTY_SETThe empty set (immutable).Methods injava.util that returnSet Modifier and Type Method Description static <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 <T> Set<T>Collections. emptySet()Returns an empty set (immutable).Set<Map.Entry<K,V>>EnumMap. entrySet()Returns aSetview of the mappings contained in this map.Set<Map.Entry<K,V>>HashMap. entrySet()Returns aSetview of the mappings contained in this map.Set<Map.Entry<K,V>>Hashtable. entrySet()Returns aSetview of the mappings contained in this map.Set<Map.Entry<K,V>>IdentityHashMap. entrySet()Returns aSetview of the mappings contained in this map.Set<Map.Entry<K,V>>LinkedHashMap. entrySet()Returns aSetview of the mappings contained in this map.Set<Map.Entry<K,V>>Map. entrySet()Returns aSetview of the mappings contained in this map.Set<Map.Entry<K,V>>SortedMap. entrySet()Returns aSetview of the mappings contained in this map.Set<Map.Entry<K,V>>TreeMap. entrySet()Returns aSetview of the mappings contained in this map.Set<Map.Entry<K,V>>WeakHashMap. entrySet()Returns aSetview of the mappings contained in this map.staticSet<String>Calendar. getAvailableCalendarTypes()Returns an unmodifiableSetcontaining all calendar types supported byCalendarin the runtime environment.staticSet<Currency>Currency. getAvailableCurrencies()Gets the set of available currencies.Set<Character>Locale. getExtensionKeys()Returns the set of extension keys associated with this locale, or the empty set if it has no extensions.staticSet<String>Locale. getISOCountries(Locale.IsoCountryCode type)Returns aSetof ISO3166 country codes for the specified type.Set<String>Locale. getUnicodeLocaleAttributes()Returns the set of unicode locale attributes associated with this locale, or the empty set if it has no attributes.Set<String>Locale. getUnicodeLocaleKeys()Returns the set of Unicode locale keys defined by this locale, or the empty set if this locale has none.protectedSet<String>ListResourceBundle. handleKeySet()Returns aSetof the keys containedonly in thisResourceBundle.protectedSet<String>PropertyResourceBundle. handleKeySet()Returns aSetof the keys containedonly in thisResourceBundle.protectedSet<String>ResourceBundle. handleKeySet()Returns aSetof the keys containedonly in thisResourceBundle.Set<K>AbstractMap. keySet()Returns aSetview of the keys contained in this map.Set<K>EnumMap. keySet()Returns aSetview of the keys contained in this map.Set<K>HashMap. keySet()Returns aSetview of the keys contained in this map.Set<K>Hashtable. keySet()Returns aSetview of the keys contained in this map.Set<K>IdentityHashMap. keySet()Returns an identity-based set view of the keys contained in this map.Set<K>LinkedHashMap. keySet()Returns aSetview of the keys contained in this map.Set<K>Map. keySet()Returns aSetview of the keys contained in this map.Set<String>ResourceBundle. keySet()Returns aSetof all keys contained in thisResourceBundleand its parent bundles.Set<K>SortedMap. keySet()Returns aSetview of the keys contained in this map.Set<K>TreeMap. keySet()Returns aSetview of the keys contained in this map.Set<K>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.Set<String>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.Methods injava.util with parameters of typeSet Modifier and Type Method Description static <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 implementSet Modifier and Type Class Description static classConcurrentHashMap.KeySetView<K,V>A view of a ConcurrentHashMap as aSetof keys, in which additions may optionally be enabled by mapping to a common value.classConcurrentSkipListSet<E>A scalable concurrentNavigableSetimplementation based on aConcurrentSkipListMap.classCopyOnWriteArraySet<E>ASetthat uses an internalCopyOnWriteArrayListfor all of its operations.Methods injava.util.concurrent that returnSet Modifier and Type Method Description Set<Map.Entry<K,V>>ConcurrentHashMap. entrySet()Returns aSetview of the mappings contained in this map.Set<Map.Entry<K,V>>ConcurrentSkipListMap. entrySet()Returns aSetview of the mappings contained in this map.Uses ofSet injava.util.jar
Methods injava.util.jar that returnSet Modifier and Type Method Description Set<Map.Entry<Object,Object>>Attributes. entrySet()Returns a Collection view of the attribute name-value mappings contained in this Map.Set<Object>Attributes. keySet()Returns a Set view of the attribute names (keys) contained in this Map.Uses ofSet injava.util.stream
Methods injava.util.stream that returnSet Modifier and Type Method Description Set<Collector.Characteristics>Collector. characteristics()Returns aSetofCollector.Characteristicsindicating the characteristics of this Collector.Methods injava.util.stream that return types with arguments of typeSet Modifier and Type Method Description static <T> Collector<T,?,Set<T>>Collectors. toSet()Returns aCollectorthat accumulates the input elements into a newSet.static <T> Collector<T,?,Set<T>>Collectors. toUnmodifiableSet()Returns aCollectorthat accumulates the input elements into anunmodifiable Set.Uses ofSet injavax.annotation.processing
Methods injavax.annotation.processing that returnSet Modifier and Type Method Description Set<? extendsElement>RoundEnvironment. getElementsAnnotatedWith(Class<? extendsAnnotation> a)Returns the elements annotated with the given annotation type.Set<? extendsElement>RoundEnvironment. getElementsAnnotatedWith(TypeElement a)Returns the elements annotated with the given annotation type.defaultSet<? extendsElement>RoundEnvironment. getElementsAnnotatedWithAny(Set<Class<? extendsAnnotation>> annotations)Returns the elements annotated with one or more of the given annotation types.defaultSet<? extendsElement>RoundEnvironment. getElementsAnnotatedWithAny(TypeElement... annotations)Returns the elements annotated with one or more of the given annotation types.Set<? extendsElement>RoundEnvironment. getRootElements()Returns theroot elements for annotation processing generated by the prior round.Set<String>AbstractProcessor. getSupportedAnnotationTypes()If the processor class is annotated withSupportedAnnotationTypes, return an unmodifiable set with the same set of strings as the annotation.Set<String>Processor. getSupportedAnnotationTypes()Returns the names of the annotation types supported by this processor.Set<String>AbstractProcessor. getSupportedOptions()If the processor class is annotated withSupportedOptions, return an unmodifiable set with the same set of strings as the annotation.Set<String>Processor. getSupportedOptions()Returns the options recognized by this processor.Methods injavax.annotation.processing with parameters of typeSet Modifier and Type Method Description defaultSet<? extendsElement>RoundEnvironment. 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 types on type elements originating from the prior round and returns whether or not these annotation types are claimed by this processor.Uses ofSet injavax.imageio
Methods injavax.imageio with parameters of typeSet Modifier and Type Method Description IIOMetadataImageReader. 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.IIOMetadataImageReader. 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 returnSet Modifier and Type Method Description Set<Modifier>Element. getModifiers()Returns the modifiers of this element, excluding annotations.Uses ofSet injavax.lang.model.util
Methods injavax.lang.model.util that returnSet Modifier and Type Method Description staticSet<ExecutableElement>ElementFilter. constructorsIn(Set<? extendsElement> elements)Returns a set of constructors inelements.staticSet<VariableElement>ElementFilter. fieldsIn(Set<? extendsElement> elements)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>ElementFilter. methodsIn(Set<? extendsElement> elements)Returns a set of methods inelements.staticSet<ModuleElement>ElementFilter. modulesIn(Set<? extendsElement> elements)Returns a set of modules inelements.staticSet<PackageElement>ElementFilter. packagesIn(Set<? extendsElement> elements)Returns a set of packages inelements.staticSet<TypeElement>ElementFilter. typesIn(Set<? extendsElement> elements)Returns a set of types inelements.Methods injavax.lang.model.util with parameters of typeSet Modifier and Type Method Description staticSet<ExecutableElement>ElementFilter. constructorsIn(Set<? extendsElement> elements)Returns a set of constructors inelements.staticSet<VariableElement>ElementFilter. fieldsIn(Set<? extendsElement> elements)Returns a set of fields inelements.staticSet<ExecutableElement>ElementFilter. methodsIn(Set<? extendsElement> elements)Returns a set of methods inelements.staticSet<ModuleElement>ElementFilter. modulesIn(Set<? extendsElement> elements)Returns a set of modules inelements.staticSet<PackageElement>ElementFilter. packagesIn(Set<? extendsElement> elements)Returns a set of packages inelements.staticSet<TypeElement>ElementFilter. typesIn(Set<? extendsElement> elements)Returns a set of types inelements.Uses ofSet injavax.management
Methods injavax.management that returnSet Modifier and Type Method Description Set<ObjectInstance>MBeanServer. queryMBeans(ObjectName name,QueryExp query)Gets MBeans controlled by the MBean server.Set<ObjectInstance>MBeanServerConnection. queryMBeans(ObjectName name,QueryExp query)Gets MBeans controlled by the MBean server.Set<ObjectName>MBeanServer. queryNames(ObjectName name,QueryExp query)Gets the names of MBeans controlled by the MBean server.Set<ObjectName>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 returnSet Modifier and Type Method Description Set<Object>MLet. getMBeansFromURL(String url)Loads a text file containing MLET tags that define the MBeans to be added to the MBean server.Set<Object>MLet. getMBeansFromURL(URL url)Loads a text file containing MLET tags that define the MBeans to be added to the MBean server.Set<Object>MLetMBean. getMBeansFromURL(String url)Loads a text file containing MLET tags that define the MBeans to be added to the MBean server.Set<Object>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 returnSet Modifier and Type Method Description Set<Map.Entry<Object,Object>>TabularDataSupport. 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.Set<String>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.Set<Object>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 returnSet Modifier and Type Method Description Set<ObjectInstance>RMIConnection. queryMBeans(ObjectName name,MarshalledObject query,Subject delegationSubject)Handles the methodMBeanServerConnection.queryMBeans(ObjectName, QueryExp).Set<ObjectName>RMIConnection. queryNames(ObjectName name,MarshalledObject query,Subject delegationSubject)Handles the methodMBeanServerConnection.queryNames(ObjectName, QueryExp).Uses ofSet injavax.print.attribute.standard
Classes injavax.print.attribute.standard that implementSet Modifier and Type Class Description classJobStateReasonsClassJobStateReasonsis 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 returnSet Modifier and Type Method Description Set<PrinterStateReason>PrinterStateReasons. 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.security.auth
Methods injavax.security.auth that returnSet Modifier and Type Method Description Set<Principal>Subject. getPrincipals()Return theSetof Principals associated with thisSubject.<T extendsPrincipal>
Set<T>Subject. getPrincipals(Class<T> c)Return aSetof Principals associated with thisSubjectthat are instances or subclasses of the specifiedClass.Set<Object>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.Set<Object>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 typeSet Constructor Description Subject(boolean readOnly,Set<? extendsPrincipal> principals,Set<?> pubCredentials,Set<?> privCredentials)Create an instance of aSubjectwith Principals and credentials.Uses ofSet injavax.swing
Methods injavax.swing with parameters of typeSet Modifier and Type Method Description voidJComponent. 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 returnSet Modifier and Type Method Description Set<SourceVersion>Tool. getSourceVersions()Returns the source versions of the Java™ programming language supported by this tool.Methods injavax.tools that return types with arguments of typeSet Modifier and Type Method Description Iterable<Set<JavaFileManager.Location>>ForwardingJavaFileManager. 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 typeSet Modifier and Type Method Description Iterable<JavaFileObject>ForwardingJavaFileManager. list(JavaFileManager.Location location,String packageName,Set<JavaFileObject.Kind> kinds, boolean recurse)Iterable<JavaFileObject>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 returnSet Modifier and Type Method Description staticSet<String>BeansLinker. getInstanceMethodNames(Class<?> clazz)Returns a set of names of all instance methods of a class.staticSet<String>BeansLinker. getReadableInstancePropertyNames(Class<?> clazz)Returns a set of names of all readable instance properties of a class.staticSet<String>BeansLinker. getReadableStaticPropertyNames(Class<?> clazz)Returns a set of names of all readable static properties of a class.staticSet<String>BeansLinker. getStaticMethodNames(Class<?> clazz)Returns a set of names of all static methods of a class.staticSet<String>BeansLinker. getWritableInstancePropertyNames(Class<?> clazz)Returns a set of names of all writable instance properties of a class.staticSet<String>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 returnSet Modifier and Type Method Description Set<Taglet.Location>Taglet. getAllowedLocations()Returns the set of locations in which a tag may be used.Set<? extendsElement>DocletEnvironment. getIncludedElements()Returns the module, package and type elements that should beincluded in the documentation.Set<? extendsElement>DocletEnvironment. getSpecifiedElements()Returns the elementsspecified when the tool is invoked.Set<? extendsDoclet.Option>Doclet. getSupportedOptions()Returns all the supported options.Uses ofSet injdk.jfr
Methods injdk.jfr with parameters of typeSet Modifier and Type Method Description abstractStringSettingControl. combine(Set<String> settingValues)Combines the setting values for all running recordings into one value when multiple recordings are running at the same time,Uses ofSet injdk.nashorn.api.scripting
Methods injdk.nashorn.api.scripting that returnSet Modifier and Type Method Description Set<String>AbstractJSObject. keySet()Deprecated, for removal: This API element is subject to removal in a future version.Set<String>JSObject. keySet()Deprecated, for removal: This API element is subject to removal in a future version.Returns the set of all property names of this object.Uses ofSet injdk.net
Methods injdk.net that returnSet Modifier and Type Method Description staticSet<SocketOption<?>>Sockets. supportedOptions(Class<?> socketType)Returns a set ofSocketOptions supported by the given socket type.