GeezerVison is showing docs.oracle.com — Uses of Interface java.util.Set (Java SE 21 & JDK 21)
Uses of Interface java.util.Set
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 Java Virtual Machine (JVM).
Provides the management interfaces for monitoring and management of the
Java 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 classes and interfaces for obtaining reflective information about
classes and objects.
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.
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.
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.
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 define
Java Scripting Engines and provides
a 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.
Provides interfaces for creating tools, such as a Read-Eval-Print Loop (REPL),
which interactively evaluate "snippets" of Java programming language code.
Platform specific socket options for the java.net and java.nio.channels
socket classes.
-
Modifier and Type
Interface
Description
interface
-
Modifier and Type
Method
Description
-
Modifier and Type
Method
Description
Returns the open associations on this channel's socket.
Returns all of the socket addresses to which this channel's socket is
bound.
Returns all of the socket addresses to which this channel's socket is
bound.
Returns all of the socket addresses to which this channel's socket is
bound.
Returns all of the remote addresses to which this channel's socket
is connected.
Returns all of the remote addresses to which the given association on
this channel's socket is connected.
Returns a set of the socket options supported by this channel.
Returns a set of the socket options supported by this channel.
Returns a set of the socket options supported by this channel.
-
Modifier and Type
Method
Description
Returns the flags in this modifiers tree.
-
Modifier and Type
Method
Description
Returns a Set view of the mappings contained
in this RenderingHints.
Returns a Set of default focus traversal keys for a given traversal
operation.
Returns the Set of focus traversal keys for a given traversal operation
for this Component.
Returns the Set of focus traversal keys for a given traversal operation
for this Container.
Gets a focus traversal key for this Window.
Returns a Set view of the Keys contained in this
RenderingHints.
Modifier and Type
Method
Description
void
Sets the default focus traversal keys for a given traversal operation.
void
Sets the focus traversal keys for a given traversal operation for this
Component.
void
Sets the focus traversal keys for a given traversal operation for this
Container.
-
Modifier and Type
Method
Description
Returns a Set representing all the Unicode ranges in
this NumericShaper that will be shaped.
Modifier and Type
Method
Description
Returns a contextual shaper for the provided Unicode
range(s).
Returns a contextual shaper for the provided Unicode range(s).
-
Modifier and Type
Method
Description
Returns an unmodifiable set of the access
flags for this class, possibly empty.
Returns the set of package names for the packages in this module.
Returns an unmodifiable set of the modules in this layer.
Modifier and Type
Method
Description
Returns a StackWalker instance with the given options specifying
the stack frame information it can access.
Returns a StackWalker instance with the given options specifying
the stack frame information it can access.
-
Modifier and Type
Method
Description
void
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.
Modifier and Type
Method
Description
void
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.
-
Modifier and Type
Method
Description
Returns the set of Class objects, subinterface of
PlatformManagedObject, representing
all management interfaces for
monitoring and managing the Java platform.
-
Modifier and Type
Method
Description
Returns the set of the module export flags for this module descriptor.
Returns the set of Exports objects representing the exported
packages.
Returns the set of all module references that this finder can locate.
Returns the set of modifiers.
Returns the set of module modifiers.
Returns the set of modifiers.
Returns the set of modifiers.
Returns an unmodifiable set of the resolved modules in this configuration.
Returns the set of Opens objects representing the open
packages.
Returns the set of packages in the module.
Returns the set of Provides objects representing the
services that the module provides.
Returns the set of resolved modules that this resolved module reads.
Returns the set of Requires objects representing the module
dependences.
For a qualified export, returns the non-empty and immutable set
of the module names to which the package is exported.
For a qualified Opens, returns the non-empty and immutable set
of the module names to which the package is open.
Returns the set of service dependences.
Modifier and Type
Method
Description
Adds an exported package.
Adds an exported package with the given (and possibly empty) set of
modifiers.
Adds an exported package with the given (and possibly empty) set of
modifiers.
Instantiates a builder to build a module descriptor.
Adds an open package with the given (and possibly empty) set of
modifiers.
Adds an open package with the given (and possibly empty) set of
modifiers.
Adds packages to the module.
Adds a dependence on a module with the given (and possibly empty)
set of modifiers.
Adds a dependence on a module with the given (and possibly empty)
set of modifiers.
Modifier and Type
Method
Description
Reads the binary form of a module declaration from an input stream
as a module descriptor.
Reads the binary form of a module declaration from a byte buffer
as a module descriptor.
-
Modifier and Type
Method
Description
Returns an unmodifiable set of the access flags for the executable represented by this object,
possibly empty.
Returns an unmodifiable set of the access flags for this field, possibly empty.
Returns an unmodifiable set of the access flags for this member, possibly empty.
Returns an unmodifiable set of the access flags for the parameter represented by this object,
possibly empty.
Returns kinds of constructs the flag can be applied to in the
latest class file format version.
Returns kinds of constructs the flag can be applied to in the
given class file format version.
Returns an unmodifiable set of access flags for the given mask value
appropriate for the location in question.
-
Modifier and Type
Method
Description
Returns a set of the socket options supported by this socket.
Returns a set of SocketOptions supported by this impl
and by this impl's socket (DatagramSocket or MulticastSocket)
Returns a set of the socket options supported by this server socket.
Returns a set of the socket options supported by this socket.
Returns a set of SocketOptions supported by this impl
and by this impl's socket (Socket or ServerSocket)
-
Modifier and Type
Method
Description
Returns this selector's key set.
Returns this selector's selected-key set.
Returns a set of the socket options supported by this channel.
Modifier and Type
Method
Description
Opens or creates a file for reading and/or writing, returning an
asynchronous file channel to access the file.
Opens or creates a file, returning a file channel to access the file.
-
Modifier and Type
Method
Description
Retrieves this selector's cancelled-key set.
-
Modifier and Type
Method
Description
Returns a set containing this charset's aliases.
-
Modifier and Type
Method
Description
Returns a file's POSIX file permissions.
Returns the set of the names of the file
attribute views supported by this FileSystem.
Modifier and Type
Method
Description
Opens or creates a file, returning a seekable byte channel to access the
file.
Opens or creates a file in this directory, returning a seekable byte
channel to access the file.
Sets a file's POSIX permissions.
-
Modifier and Type
Method
Description
Returns a copy of the flags component.
Returns the set of permissions corresponding to a given String
representation.
Returns a copy of the permissions component.
Returns the permissions of the file.
Modifier and Type
Method
Description
Modifier and Type
Method
Description
Sets the flags component of this builder.
Sets the permissions component of this builder.
void
Updates the file permissions.
Returns the String representation of a set of permissions.
-
Modifier and Type
Method
Description
Opens or creates a file for reading and/or writing, returning an
asynchronous file channel to access the file.
Opens or creates a file, returning a seekable byte channel to access the
file.
Opens or creates a file for reading and/or writing, returning a file
channel to access the file.
-
Modifier and Type
Method
Description
Retrieves the attributes associated with the given alias.
Returns an unmodifiable Set view of the property entries contained
in this Provider.
Returns a Set of String objects containing the names of all
available algorithms or types for the specified Java cryptographic
service (e.g., Signature, MessageDigest, Cipher,
Mac, KeyStore).
Retrieves the attributes associated with an entry.
Retrieves the attributes associated with the given alias.
Retrieves the attributes associated with an entry.
Retrieves the attributes associated with an entry.
Retrieves the attributes associated with an entry.
Get an unmodifiable Set of all services supported by
this Provider.
Returns an unmodifiable Set view of the property keys contained in
this Provider.
Modifier and Type
Method
Description
boolean
Determines whether an algorithm is granted permission for the
specified cryptographic primitives.
boolean
Determines whether an algorithm and the corresponding key are granted
permission for the specified cryptographic primitives.
boolean
Determines whether a key is granted permission for the specified
cryptographic primitives.
Modifier
Constructor
Description
Constructs a PrivateKeyEntry with a PrivateKey and
corresponding certificate chain and associated entry attributes.
Constructs a SecretKeyEntry with a SecretKey and
associated entry attributes.
Constructs a TrustedCertificateEntry with a
trusted Certificate and associated entry attributes.
-
Modifier and Type
Method
Description
Gets a Set of the OID strings for the extension(s) marked
CRITICAL in the certificate/CRL managed by the object
implementing this interface.
Returns the set of expected policies that would satisfy this
node's valid policy in the next certificate to be processed.
Returns the extendedKeyUsage criterion.
Returns an immutable Set of 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.
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.
Gets the revocation options.
Returns the policy criterion.
Returns the set of policy qualifiers associated with the
valid policy represented by this node.
Gets all the entries from this CRL.
Returns an immutable Set of X.509 certificate extensions
that this PKIXCertPathChecker supports (i.e. recognizes, is
able to process), or null if no extensions are supported.
Returns an immutable Set of the most-trusted
CAs.
Modifier and Type
Method
Description
void
Sets the extendedKeyUsage criterion.
void
Sets the Set of 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.
void
Sets the revocation options.
void
Sets the policy constraint.
void
Sets the Set of most-trusted CAs.
Modifier
Constructor
Description
Creates an instance of PKIXBuilderParameters with
the specified Set of most-trusted CAs.
Creates an instance of PKIXParameters with the specified
Set of most-trusted CAs.
-
Modifier and Type
Method
Description
Returns the keys of all attributes defined on the
iterator's text range.
Modifier and Type
Method
Description
int
Returns the index of the first character following the run
with respect to the given attributes containing the current character.
int
Returns the index of the first character of the run
with respect to the given attributes containing the current character.
-
Modifier and Type
Method
Description
Gets the set of available zone IDs.
-
Modifier and Type
Method
Description
Returns the available chronologies.
-
Modifier and Type
Method
Description
Lists all the locales that are supported.
Gets the resolver fields to use during parsing.
Modifier and Type
Method
Description
Appends the generic time-zone name, such as 'Pacific Time', to the formatter.
Appends the time-zone name, such as 'British Summer Time', to the formatter.
Returns a copy of this formatter with a new set of resolver fields.
-
Modifier and Type
Method
Description
Gets the set of available zone IDs.
SPI method to get the available zone IDs.
-
Modifier and Type
Interface
Description
interface
A SortedSet extended with navigation methods reporting
closest matches for given search targets.
interface
interface
A Set that further provides a total ordering on its elements.
Modifier and Type
Class
Description
class
This class provides a skeletal implementation of the Set
interface to minimize the effort required to implement this
interface.
class
A specialized Set implementation for use with enum types.
class
This class implements the Set interface, backed by a hash table
(actually a HashMap instance).
class
Hash table and linked list implementation of the Set interface,
with well-defined encounter order.
class
Modifier and Type
Field
Description
The empty set (immutable).
Modifier and Type
Method
Description
Returns a dynamically typesafe view of the specified set.
Returns an empty set (immutable).
Returns a Set view of the mappings contained in this map.
Returns a Set view of the mappings contained in this map.
Returns a Set view of the mappings contained in this map.
Returns a Set view of the mappings contained in this map.
Returns a Set view of the mappings contained in this map.
Returns a Set view of the mappings contained in this map.
Returns a Set view of the mappings contained in this map.
Returns a Set view of the mappings contained in this map.
Returns a Set view of the mappings contained in this map.
Returns an unmodifiable Set containing all calendar types
supported by Calendar in the runtime environment.
Gets the set of available currencies.
Returns the set of extension keys associated with this locale, or the
empty set if it has no extensions.
Returns a Set of ISO3166 country codes for the specified type.
Returns the set of unicode locale attributes associated with
this locale, or the empty set if it has no attributes.
Returns the set of Unicode locale keys defined by this locale, or the empty set if
this locale has none.
Returns a Set of the keys contained
only in this ResourceBundle.
Returns a Set of the keys contained
only in this ResourceBundle.
Returns a Set of the keys contained only
in this ResourceBundle.
Returns a Set view of the keys contained in this map.
Returns a Set view of the keys contained in this map.
Returns a Set view of the keys contained in this map.
Returns a Set view of the keys contained in this map.
Returns an identity-based set view of the keys contained in this map.
Returns a Set view of the keys contained in this map.
Returns a Set view of the keys contained in this map.
Returns a Set of all keys contained in this
ResourceBundle and its parent bundles.
Returns a Set view of the keys contained in this map.
Returns a Set view of the keys contained in this map.
Returns a Set view of the keys contained in this map.
Returns a set backed by the specified map.
Returns an unmodifiable set containing zero elements.
Returns an unmodifiable set containing one element.
Returns an unmodifiable set containing an arbitrary number of elements.
Returns an unmodifiable set containing two elements.
Returns an unmodifiable set containing three elements.
Set.of(E e1,
E e2,
E e3,
E e4)
Returns an unmodifiable set containing four elements.
Set.of(E e1,
E e2,
E e3,
E e4,
E e5)
Returns an unmodifiable set containing five elements.
Set.of(E e1,
E e2,
E e3,
E e4,
E e5,
E e6)
Returns an unmodifiable set containing six elements.
Set.of(E e1,
E e2,
E e3,
E e4,
E e5,
E e6,
E e7)
Returns an unmodifiable set containing seven elements.
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.
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.
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.
Returns an immutable set containing only the specified object.
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.
Returns a synchronized (thread-safe) set backed by the specified
set.
Modifier and Type
Method
Description
Returns a dynamically typesafe view of the specified set.
Returns a synchronized (thread-safe) set backed by the specified
set.
-
Modifier and Type
Class
Description
static final class
A view of a ConcurrentHashMap as a Set of keys, in
which additions may optionally be enabled by mapping to a
common value.
class
class
Modifier and Type
Method
Description
Returns a Set view of the mappings contained in this map.
Returns a Set view of the mappings contained in this map.
-
Modifier and Type
Method
Description
Returns a Collection view of the attribute name-value mappings
contained in this Map.
Returns a Set view of the attribute names (keys) contained in this Map.
-
Modifier and Type
Method
Description
Returns a Set of Collector.Characteristics indicating
the characteristics of this Collector.
Modifier and Type
Method
Description
Returns a Collector that accumulates the input elements into a
new Set.
Returns a Collector that accumulates the input elements into an
unmodifiable Set.
-
Modifier and Type
Method
Description
Returns the elements annotated with the given annotation interface.
Returns the elements annotated with the given annotation interface.
Returns the elements annotated with one or more of the given
annotation interfaces.
Returns the elements annotated with one or more of the given
annotation interfaces.
If the processor class is annotated with SupportedAnnotationTypes, return an unmodifiable set with the
same set of strings as the annotation.
Returns the names of the annotation interfaces supported by this
processor.
If the processor class is annotated with SupportedOptions, return an unmodifiable set with the same set
of strings as the annotation.
Returns the options recognized by this processor.
Modifier and Type
Method
Description
Returns the elements annotated with one or more of the given
annotation interfaces.
boolean
Processes a set of annotation interfaces on root elements originating
from the prior round and returns whether or not these
annotation interfaces are claimed by this processor.
-
Modifier and Type
Method
Description
Returns an IIOMetadata object representing the
metadata associated with the given image, or null
if the reader does not support reading metadata or none
is available.
Returns an IIOMetadata object representing the
metadata associated with the input source as a whole (i.e.,
not associated with any particular image).
-
Modifier and Type
Method
Description
Returns the modifiers of this element, excluding annotations.
-
Modifier and Type
Method
Description
Returns a set of constructors in elements.
Returns a set of fields in elements.
Returns all module elements in the current environment.
Returns all package elements with the given canonical name.
Returns all type elements with the given canonical name.
Returns a set of methods in elements.
Returns a set of modules in elements.
Returns a set of packages in elements.
Returns a set of record components in elements.
Returns a set of types in elements.
Modifier and Type
Method
Description
Returns a set of constructors in elements.
Returns a set of fields in elements.
Returns a set of methods in elements.
Returns a set of modules in elements.
Returns a set of packages in elements.
Returns a set of record components in elements.
Returns a set of types in elements.
-
Modifier and Type
Method
Description
Gets MBeans controlled by the MBean server.
Gets MBeans controlled by the MBean server.
Gets the names of MBeans controlled by the MBean server.
Gets the names of MBeans controlled by the MBean server.
-
Modifier and Type
Method
Description
Deprecated, for removal: This API element is subject to removal in a future version.
Loads a text file containing MLET tags that define the MBeans to
be added to the MBean server.
Deprecated, for removal: This API element is subject to removal in a future version.
Loads a text file containing MLET tags that define the MBeans to
be added to the MBean server.
Deprecated, for removal: This API element is subject to removal in a future version.
Loads a text file containing MLET tags that define the MBeans
to be added to the MBean server.
Deprecated, for removal: This API element is subject to removal in a future version.
Loads a text file containing MLET tags that define the MBeans
to be added to the MBean server.
-
Modifier and Type
Method
Description
Returns a collection view of the index to row mappings
contained in this TabularDataSupport instance.
Returns an unmodifiable Set of legal values for the attribute
described by this OpenMBeanAttributeInfoSupport
instance, if specified, or null otherwise.
Returns the set of legal values for this parameter, if it has
one, or null otherwise.
Returns an unmodifiable Set of legal values for the parameter
described by this OpenMBeanParameterInfoSupport
instance, if specified, or null otherwise.
Returns an unmodifiable Set view of all the item names defined by this CompositeType instance.
Returns a set view of the keys (ie the index values) of the
CompositeData values (ie the rows) contained in this
TabularData instance.
Returns a set view of the keys contained in the underlying map of this
TabularDataSupport instance used to index the rows.
-
Modifier and Type
Method
Description
-
Modifier and Type
Class
Description
final class
Class JobStateReasons is 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's
JobState attribute.
Modifier and Type
Method
Description
Obtain an unmodifiable set view of the individual printer state reason
attributes at the given severity level in this
PrinterStateReasons attribute.
-
Modifier and Type
Method
Description
Returns a Set view of the mappings contained in this map.
Returns a Set view of the keys contained in this map.
-
Modifier and Type
Method
Description
Return the Set of Principals associated with this
Subject.
Return a Set of Principals associated with this
Subject that are instances or subclasses of the specified
Class.
Return the Set of private credentials held by this
Subject.
Return a Set of private credentials associated with this
Subject that are instances or subclasses of the specified
Class.
Return the Set of public credentials held by this
Subject.
Return a Set of public credentials associated with this
Subject that are instances or subclasses of the specified
Class.
Modifier
Constructor
Description
Create an instance of a Subject with
Principals and credentials.
-
Modifier and Type
Method
Description
void
Sets the focus traversal keys for a given traversal operation for this
Component.
-
Modifier and Type
Method
Description
Returns the source versions of the Java programming language
supported by this tool.
Modifier and Type
Method
Description
Lists the locations for all the modules in a module-oriented location or an output location.
Modifier and Type
Method
Description
Lists all file objects matching the given criteria in the given
package-oriented location.
-
Modifier and Type
Method
Description
Returns a set of names of all instance methods of a class.
Returns a set of names of all readable instance properties of a class.
Returns a set of names of all readable static properties of a class.
Returns a set of names of all static methods of a class.
Returns a set of names of all writable instance properties of a class.
Returns a set of names of all writable static properties of a class.
-
Modifier and Type
Method
Description
Returns the set of supported locations for block tags.
Returns the module, package and type elements that should be
included in the
documentation.
Returns the elements specified
when the tool is invoked.
Returns all the supported options.
-
Modifier and Type
Method
Description
Combines the setting values for all running recordings into one value when
multiple recordings are running at the same time,
-
Modifier and Type
Method
Description
Returns the value of the attributes record component.
Modifier
Constructor
Description
Creates an instance of a Highlight record class.
-
Modifier and Type
Method
Description
Deprecated, for removal: This API element is subject to removal in a future version.
|