# Uses of Interface
java.lang.Comparable

Packages that use Comparable
Package
Description
com.sun.jdi
This is the core package of the Java Debug Interface (JDI), it defines mirrors for values, types, and the target VirtualMachine itself - as well bootstrapping facilities.
com.sun.management
This package contains the JDK's extension to the standard implementation of the `java.lang.management` API and also defines the management interface for some other components of the platform.
com.sun.nio.sctp
A Java API for Stream Control Transport Protocol.
com.sun.security.jgss
This package defines classes and interfaces for the JDK extensions to the GSS-API.
com.sun.source.doctree
Provides interfaces to represent documentation comments as abstract syntax trees (AST).
com.sun.source.tree
Provides interfaces to represent source code as abstract syntax trees (AST).
com.sun.source.util
Provides utilities for operations on abstract syntax trees (AST).
com.sun.tools.jconsole
This package contains the JConsole API.
java.awt
Contains all of the classes for creating user interfaces and for painting graphics and images.
java.awt.desktop
Provides interfaces and classes for interaction with various desktop capabilities.
java.awt.event
Provides interfaces and classes for dealing with different types of events fired by AWT components.
java.awt.font
Provides classes and interface relating to fonts.
java.io
Provides for system input and output through data streams, serialization and the file system.
java.lang
Provides classes that are fundamental to the design of the Java programming language.
java.lang.annotation
Provides library support for the Java programming language annotation facility.
java.lang.constant
Classes and interfaces to represent nominal descriptors for run-time entities such as classes or method handles, and classfile entities such as constant pool entries or `invokedynamic` call sites.
java.lang.invoke
The `java.lang.invoke` package provides low-level primitives for interacting with the Java Virtual Machine.
java.lang.management
Provides the management interfaces for monitoring and management of the Java 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.math
Provides classes for performing arbitrary-precision integer arithmetic (`BigInteger`) and arbitrary-precision decimal arithmetic (`BigDecimal`).
java.net
Provides the classes for implementing networking applications.
java.net.http
HTTP Client and WebSocket APIs
java.nio
Defines buffers, which are containers for data, and provides an overview of the other NIO packages.
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.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.sql
Provides the API for accessing and processing data stored in a data source (usually a relational database) using the Java programming language.
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.temporal
Access to date and time using fields and units, and date time adjusters.
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.stream
Classes to support functional-style operations on streams of elements, such as map-reduce transformations on collections.
javax.imageio.metadata
A package of the Java Image I/O API dealing with reading and writing metadata.
javax.lang.model
Types and hierarchies of packages comprising a Java language model, a model of the declarations and types of the Java programming language.
javax.lang.model.element
Interfaces used to model elements of the Java programming language.
javax.lang.model.type
Interfaces used to model Java programming language types.
javax.lang.model.util
Utilities to assist in the processing of program elements and types.
javax.management
Provides the core classes for the Java Management Extensions.
javax.management.openmbean
Provides the open data types and Open MBean descriptor classes.
javax.naming
Provides the classes and interfaces for accessing naming services.
javax.naming.ldap
Provides support for LDAPv3 extended operations and controls.
javax.net.ssl
Provides classes for the secure socket package.
javax.smartcardio
Java™ Smart Card I/O API.
javax.swing
Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms.
javax.swing.event
Provides for events fired by Swing components.
javax.swing.plaf.nimbus
Provides user interface objects built according to the cross-platform Nimbus look and feel.
javax.swing.text
Provides classes and interfaces that deal with editable and noneditable text components.
javax.swing.text.html
Provides the class `HTMLEditorKit` and supporting classes for creating HTML text editors.
javax.tools
Provides interfaces for tools which can be invoked from a program, for example, compilers.
javax.xml.catalog
Provides the classes for implementing XML Catalogs OASIS Standard V1.1, 7 October 2005.
javax.xml.xpath
Provides an object-model neutral API for the evaluation of XPath expressions and access to the evaluation environment.
jdk.dynalink
Contains interfaces and classes that are used to link an `invokedynamic` call site.
jdk.dynalink.linker
Contains interfaces and classes needed by language runtimes to implement their own language-specific object models and type conversions.
jdk.incubator.foreign
Classes to support low-level and efficient foreign memory/function access, directly from Java.
jdk.incubator.vector
Incubating Feature. Will be removed in a future release.
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.jshell
Provides interfaces for creating tools, such as a Read-Eval-Print Loop (REPL), which interactively evaluate "snippets" of Java programming language code.

## Uses of Comparable in com.sun.jdi

Subinterfaces of Comparable in com.sun.jdi
Modifier and Type
Interface
Description
`interface`
`ArrayType`
Provides access to the class of an array and the type of its components in the target VM.
`interface`
`ByteValue`
Provides access to a primitive `byte` value in the target VM.
`interface`
`CharValue`
Provides access to a primitive `char` value in the target VM.
`interface`
`ClassType`
A mirror of a class in the target VM.
`interface`
`DoubleValue`
Provides access to a primitive `double` value in the target VM.
`interface`
`Field`
A class or instance variable in the target VM.
`interface`
`FloatValue`
Provides access to a primitive `float` value in the target VM.
`interface`
`IntegerValue`
Provides access to a primitive `int` value in the target VM.
`interface`
`InterfaceType`
A mirror of an interface in the target VM.
`interface`
`LocalVariable`
A local variable in the target VM.
`interface`
`Location`
A point within the executing code of the target VM.
`interface`
`LongValue`
Provides access to a primitive `long` value in the target VM.
`interface`
`Method`
A static or instance method in the target VM.
`interface`
`ReferenceType`
The type of an object in a target VM.
`interface`
`ShortValue`
Provides access to a primitive `short` value in the target VM.

## Uses of Comparable in com.sun.management

Classes in com.sun.management that implement Comparable
Modifier and Type
Class
Description
`static enum`
`VMOption.Origin`
Origin of the value of a VM option.

## Uses of Comparable in com.sun.nio.sctp

Classes in com.sun.nio.sctp that implement Comparable
Modifier and Type
Class
Description
`static enum`
`AssociationChangeNotification.AssocChangeEvent`
Defines the type of change event that happened to the association.
`enum`
`HandlerResult`
Defines notification handler results.
`static enum`
`PeerAddressChangeNotification.AddressChangeEvent`
Defines the type of address change event that occurred to the destination address on a multi-homed peer when it encounters a change of interface details.

## Uses of Comparable in com.sun.security.jgss

Classes in com.sun.security.jgss that implement Comparable
Modifier and Type
Class
Description
`enum`
`InquireType`
Attribute types that can be specified as an argument of `ExtendedGSSContext.inquireSecContext(com.sun.security.jgss.InquireType)`

## Uses of Comparable in com.sun.source.doctree

Classes in com.sun.source.doctree that implement Comparable
Modifier and Type
Class
Description
`static enum`
`AttributeTree.ValueKind`
The kind of an attribute value.
`static enum`
`DocTree.Kind`
Enumerates all kinds of trees.

## Uses of Comparable in com.sun.source.tree

Classes in com.sun.source.tree that implement Comparable
Modifier and Type
Class
Description
`static enum`
`CaseTree.CaseKind`
The syntactic form of this case: STATEMENT: `case <expression>: <statements>` RULE: `case <expression> -> <expression>/<statement>`
`static enum`
`LambdaExpressionTree.BodyKind`
Lambda expressions come in two forms: expression lambdas, whose body is an expression, and statement lambdas, whose body is a block
`static enum`
`MemberReferenceTree.ReferenceMode`
There are two kinds of member references: (i) method references and (ii) constructor references
`static enum`
`ModuleTree.ModuleKind`
The kind of the module.
`static enum`
`Tree.Kind`
Enumerates all kinds of trees.

## Uses of Comparable in com.sun.source.util

Classes in com.sun.source.util that implement Comparable
Modifier and Type
Class
Description
`static enum`
`TaskEvent.Kind`
Kind of task event.

## Uses of Comparable in com.sun.tools.jconsole

Classes in com.sun.tools.jconsole that implement Comparable
Modifier and Type
Class
Description
`static enum`
`JConsoleContext.ConnectionState`
Values for the ConnectionState bound property.

## Uses of Comparable in java.awt

Classes in java.awt that implement Comparable
Modifier and Type
Class
Description
`static enum`
`Component.BaselineResizeBehavior`
Enumeration of the common ways the baseline of a component can change as the size changes.
`static enum`
`Desktop.Action`
Represents an action type.
`static enum`
`Dialog.ModalExclusionType`
Any top-level window can be marked not to be blocked by modal dialogs.
`static enum`
`Dialog.ModalityType`
Modal dialogs block all input to some top-level windows.
`static enum`
`GraphicsDevice.WindowTranslucency`
Kinds of translucency supported by the underlying system.
`static enum`
`MultipleGradientPaint.ColorSpaceType`
The color space in which to perform the gradient interpolation.
`static enum`
`MultipleGradientPaint.CycleMethod`
The method to use when painting outside the gradient bounds.
`static enum`
`Taskbar.Feature`
List of provided features.
`static enum`
`Taskbar.State`
Kinds of available window progress states.
`static enum`
`TrayIcon.MessageType`
The message type determines which icon will be displayed in the caption of the message, and a possible system sound a message may generate upon showing.
`static enum`
`Window.Type`
Enumeration of available window types.

## Uses of Comparable in java.awt.desktop

Classes in java.awt.desktop that implement Comparable
Modifier and Type
Class
Description
`enum`
`QuitStrategy`
The strategy used to shut down the application, if Sudden Termination is not enabled.
`static enum`
`UserSessionEvent.Reason`
Kinds of available reasons of user session change.

## Uses of Comparable in java.awt.event

Classes in java.awt.event that implement Comparable
Modifier and Type
Class
Description
`static enum`
`FocusEvent.Cause`
This enum represents the cause of a `FocusEvent`- the reason why it occurred.

## Uses of Comparable in java.awt.font

Classes in java.awt.font that implement Comparable
Modifier and Type
Class
Description
`static enum`
`NumericShaper.Range`
A `NumericShaper.Range` represents a Unicode range of a script having its own decimal digits.

## Uses of Comparable in java.io

Classes in java.io that implement Comparable
Modifier and Type
Class
Description
`class`
`File`
An abstract representation of file and directory pathnames.
`static enum`
`ObjectInputFilter.Status`
The status of a check on the class, array length, number of references, depth, and stream size.
`class`
`ObjectStreamField`
A description of a Serializable field from a Serializable class.

## Uses of Comparable in java.lang

Subinterfaces of Comparable in java.lang
Modifier and Type
Interface
Description
`interface`
`ProcessHandle`
ProcessHandle identifies and provides control of native processes.
Classes in java.lang that implement Comparable
Modifier and Type
Class
Description
`final class`
`Boolean`
The Boolean class wraps a value of the primitive type `boolean` in an object.
`final class`
`Byte`
The `Byte` class wraps a value of primitive type `byte` in an object.
`final class`
`Character`
The `Character` class wraps a value of the primitive type `char` in an object.
`static enum`
`Character.UnicodeScript`
A family of character subsets representing the character scripts defined in the Unicode Standard Annex #24: Script Names.
`final class`
`Double`
The `Double` class wraps a value of the primitive type `double` in an object.
`class`
`Enum<E extends Enum<E>>`
This is the common base class of all Java language enumeration classes.
`final class`
`Float`
The `Float` class wraps a value of primitive type `float` in an object.
`final class`
`Integer`
The `Integer` class wraps a value of the primitive type `int` in an object.
`final class`
`Long`
The `Long` class wraps a value of the primitive type `long` in an object.
`static enum`
`ProcessBuilder.Redirect.Type`
The type of a `ProcessBuilder.Redirect`.
`static final class`
`Runtime.Version`
A representation of a version string for an implementation of the Java SE Platform.
`final class`
`Short`
The `Short` class wraps a value of primitive type `short` in an object.
`static enum`
`StackWalker.Option`
Stack walker option to configure the stack frame information obtained by a `StackWalker`.
`final class`
`String`
The `String` class represents character strings.
`final class`
`StringBuffer`
A thread-safe, mutable sequence of characters.
`final class`
`StringBuilder`
A mutable sequence of characters.
`static enum`
`System.Logger.Level`
System loggers levels.
`static enum`
`Thread.State`
A thread state.

## Uses of Comparable in java.lang.annotation

Classes in java.lang.annotation that implement Comparable
Modifier and Type
Class
Description
`enum`
`ElementType`
The constants of this enumerated class provide a simple classification of the syntactic locations where annotations may appear in a Java program.
`enum`
`RetentionPolicy`
Annotation retention policy.

## Uses of Comparable in java.lang.constant

Classes in java.lang.constant that implement Comparable
Modifier and Type
Class
Description
`static enum`
`DirectMethodHandleDesc.Kind`
Kinds of method handles that can be described with DirectMethodHandleDesc.

## Uses of Comparable in java.lang.invoke

Classes in java.lang.invoke that implement Comparable
Modifier and Type
Class
Description
`static enum`
`MethodHandles.Lookup.ClassOption`
The set of class options that specify whether a hidden class created by `Lookup::defineHiddenClass` method is dynamically added as a new member to the nest of a lookup class and/or whether a hidden class has a strong relationship with the class loader marked as its defining loader.
`static enum`
`VarHandle.AccessMode`
The set of access modes that specify how a variable, referenced by a VarHandle, is accessed.

## Uses of Comparable in java.lang.management

Classes in java.lang.management that implement Comparable
Modifier and Type
Class
Description
`enum`
`MemoryType`
Types of `memory pools`.

## Uses of Comparable in java.lang.module

Classes in java.lang.module that implement Comparable
Modifier and Type
Class
Description
`class`
`ModuleDescriptor`
A module descriptor.
`static final class`
`ModuleDescriptor.Exports`
A package exported by a module, may be qualified or unqualified.
`static enum`
`ModuleDescriptor.Exports.Modifier`
A modifier on an exported package.
`static enum`
`ModuleDescriptor.Modifier`
A modifier on a module.
`static final class`
`ModuleDescriptor.Opens`
A package opened by a module, may be qualified or unqualified.
`static enum`
`ModuleDescriptor.Opens.Modifier`
A modifier on an open package.
`static final class`
`ModuleDescriptor.Provides`
A service that a module provides one or more implementations of.
`static final class`
`ModuleDescriptor.Requires`
A dependence upon a module.
`static enum`
`ModuleDescriptor.Requires.Modifier`
A modifier on a module dependence.
`static final class`
`ModuleDescriptor.Version`
A module's version string.

## Uses of Comparable in java.math

Classes in java.math that implement Comparable
Modifier and Type
Class
Description
`class`
`BigDecimal`
Immutable, arbitrary-precision signed decimal numbers.
`class`
`BigInteger`
Immutable arbitrary-precision integers.
`enum`
`RoundingMode`
Specifies a rounding policy for numerical operations capable of discarding precision.

## Uses of Comparable in java.net

Classes in java.net that implement Comparable
Modifier and Type
Class
Description
`static enum`
`Authenticator.RequestorType`
The type of the entity requesting authentication.
`static enum`
`Proxy.Type`
Represents the proxy type.
`enum`
`StandardProtocolFamily`
Defines the standard families of communication protocols.
`final class`
`URI`
Represents a Uniform Resource Identifier (URI) reference.

## Uses of Comparable in java.net.http

Classes in java.net.http that implement Comparable
Modifier and Type
Class
Description
`static enum`
`HttpClient.Redirect`
Defines the automatic redirection policy.
`static enum`
`HttpClient.Version`
The HTTP protocol version.

## Uses of Comparable in java.nio

Classes in java.nio that implement Comparable
Modifier and Type
Class
Description
`class`
`ByteBuffer`
A byte buffer.
`class`
`CharBuffer`
A char buffer.
`class`
`DoubleBuffer`
A double buffer.
`class`
`FloatBuffer`
A float buffer.
`class`
`IntBuffer`
An int buffer.
`class`
`LongBuffer`
A long buffer.
`class`
`MappedByteBuffer`
A direct byte buffer whose content is a memory-mapped region of a file.
`class`
`ShortBuffer`
A short buffer.

## Uses of Comparable in java.nio.charset

Classes in java.nio.charset that implement Comparable
Modifier and Type
Class
Description
`class`
`Charset`
A named mapping between sequences of sixteen-bit Unicode code units and sequences of bytes.

## Uses of Comparable in java.nio.file

Subinterfaces of Comparable in java.nio.file
Modifier and Type
Interface
Description
`interface`
`Path`
An object that may be used to locate a file in a file system.
Classes in java.nio.file that implement Comparable
Modifier and Type
Class
Description
`enum`
`AccessMode`
Defines access modes used to test the accessibility of a file.
`enum`
`FileVisitOption`
Defines the file tree traversal options.
`enum`
`FileVisitResult`
The result type of a `FileVisitor`.
`enum`
`LinkOption`
Defines the options as to how symbolic links are handled.
`enum`
`StandardCopyOption`
Defines the standard copy options.
`enum`
`StandardOpenOption`
Defines the standard open options.

## Uses of Comparable in java.nio.file.attribute

Classes in java.nio.file.attribute that implement Comparable
Modifier and Type
Class
Description
`enum`
`AclEntryFlag`
Defines the flags for used by the flags component of an ACL `entry`.
`enum`
`AclEntryPermission`
Defines the permissions for use with the permissions component of an ACL `entry`.
`enum`
`AclEntryType`
A typesafe enumeration of the access control entry types.
`final class`
`FileTime`
Represents the value of a file's time stamp attribute.
`enum`
`PosixFilePermission`
Defines the bits for use with the `permissions` attribute.

## Uses of Comparable in java.security

Classes in java.security that implement Comparable
Modifier and Type
Class
Description
`enum`
`CryptoPrimitive`
An enumeration of cryptographic primitives.
`static enum`
`DrbgParameters.Capability`
The reseedable and prediction resistance capabilities of a DRBG.
`static enum`
`KeyRep.Type`
Key type.

## Uses of Comparable in java.security.cert

Classes in java.security.cert that implement Comparable
Modifier and Type
Class
Description
`static enum`
`CertPathValidatorException.BasicReason`
The BasicReason enumerates the potential reasons that a certification path of any type may be invalid.
`enum`
`CRLReason`
The CRLReason enumeration specifies the reason that a certificate is revoked, as defined in RFC 5280: Internet X.509 Public Key Infrastructure Certificate and CRL Profile.
`enum`
`PKIXReason`
The `PKIXReason` enumerates the potential PKIX-specific reasons that an X.509 certification path may be invalid according to the PKIX (RFC 5280) standard.
`static enum`
`PKIXRevocationChecker.Option`
Various revocation options that can be specified for the revocation checking mechanism.

## Uses of Comparable in java.sql

Classes in java.sql that implement Comparable
Modifier and Type
Class
Description
`enum`
`ClientInfoStatus`
Enumeration for status of the reason that a property could not be set via a call to `Connection.setClientInfo`
`class`
`Date`
A thin wrapper around a millisecond value that allows JDBC to identify this as an SQL `DATE` value.
`enum`
`JDBCType`
Defines the constants that are used to identify generic SQL types, called JDBC types.
`enum`
`PseudoColumnUsage`
Enumeration for pseudo/hidden column usage.
`enum`
`RowIdLifetime`
Enumeration for RowId life-time values.
`class`
`Time`
A thin wrapper around the `java.util.Date` class that allows the JDBC API to identify this as an SQL `TIME` value.
`class`
`Timestamp`
A thin wrapper around `java.util.Date` that allows the JDBC API to identify this as an SQL `TIMESTAMP` value.

## Uses of Comparable in java.text

Classes in java.text that implement Comparable
Modifier and Type
Class
Description
`class`
`CollationKey`
A `CollationKey` represents a `String` under the rules of a specific `Collator` object.
`static enum`
`Normalizer.Form`
This enum provides constants of the four Unicode normalization forms that are described in Unicode Standard Annex #15 — Unicode Normalization Forms and two methods to access them.
`static enum`
`NumberFormat.Style`
A number format style.

## Uses of Comparable in java.time

Classes in java.time that implement Comparable
Modifier and Type
Class
Description
`enum`
`DayOfWeek`
A day-of-week, such as 'Tuesday'.
`final class`
`Duration`
A time-based amount of time, such as '34.5 seconds'.
`final class`
`Instant`
An instantaneous point on the time-line.
`final class`
`LocalDate`
A date without a time-zone in the ISO-8601 calendar system, such as `2007-12-03`.
`final class`
`LocalDateTime`
A date-time without a time-zone in the ISO-8601 calendar system, such as `2007-12-03T10:15:30`.
`final class`
`LocalTime`
A time without a time-zone in the ISO-8601 calendar system, such as `10:15:30`.
`enum`
`Month`
A month-of-year, such as 'July'.
`final class`
`MonthDay`
A month-day in the ISO-8601 calendar system, such as `--12-03`.
`final class`
`OffsetDateTime`
A date-time with an offset from UTC/Greenwich in the ISO-8601 calendar system, such as `2007-12-03T10:15:30+01:00`.
`final class`
`OffsetTime`
A time with an offset from UTC/Greenwich in the ISO-8601 calendar system, such as `10:15:30+01:00`.
`final class`
`Year`
A year in the ISO-8601 calendar system, such as `2007`.
`final class`
`YearMonth`
A year-month in the ISO-8601 calendar system, such as `2007-12`.
`final class`
`ZonedDateTime`
A date-time with a time-zone in the ISO-8601 calendar system, such as `2007-12-03T10:15:30+01:00 Europe/Paris`.
`final class`
`ZoneOffset`
A time-zone offset from Greenwich/UTC, such as `+02:00`.

## Uses of Comparable in java.time.chrono

Subinterfaces of Comparable in java.time.chrono
Modifier and Type
Interface
Description
`interface`
`ChronoLocalDate`
A date without time-of-day or time-zone in an arbitrary chronology, intended for advanced globalization use cases.
`interface`
`ChronoLocalDateTime<D extends ChronoLocalDate>`
A date-time without a time-zone in an arbitrary chronology, intended for advanced globalization use cases.
`interface`
`Chronology`
A calendar system, used to organize and identify dates.
`interface`
`ChronoZonedDateTime<D extends ChronoLocalDate>`
A date-time with a time-zone in an arbitrary chronology, intended for advanced globalization use cases.
Classes in java.time.chrono that implement Comparable
Modifier and Type
Class
Description
`class`
`AbstractChronology`
An abstract implementation of a calendar system, used to organize and identify dates.
`final class`
`HijrahChronology`
The Hijrah calendar is a lunar calendar supporting Islamic calendars.
`final class`
`HijrahDate`
A date in the Hijrah calendar system.
`enum`
`HijrahEra`
An era in the Hijrah calendar system.
`final class`
`IsoChronology`
The ISO calendar system.
`enum`
`IsoEra`
An era in the ISO calendar system.
`final class`
`JapaneseChronology`
The Japanese Imperial calendar system.
`final class`
`JapaneseDate`
A date in the Japanese Imperial calendar system.
`final class`
`MinguoChronology`
The Minguo calendar system.
`final class`
`MinguoDate`
A date in the Minguo calendar system.
`enum`
`MinguoEra`
An era in the Minguo calendar system.
`final class`
`ThaiBuddhistChronology`
The Thai Buddhist calendar system.
`final class`
`ThaiBuddhistDate`
A date in the Thai Buddhist calendar system.
`enum`
`ThaiBuddhistEra`
An era in the Thai Buddhist calendar system.

## Uses of Comparable in java.time.format

Classes in java.time.format that implement Comparable
Modifier and Type
Class
Description
`enum`
`FormatStyle`
Enumeration of the style of a localized date, time or date-time formatter.
`enum`
`ResolverStyle`
Enumeration of different ways to resolve dates and times.
`enum`
`SignStyle`
Enumeration of ways to handle the positive/negative sign.
`enum`
`TextStyle`
Enumeration of the style of text formatting and parsing.

## Uses of Comparable in java.time.temporal

Classes in java.time.temporal that implement Comparable
Modifier and Type
Class
Description
`enum`
`ChronoField`
A standard set of fields.
`enum`
`ChronoUnit`
A standard set of date periods units.

## Uses of Comparable in java.time.zone

Classes in java.time.zone that implement Comparable
Modifier and Type
Class
Description
`final class`
`ZoneOffsetTransition`
A transition between two offsets caused by a discontinuity in the local time-line.
`static enum`
`ZoneOffsetTransitionRule.TimeDefinition`
A definition of the way a local time can be converted to the actual transition date-time.

## Uses of Comparable in java.util

Classes in java.util that implement Comparable
Modifier and Type
Class
Description
`class`
`Calendar`
The `Calendar` class is an abstract class that provides methods for converting between a specific instant in time and a set of `calendar fields` such as `YEAR`, `MONTH`, `DAY_OF_MONTH`, `HOUR`, and so on, and for manipulating the calendar fields, such as getting the date of the next week.
`class`
`Date`
The class `Date` represents a specific instant in time, with millisecond precision.
`static enum`
`Formatter.BigDecimalLayoutForm`
Enum for `BigDecimal` formatting.
`class`
`GregorianCalendar`
`GregorianCalendar` is a concrete subclass of `Calendar` and provides the standard calendar system used by most of the world.
`static enum`
`Locale.Category`
Enum for locale categories.
`static enum`
`Locale.FilteringMode`
This enum provides constants to select a filtering mode for locale matching.
`static enum`
`Locale.IsoCountryCode`
Enum for specifying the type defined in ISO 3166.
`final class`
`UUID`
A class that represents an immutable universally unique identifier (UUID).
Methods in java.util with type parameters of type Comparable
Modifier and Type
Method
Description
`static <T extends Comparable<? super T>>
int`
Arrays.`compare(T[] a, int aFromIndex, int aToIndex, T[] b, int bFromIndex, int bToIndex)`
Compares two `Object` arrays lexicographically over the specified ranges.
`static <T extends Comparable<? super T>>
int`
Arrays.`compare(T[] a, T[] b)`
Compares two `Object` arrays, within comparable elements, lexicographically.
`static <T, U extends Comparable<? super U>>
Comparator<T>`
Comparator.`comparing(Function<? super T,? extends U> keyExtractor)`
Accepts a function that extracts a `Comparable` sort key from a type `T`, and returns a `Comparator<T>` that compares by that sort key.
`static <K extends Comparable<? super K>, V>
Comparator<Map.Entry<K,V>>`
Map.Entry.`comparingByKey()`
Returns a comparator that compares `Map.Entry` in natural order on key.
`static <K, V extends Comparable<? super V>>
Comparator<Map.Entry<K,V>>`
Map.Entry.`comparingByValue()`
Returns a comparator that compares `Map.Entry` in natural order on value.
`static <T extends Object & Comparable<? super T>>
T`
Collections.`max(Collection<? extends T> coll)`
Returns the maximum element of the given collection, according to the natural ordering of its elements.
`static <T extends Object & Comparable<? super T>>
T`
Collections.`min(Collection<? extends T> coll)`
Returns the minimum element of the given collection, according to the natural ordering of its elements.
`static <T extends Comparable<? super T>>
Comparator<T>`
Comparator.`naturalOrder()`
Returns a comparator that compares `Comparable` objects in natural order.
`static <T extends Comparable<? super T>>
void`
Arrays.`parallelSort(T[] a)`
Sorts the specified array of objects into ascending order, according to the natural ordering of its elements.
`static <T extends Comparable<? super T>>
void`
Arrays.`parallelSort(T[] a, int fromIndex, int toIndex)`
Sorts the specified range of the specified array of objects into ascending order, according to the natural ordering of its elements.
`static <T extends Comparable<? super T>>
Comparator<T>`
Comparator.`reverseOrder()`
Returns a comparator that imposes the reverse of the natural ordering.
`static <T extends Comparable<? super T>>
void`
Collections.`sort(List<T> list)`
Sorts the specified list into ascending order, according to the natural ordering of its elements.
`default <U extends Comparable<? super U>>
Comparator<T>`
Comparator.`thenComparing(Function<? super T,? extends U> keyExtractor)`
Returns a lexicographic-order comparator with a function that extracts a `Comparable` sort key.
Methods in java.util with parameters of type Comparable
Modifier and Type
Method
Description
`static <T extends Comparable<? super T>>
int`
Arrays.`compare(T[] a, int aFromIndex, int aToIndex, T[] b, int bFromIndex, int bToIndex)`
Compares two `Object` arrays lexicographically over the specified ranges.
`static <T extends Comparable<? super T>>
int`
Arrays.`compare(T[] a, T[] b)`
Compares two `Object` arrays, within comparable elements, lexicographically.
`static <T extends Comparable<? super T>>
void`
Arrays.`parallelSort(T[] a)`
Sorts the specified array of objects into ascending order, according to the natural ordering of its elements.
`static <T extends Comparable<? super T>>
void`
Arrays.`parallelSort(T[] a, int fromIndex, int toIndex)`
Sorts the specified range of the specified array of objects into ascending order, according to the natural ordering of its elements.
Method parameters in java.util with type arguments of type Comparable
Modifier and Type
Method
Description
`static <T> int`
Collections.`binarySearch(List<? extends Comparable<? super T>> list, T key)`
Searches the specified list for the specified object using the binary search algorithm.

## Uses of Comparable in java.util.concurrent

Subinterfaces of Comparable in java.util.concurrent
Modifier and Type
Interface
Description
`interface`
`Delayed`
A mix-in style interface for marking objects that should be acted upon after a given delay.
`interface`
`RunnableScheduledFuture<V>`
A `ScheduledFuture` that is `Runnable`.
`interface`
`ScheduledFuture<V>`
A delayed result-bearing action that can be cancelled.
Classes in java.util.concurrent that implement Comparable
Modifier and Type
Class
Description
`enum`
`TimeUnit`
A `TimeUnit` represents time durations at a given unit of granularity and provides utility methods to convert across units, and to perform timing and delay operations in these units.

## Uses of Comparable in java.util.stream

Classes in java.util.stream that implement Comparable
Modifier and Type
Class
Description
`static enum`
`Collector.Characteristics`
Characteristics indicating properties of a `Collector`, which can be used to optimize reduction implementations.

## Uses of Comparable in javax.imageio.metadata

Methods in javax.imageio.metadata with type parameters of type Comparable
Modifier and Type
Method
Description
`protected <T extends Object & Comparable<? super T>>
void`
IIOMetadataFormatImpl.`addObjectValue(String elementName, Class<T> classType, T defaultValue, Comparable<? super T> minValue, Comparable<? super T> maxValue, boolean minInclusive, boolean maxInclusive)`
Allows an `Object` reference of a given class type to be stored in nodes implementing the named element.
Methods in javax.imageio.metadata that return Comparable
Modifier and Type
Method
Description
`Comparable<?>`
IIOMetadataFormat.`getObjectMaxValue(String elementName)`
Returns the maximum legal value for the `Object` reference within the named element.
`Comparable<?>`
IIOMetadataFormatImpl.`getObjectMaxValue(String elementName)`
`Comparable<?>`
IIOMetadataFormat.`getObjectMinValue(String elementName)`
Returns the minimum legal value for the `Object` reference within the named element.
`Comparable<?>`
IIOMetadataFormatImpl.`getObjectMinValue(String elementName)`
Methods in javax.imageio.metadata with parameters of type Comparable
Modifier and Type
Method
Description
`protected <T extends Object & Comparable<? super T>>
void`
IIOMetadataFormatImpl.`addObjectValue(String elementName, Class<T> classType, T defaultValue, Comparable<? super T> minValue, Comparable<? super T> maxValue, boolean minInclusive, boolean maxInclusive)`
Allows an `Object` reference of a given class type to be stored in nodes implementing the named element.

## Uses of Comparable in javax.lang.model

Classes in javax.lang.model that implement Comparable
Modifier and Type
Class
Description
`enum`
`SourceVersion`
Source versions of the Java programming language.

## Uses of Comparable in javax.lang.model.element

Classes in javax.lang.model.element that implement Comparable
Modifier and Type
Class
Description
`enum`
`ElementKind`
The `kind` of an element.
`enum`
`Modifier`
Represents a modifier on a program element such as a class, method, or field.
`static enum`
`ModuleElement.DirectiveKind`
The `kind` of a directive.
`enum`
`NestingKind`
The nesting kind of a type element.

## Uses of Comparable in javax.lang.model.type

Classes in javax.lang.model.type that implement Comparable
Modifier and Type
Class
Description
`enum`
`TypeKind`
The kind of a type mirror.

## Uses of Comparable in javax.lang.model.util

Classes in javax.lang.model.util that implement Comparable
Modifier and Type
Class
Description
`static enum`
`Elements.Origin`
The origin of an element or other language model item.

## Uses of Comparable in javax.management

Classes in javax.management that implement Comparable
Modifier and Type
Class
Description
`class`
`ObjectName`
Represents the object name of an MBean, or a pattern that can match the names of several MBeans.

## Uses of Comparable in javax.management.openmbean

Methods in javax.management.openmbean that return Comparable
Modifier and Type
Method
Description
`Comparable<?>`
OpenMBeanAttributeInfoSupport.`getMaxValue()`
Returns the maximal value for the attribute described by this `OpenMBeanAttributeInfoSupport` instance, if specified, or `null` otherwise.
`Comparable<?>`
OpenMBeanParameterInfo.`getMaxValue()`
Returns the maximal value for this parameter, if it has one, or `null` otherwise.
`Comparable<?>`
OpenMBeanParameterInfoSupport.`getMaxValue()`
Returns the maximal value for the parameter described by this `OpenMBeanParameterInfoSupport` instance, if specified, or `null` otherwise.
`Comparable<?>`
OpenMBeanAttributeInfoSupport.`getMinValue()`
Returns the minimal value for the attribute described by this `OpenMBeanAttributeInfoSupport` instance, if specified, or `null` otherwise.
`Comparable<?>`
OpenMBeanParameterInfo.`getMinValue()`
Returns the minimal value for this parameter, if it has one, or `null` otherwise.
`Comparable<?>`
OpenMBeanParameterInfoSupport.`getMinValue()`
Returns the minimal value for the parameter described by this `OpenMBeanParameterInfoSupport` instance, if specified, or `null` otherwise.
Constructors in javax.management.openmbean with parameters of type Comparable
Modifier
Constructor
Description
``
`OpenMBeanAttributeInfoSupport(String name, String description, OpenType<T> openType, boolean isReadable, boolean isWritable, boolean isIs, T defaultValue, Comparable<T> minValue, Comparable<T> maxValue)`
Constructs an `OpenMBeanAttributeInfoSupport` instance, which describes the attribute of an open MBean, with the specified `name`, `openType`, `description`, `defaultValue`, `minValue` and `maxValue`.
``
`OpenMBeanParameterInfoSupport(String name, String description, OpenType<T> openType, T defaultValue, Comparable<T> minValue, Comparable<T> maxValue)`
Constructs an `OpenMBeanParameterInfoSupport` instance, which describes the parameter used in one or more operations or constructors of a class of open MBeans, with the specified `name`, `openType`, `description`, `defaultValue`, `minValue` and `maxValue`.

## Uses of Comparable in javax.naming

Subinterfaces of Comparable in javax.naming
Modifier and Type
Interface
Description
`interface`
`Name`
The `Name` interface represents a generic name -- an ordered sequence of components.
Classes in javax.naming that implement Comparable
Modifier and Type
Class
Description
`class`
`CompositeName`
This class represents a composite name -- a sequence of component names spanning multiple namespaces.
`class`
`CompoundName`
This class represents a compound name -- a name from a hierarchical name space.

## Uses of Comparable in javax.naming.ldap

Classes in javax.naming.ldap that implement Comparable
Modifier and Type
Class
Description
`class`
`LdapName`
This class represents a distinguished name as specified by RFC 2253.
`class`
`Rdn`
This class represents a relative distinguished name, or RDN, which is a component of a distinguished name as specified by RFC 2253.

## Uses of Comparable in javax.net.ssl

Classes in javax.net.ssl that implement Comparable
Modifier and Type
Class
Description
`static enum`
`SSLEngineResult.HandshakeStatus`
An `SSLEngineResult` enum describing the current handshaking state of this `SSLEngine`.
`static enum`
`SSLEngineResult.Status`
An `SSLEngineResult` enum describing the overall result of the `SSLEngine` operation.

## Uses of Comparable in javax.smartcardio

Classes in javax.smartcardio that implement Comparable
Modifier and Type
Class
Description
`static enum`
`CardTerminals.State`
Enumeration of attributes of a CardTerminal.

## Uses of Comparable in javax.swing

Classes in javax.swing that implement Comparable
Modifier and Type
Class
Description
`enum`
`DropMode`
Drop modes, used to determine the method by which a component tracks and indicates a drop location during drag and drop.
`static enum`
`GroupLayout.Alignment`
Enumeration of the possible ways `ParallelGroup` can align its children.
`static enum`
`JTable.PrintMode`
Printing modes, used in printing `JTable`s.
`static enum`
`LayoutStyle.ComponentPlacement`
`ComponentPlacement` is an enumeration of the possible ways two components can be placed relative to each other.
`static enum`
`RowFilter.ComparisonType`
Enumeration of the possible comparison values supported by some of the default `RowFilter`s.
`enum`
`SortOrder`
SortOrder is an enumeration of the possible sort orderings.
`static enum`
`SwingWorker.StateValue`
Values for the `state` bound property.
Methods in javax.swing that return Comparable
Modifier and Type
Method
Description
`Comparable<Date>`
SpinnerDateModel.`getEnd()`
Returns the last `Date` in the sequence.
`Comparable<?>`
SpinnerNumberModel.`getMaximum()`
Returns the last number in the sequence.
`Comparable<?>`
SpinnerNumberModel.`getMinimum()`
Returns the first number in this sequence.
`Comparable<Date>`
SpinnerDateModel.`getStart()`
Returns the first `Date` in the sequence.
Methods in javax.swing with parameters of type Comparable
Modifier and Type
Method
Description
`void`
SpinnerDateModel.`setEnd(Comparable<Date> end)`
Changes the upper limit for `Date`s in this sequence.
`void`
SpinnerNumberModel.`setMaximum(Comparable<?> maximum)`
Changes the upper bound for numbers in this sequence.
`void`
SpinnerNumberModel.`setMinimum(Comparable<?> minimum)`
Changes the lower bound for numbers in this sequence.
`void`
SpinnerDateModel.`setStart(Comparable<Date> start)`
Changes the lower limit for Dates in this sequence.
Constructors in javax.swing with parameters of type Comparable
Modifier
Constructor
Description
``
`SpinnerDateModel(Date value, Comparable<Date> start, Comparable<Date> end, int calendarField)`
Creates a `SpinnerDateModel` that represents a sequence of dates between `start` and `end`.
``
`SpinnerNumberModel(Number value, Comparable<?> minimum, Comparable<?> maximum, Number stepSize)`
Constructs a `SpinnerModel` that represents a closed sequence of numbers from `minimum` to `maximum`.

## Uses of Comparable in javax.swing.event

Classes in javax.swing.event that implement Comparable
Modifier and Type
Class
Description
`static enum`
`RowSorterEvent.Type`
Enumeration of the types of `RowSorterEvent`s.

## Uses of Comparable in javax.swing.plaf.nimbus

Classes in javax.swing.plaf.nimbus that implement Comparable
Modifier and Type
Class
Description
`protected static enum`
`AbstractRegionPainter.PaintContext.CacheMode`
Cache mode.

## Uses of Comparable in javax.swing.text

Methods in javax.swing.text that return Comparable
Modifier and Type
Method
Description
`Comparable<?>`
InternationalFormatter.`getMaximum()`
Returns the maximum permissible value.
`Comparable<?>`
InternationalFormatter.`getMinimum()`
Returns the minimum permissible value.
Methods in javax.swing.text with parameters of type Comparable
Modifier and Type
Method
Description
`void`
InternationalFormatter.`setMaximum(Comparable<?> max)`
Sets the maximum permissible value.
`void`
InternationalFormatter.`setMinimum(Comparable<?> minimum)`
Sets the minimum permissible value.

## Uses of Comparable in javax.swing.text.html

Classes in javax.swing.text.html that implement Comparable
Modifier and Type
Class
Description
`static enum`
`FormSubmitEvent.MethodType`
Represents an HTML form method type.

## Uses of Comparable in javax.tools

Classes in javax.tools that implement Comparable
Modifier and Type
Class
Description
`static enum`
`Diagnostic.Kind`
Kinds of diagnostics, for example, error or warning.
`static enum`
`DocumentationTool.Location`
Locations specific to `DocumentationTool`.
`static enum`
`JavaFileObject.Kind`
Kinds of JavaFileObjects.
`enum`
`StandardLocation`
Standard locations of file objects.

## Uses of Comparable in javax.xml.catalog

Classes in javax.xml.catalog that implement Comparable
Modifier and Type
Class
Description
`static enum`
`CatalogFeatures.Feature`
A Feature type as defined in the Catalog Features table.

## Uses of Comparable in javax.xml.xpath

Classes in javax.xml.xpath that implement Comparable
Modifier and Type
Class
Description
`static enum`
`XPathEvaluationResult.XPathResultType`
XPathResultType represents possible return types of an XPath evaluation.

## Uses of Comparable in jdk.dynalink

Classes in jdk.dynalink that implement Comparable
Modifier and Type
Class
Description
`enum`
`StandardNamespace`
An enumeration of standard namespaces defined by Dynalink.
`enum`
`StandardOperation`
Defines the standard dynamic operations.

## Uses of Comparable in jdk.dynalink.linker

Classes in jdk.dynalink.linker that implement Comparable
Modifier and Type
Class
Description
`static enum`
`ConversionComparator.Comparison`
Enumeration of possible outcomes of comparing one conversion to another.

## Uses of Comparable in jdk.incubator.foreign

Classes in jdk.incubator.foreign that implement Comparable
Modifier and Type
Class
Description
`static enum`
`CLinker.TypeKind`
A C type kind.

## Uses of Comparable in jdk.incubator.vector

Classes in jdk.incubator.vector that implement Comparable
Modifier and Type
Class
Description
`enum`
`VectorShape`
A `VectorShape` selects a particular implementation of `Vector`s.

## Uses of Comparable in jdk.javadoc.doclet

Classes in jdk.javadoc.doclet that implement Comparable
Modifier and Type
Class
Description
`static enum`
`Doclet.Option.Kind`
The kind of an option.
`static enum`
`DocletEnvironment.ModuleMode`
The mode specifying the level of detail of module documentation.
`static enum`
`Taglet.Location`
The kind of location in which a tag may be used.

## Uses of Comparable in jdk.jfr

Classes in jdk.jfr that implement Comparable
Modifier and Type
Class
Description
`enum`
`RecordingState`
Indicates a state in the life cycle of a recording.

## Uses of Comparable in jdk.jshell

Classes in jdk.jshell that implement Comparable
Modifier and Type
Class
Description
`static enum`
`Snippet.Kind`
Describes the general kind of snippet.
`static enum`
`Snippet.Status`
Describes the current state of a Snippet.
`static enum`
`Snippet.SubKind`
The detailed variety of a snippet.
`static enum`
`SourceCodeAnalysis.Completeness`
Describes the completeness of the given input.