Uses of Interface
java.lang.Comparable
Packages that useComparable Package Description com.sun.javadoc Note: The declarations in this package have been superseded by thosein the packagejdk.javadoc.doclet.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 thejava.lang.managementAPI 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.invoke Thejava.lang.invokepackage provides low-level primitives for interacting with the Java Virtual Machine.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.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 APIsjava.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 adata source (usually a relational database) using theJava™ 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 Classes and hierarchies of packages used to model 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 ofprogram elements andtypes.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 APIjavax.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 classHTMLEditorKitand 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 anobject-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 aninvokedynamiccall site.jdk.dynalink.linker Contains interfaces and classes needed by language runtimes to implement their own language-specific object models and type conversions.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.jdk.nashorn.api.tree Nashorn parser API provides interfaces to represent ECMAScript source code as abstract syntax trees (AST) and Parser to parse ECMAScript source scripts.jdk.net Platform specific socket options for thejava.netandjava.nio.channelssocket classes.Uses ofComparable incom.sun.javadoc
Subinterfaces ofComparable incom.sun.javadoc Modifier and Type Interface Description interfaceAnnotationTypeDocDeprecated, for removal: This API element is subject to removal in a future version.The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet.interfaceAnnotationTypeElementDocDeprecated, for removal: This API element is subject to removal in a future version.The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet.interfaceClassDocDeprecated, for removal: This API element is subject to removal in a future version.The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet.interfaceConstructorDocDeprecated, for removal: This API element is subject to removal in a future version.The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet.interfaceDocDeprecated, for removal: This API element is subject to removal in a future version.The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet.interfaceExecutableMemberDocDeprecated, for removal: This API element is subject to removal in a future version.The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet.interfaceFieldDocDeprecated, for removal: This API element is subject to removal in a future version.The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet.interfaceMemberDocDeprecated, for removal: This API element is subject to removal in a future version.The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet.interfaceMethodDocDeprecated, for removal: This API element is subject to removal in a future version.The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet.interfacePackageDocDeprecated, for removal: This API element is subject to removal in a future version.The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet.interfaceProgramElementDocDeprecated, for removal: This API element is subject to removal in a future version.The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet.interfaceRootDocDeprecated, for removal: This API element is subject to removal in a future version.The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet.interfaceSerialFieldTagDeprecated, for removal: This API element is subject to removal in a future version.The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet.Classes incom.sun.javadoc that implementComparable Modifier and Type Class Description classLanguageVersionDeprecated, for removal: This API element is subject to removal in a future version.The declarations in this package have been superseded by those in the packagejdk.javadoc.doclet.Uses ofComparable incom.sun.jdi
Subinterfaces ofComparable incom.sun.jdi Modifier and Type Interface Description interfaceArrayTypeProvides access to the class of an array and the type of its components in the target VM.interfaceByteValueProvides access to a primitivebytevalue in the target VM.interfaceCharValueProvides access to a primitivecharvalue in the target VM.interfaceClassTypeA mirror of a class in the target VM.interfaceDoubleValueProvides access to a primitivedoublevalue in the target VM.interfaceFieldA class or instance variable in the target VM.interfaceFloatValueProvides access to a primitivefloatvalue in the target VM.interfaceIntegerValueProvides access to a primitiveintvalue in the target VM.interfaceInterfaceTypeA mirror of an interface in the target VM.interfaceLocalVariableA local variable in the target VM.interfaceLocationA point within the executing code of the target VM.interfaceLongValueProvides access to a primitivelongvalue in the target VM.interfaceMethodA static or instance method in the target VM.interfaceReferenceTypeThe type of an object in a target VM.interfaceShortValueProvides access to a primitiveshortvalue in the target VM.Uses ofComparable incom.sun.management
Classes incom.sun.management that implementComparable Modifier and Type Class Description static classVMOption.OriginOrigin of the value of a VM option.Uses ofComparable incom.sun.nio.sctp
Classes incom.sun.nio.sctp that implementComparable Modifier and Type Class Description static classAssociationChangeNotification.AssocChangeEventDefines the type of change event that happened to the association.classHandlerResultDefines notification handler results.static classPeerAddressChangeNotification.AddressChangeEventDefines 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 ofComparable incom.sun.security.jgss
Classes incom.sun.security.jgss that implementComparable Modifier and Type Class Description classInquireTypeAttribute types that can be specified as an argument ofExtendedGSSContext.inquireSecContext(com.sun.security.jgss.InquireType)Uses ofComparable incom.sun.source.doctree
Classes incom.sun.source.doctree that implementComparable Modifier and Type Class Description static classAttributeTree.ValueKindThe kind of an attribute value.static classDocTree.KindEnumerates all kinds of trees.Uses ofComparable incom.sun.source.tree
Classes incom.sun.source.tree that implementComparable Modifier and Type Class Description static classLambdaExpressionTree.BodyKindLambda expressions come in two forms: expression lambdas, whose body is an expression, and statement lambdas, whose body is a blockstatic classMemberReferenceTree.ReferenceModeThere are two kinds of member references: (i) method references and (ii) constructor referencesstatic classModuleTree.ModuleKindThe kind of the module.static classTree.KindEnumerates all kinds of trees.Uses ofComparable incom.sun.source.util
Classes incom.sun.source.util that implementComparable Modifier and Type Class Description static classTaskEvent.KindKind of task event.Uses ofComparable incom.sun.tools.jconsole
Classes incom.sun.tools.jconsole that implementComparable Modifier and Type Class Description static classJConsoleContext.ConnectionStateValues for theConnectionState bound property.Uses ofComparable injava.awt
Classes injava.awt that implementComparable Modifier and Type Class Description static classComponent.BaselineResizeBehaviorEnumeration of the common ways the baseline of a component can change as the size changes.static classDesktop.ActionRepresents an action type.static classDialog.ModalExclusionTypeAny top-level window can be marked not to be blocked by modal dialogs.static classDialog.ModalityTypeModal dialogs block all input to some top-level windows.static classGraphicsDevice.WindowTranslucencyKinds of translucency supported by the underlying system.static classMultipleGradientPaint.ColorSpaceTypeThe color space in which to perform the gradient interpolation.static classMultipleGradientPaint.CycleMethodThe method to use when painting outside the gradient bounds.static classTaskbar.FeatureList of provided features.static classTaskbar.StateKinds of available window progress states.static classTrayIcon.MessageTypeThe 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 classWindow.TypeEnumeration of availablewindow types.Uses ofComparable injava.awt.desktop
Classes injava.awt.desktop that implementComparable Modifier and Type Class Description classQuitStrategyThe strategy used to shut down the application, if Sudden Termination is not enabled.static classUserSessionEvent.ReasonKinds of available reasons of user session change.Uses ofComparable injava.awt.event
Classes injava.awt.event that implementComparable Modifier and Type Class Description static classFocusEvent.CauseThis enum represents the cause of aFocusEvent- the reason why it occurred.Uses ofComparable injava.awt.font
Classes injava.awt.font that implementComparable Modifier and Type Class Description static classNumericShaper.RangeANumericShaper.Rangerepresents a Unicode range of a script having its own decimal digits.Uses ofComparable injava.io
Classes injava.io that implementComparable Modifier and Type Class Description classFileAn abstract representation of file and directory pathnames.static classObjectInputFilter.StatusThe status of a check on the class, array length, number of references, depth, and stream size.classObjectStreamFieldA description of a Serializable field from a Serializable class.Uses ofComparable injava.lang
Subinterfaces ofComparable injava.lang Modifier and Type Interface Description interfaceProcessHandleProcessHandle identifies and provides control of native processes.Classes injava.lang that implementComparable Modifier and Type Class Description classBooleanThe Boolean class wraps a value of the primitive typebooleanin an object.classByteTheByteclass wraps a value of primitive typebytein an object.classCharacterTheCharacterclass wraps a value of the primitive typecharin an object.static classCharacter.UnicodeScriptA family of character subsets representing the character scripts defined in theUnicode Standard Annex #24: Script Names.classDoubleTheDoubleclass wraps a value of the primitive typedoublein an object.classEnum<E extendsEnum<E>>This is the common base class of all Java language enumeration types.classFloatTheFloatclass wraps a value of primitive typefloatin an object.classIntegerTheIntegerclass wraps a value of the primitive typeintin an object.classLongTheLongclass wraps a value of the primitive typelongin an object.static classProcessBuilder.Redirect.TypeThe type of aProcessBuilder.Redirect.static classRuntime.VersionA representation of a version string for an implementation of the Java SE Platform.classShortTheShortclass wraps a value of primitive typeshortin an object.static classStackWalker.OptionStack walker option to configure thestack frame information obtained by aStackWalker.classStringTheStringclass represents character strings.classStringBufferA thread-safe, mutable sequence of characters.classStringBuilderA mutable sequence of characters.static classSystem.Logger.LevelSystemloggers levels.static classThread.StateA thread state.Uses ofComparable injava.lang.annotation
Classes injava.lang.annotation that implementComparable Modifier and Type Class Description classElementTypeThe constants of this enumerated type provide a simple classification of the syntactic locations where annotations may appear in a Java program.classRetentionPolicyAnnotation retention policy.Uses ofComparable injava.lang.invoke
Classes injava.lang.invoke that implementComparable Modifier and Type Class Description static classVarHandle.AccessModeThe set of access modes that specify how a variable, referenced by a VarHandle, is accessed.Uses ofComparable injava.lang.management
Classes injava.lang.management that implementComparable Modifier and Type Class Description classMemoryTypeTypes ofmemory pools.Uses ofComparable injava.lang.module
Classes injava.lang.module that implementComparable Modifier and Type Class Description classModuleDescriptorA module descriptor.static classModuleDescriptor.ExportsA package exported by a module, may be qualified or unqualified.static classModuleDescriptor.Exports.ModifierA modifier on an exported package.static classModuleDescriptor.ModifierA modifier on a module.static classModuleDescriptor.OpensA package opened by a module, may be qualified or unqualified.static classModuleDescriptor.Opens.ModifierA modifier on an open package.static classModuleDescriptor.ProvidesA service that a module provides one or more implementations of.static classModuleDescriptor.RequiresA dependence upon a modulestatic classModuleDescriptor.Requires.ModifierA modifier on a module dependence.static classModuleDescriptor.VersionA module's version string.Uses ofComparable injava.math
Classes injava.math that implementComparable Modifier and Type Class Description classBigDecimalImmutable, arbitrary-precision signed decimal numbers.classBigIntegerImmutable arbitrary-precision integers.classRoundingModeSpecifies arounding behavior for numerical operations capable of discarding precision.Uses ofComparable injava.net
Classes injava.net that implementComparable Modifier and Type Class Description static classAuthenticator.RequestorTypeThe type of the entity requesting authentication.static classProxy.TypeRepresents the proxy type.classStandardProtocolFamilyDefines the standard families of communication protocols.classURIRepresents a Uniform Resource Identifier (URI) reference.Uses ofComparable injava.net.http
Classes injava.net.http that implementComparable Modifier and Type Class Description static classHttpClient.RedirectDefines the automatic redirection policy.static classHttpClient.VersionThe HTTP protocol version.Uses ofComparable injava.nio
Classes injava.nio that implementComparable Modifier and Type Class Description classByteBufferA byte buffer.classCharBufferA char buffer.classDoubleBufferA double buffer.classFloatBufferA float buffer.classIntBufferAn int buffer.classLongBufferA long buffer.classMappedByteBufferA direct byte buffer whose content is a memory-mapped region of a file.classShortBufferA short buffer.Uses ofComparable injava.nio.charset
Classes injava.nio.charset that implementComparable Modifier and Type Class Description classCharsetA named mapping between sequences of sixteen-bit Unicodecode units and sequences of bytes.Uses ofComparable injava.nio.file
Subinterfaces ofComparable injava.nio.file Modifier and Type Interface Description interfacePathAn object that may be used to locate a file in a file system.Classes injava.nio.file that implementComparable Modifier and Type Class Description classAccessModeDefines access modes used to test the accessibility of a file.classFileVisitOptionDefines the file tree traversal options.classFileVisitResultThe result type of aFileVisitor.classLinkOptionDefines the options as to how symbolic links are handled.classStandardCopyOptionDefines the standard copy options.classStandardOpenOptionDefines the standard open options.Uses ofComparable injava.nio.file.attribute
Classes injava.nio.file.attribute that implementComparable Modifier and Type Class Description classAclEntryFlagDefines the flags for used by the flags component of an ACLentry.classAclEntryPermissionDefines the permissions for use with the permissions component of an ACLentry.classAclEntryTypeA typesafe enumeration of the access control entry types.classFileTimeRepresents the value of a file's time stamp attribute.classPosixFilePermissionDefines the bits for use with thepermissionsattribute.Uses ofComparable injava.security
Classes injava.security that implementComparable Modifier and Type Class Description classCryptoPrimitiveAn enumeration of cryptographic primitives.static classDrbgParameters.CapabilityThe reseedable and prediction resistance capabilities of a DRBG.static classKeyRep.TypeKey type.Uses ofComparable injava.security.cert
Classes injava.security.cert that implementComparable Modifier and Type Class Description static classCertPathValidatorException.BasicReasonThe BasicReason enumerates the potential reasons that a certification path of any type may be invalid.classCRLReasonThe 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.classPKIXReasonThePKIXReasonenumerates the potential PKIX-specific reasons that an X.509 certification path may be invalid according to the PKIX (RFC 5280) standard.static classPKIXRevocationChecker.OptionVarious revocation options that can be specified for the revocation checking mechanism.Uses ofComparable injava.sql
Classes injava.sql that implementComparable Modifier and Type Class Description classClientInfoStatusEnumeration for status of the reason that a property could not be set via a call toConnection.setClientInfoclassDateA thin wrapper around a millisecond value that allows JDBC to identify this as an SQLDATEvalue.classJDBCTypeDefines the constants that are used to identify generic SQL types, called JDBC types.classPseudoColumnUsageEnumeration for pseudo/hidden column usage.classRowIdLifetimeEnumeration for RowId life-time values.classTimeA thin wrapper around thejava.util.Dateclass that allows the JDBC API to identify this as an SQLTIMEvalue.classTimestampA thin wrapper aroundjava.util.Datethat allows the JDBC API to identify this as an SQLTIMESTAMPvalue.Uses ofComparable injava.text
Classes injava.text that implementComparable Modifier and Type Class Description classCollationKeyACollationKeyrepresents aStringunder the rules of a specificCollatorobject.static classNormalizer.FormThis 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.Uses ofComparable injava.time
Classes injava.time that implementComparable Modifier and Type Class Description classDayOfWeekA day-of-week, such as 'Tuesday'.classDurationA time-based amount of time, such as '34.5 seconds'.classInstantAn instantaneous point on the time-line.classLocalDateA date without a time-zone in the ISO-8601 calendar system, such as2007-12-03.classLocalDateTimeA date-time without a time-zone in the ISO-8601 calendar system, such as2007-12-03T10:15:30.classLocalTimeA time without a time-zone in the ISO-8601 calendar system, such as10:15:30.classMonthA month-of-year, such as 'July'.classMonthDayA month-day in the ISO-8601 calendar system, such as--12-03.classOffsetDateTimeA date-time with an offset from UTC/Greenwich in the ISO-8601 calendar system, such as2007-12-03T10:15:30+01:00.classOffsetTimeA time with an offset from UTC/Greenwich in the ISO-8601 calendar system, such as10:15:30+01:00.classYearA year in the ISO-8601 calendar system, such as2007.classYearMonthA year-month in the ISO-8601 calendar system, such as2007-12.classZonedDateTimeA date-time with a time-zone in the ISO-8601 calendar system, such as2007-12-03T10:15:30+01:00 Europe/Paris.classZoneOffsetA time-zone offset from Greenwich/UTC, such as+02:00.Uses ofComparable injava.time.chrono
Subinterfaces ofComparable injava.time.chrono Modifier and Type Interface Description interfaceChronoLocalDateA date without time-of-day or time-zone in an arbitrary chronology, intended for advanced globalization use cases.interfaceChronoLocalDateTime<D extendsChronoLocalDate>A date-time without a time-zone in an arbitrary chronology, intended for advanced globalization use cases.interfaceChronologyA calendar system, used to organize and identify dates.interfaceChronoZonedDateTime<D extendsChronoLocalDate>A date-time with a time-zone in an arbitrary chronology, intended for advanced globalization use cases.Classes injava.time.chrono that implementComparable Modifier and Type Class Description classAbstractChronologyAn abstract implementation of a calendar system, used to organize and identify dates.classHijrahChronologyThe Hijrah calendar is a lunar calendar supporting Islamic calendars.classHijrahDateA date in the Hijrah calendar system.classHijrahEraAn era in the Hijrah calendar system.classIsoChronologyThe ISO calendar system.classIsoEraAn era in the ISO calendar system.classJapaneseChronologyThe Japanese Imperial calendar system.classJapaneseDateA date in the Japanese Imperial calendar system.classMinguoChronologyThe Minguo calendar system.classMinguoDateA date in the Minguo calendar system.classMinguoEraAn era in the Minguo calendar system.classThaiBuddhistChronologyThe Thai Buddhist calendar system.classThaiBuddhistDateA date in the Thai Buddhist calendar system.classThaiBuddhistEraAn era in the Thai Buddhist calendar system.Uses ofComparable injava.time.format
Classes injava.time.format that implementComparable Modifier and Type Class Description classFormatStyleEnumeration of the style of a localized date, time or date-time formatter.classResolverStyleEnumeration of different ways to resolve dates and times.classSignStyleEnumeration of ways to handle the positive/negative sign.classTextStyleEnumeration of the style of text formatting and parsing.Uses ofComparable injava.time.temporal
Classes injava.time.temporal that implementComparable Modifier and Type Class Description classChronoFieldA standard set of fields.classChronoUnitA standard set of date periods units.Uses ofComparable injava.time.zone
Classes injava.time.zone that implementComparable Modifier and Type Class Description classZoneOffsetTransitionA transition between two offsets caused by a discontinuity in the local time-line.static classZoneOffsetTransitionRule.TimeDefinitionA definition of the way a local time can be converted to the actual transition date-time.Uses ofComparable injava.util
Classes injava.util that implementComparable Modifier and Type Class Description classCalendarTheCalendarclass is an abstract class that provides methods for converting between a specific instant in time and a set ofcalendar fieldssuch asYEAR,MONTH,DAY_OF_MONTH,HOUR, and so on, and for manipulating the calendar fields, such as getting the date of the next week.classDateThe classDaterepresents a specific instant in time, with millisecond precision.static classFormatter.BigDecimalLayoutFormEnum forBigDecimalformatting.classGregorianCalendarGregorianCalendaris a concrete subclass ofCalendarand provides the standard calendar system used by most of the world.static classLocale.CategoryEnum for locale categories.static classLocale.FilteringModeThis enum provides constants to select a filtering mode for locale matching.static classLocale.IsoCountryCodeEnum for specifying the type defined in ISO 3166.classUUIDA class that represents an immutable universally unique identifier (UUID).Methods injava.util with type parameters of typeComparable Modifier and Type Method Description static <T extendsComparable<? super T>>
intArrays. compare(T[] a, int aFromIndex, int aToIndex, T[] b, int bFromIndex, int bToIndex)Compares twoObjectarrays lexicographically over the specified ranges.static <T extendsComparable<? super T>>
intArrays. compare(T[] a, T[] b)Compares twoObjectarrays, within comparable elements, lexicographically.static <T,U extendsComparable<? super U>>
Comparator<T>Comparator. comparing(Function<? super T,? extends U> keyExtractor)Accepts a function that extracts aComparablesort key from a typeT, and returns aComparator<T>that compares by that sort key.static <K extendsComparable<? super K>,V>
Comparator<Map.Entry<K,V>>Map.Entry. comparingByKey()Returns a comparator that comparesMap.Entryin natural order on key.static <K,V extendsComparable<? super V>>
Comparator<Map.Entry<K,V>>Map.Entry. comparingByValue()Returns a comparator that comparesMap.Entryin natural order on value.static <T extendsObject &Comparable<? super T>>
TCollections. max(Collection<? extends T> coll)Returns the maximum element of the given collection, according to thenatural ordering of its elements.static <T extendsObject &Comparable<? super T>>
TCollections. min(Collection<? extends T> coll)Returns the minimum element of the given collection, according to thenatural ordering of its elements.static <T extendsComparable<? super T>>
Comparator<T>Comparator. naturalOrder()Returns a comparator that comparesComparableobjects in natural order.static <T extendsComparable<? super T>>
voidArrays. parallelSort(T[] a)Sorts the specified array of objects into ascending order, according to thenatural ordering of its elements.static <T extendsComparable<? super T>>
voidArrays. parallelSort(T[] a, int fromIndex, int toIndex)Sorts the specified range of the specified array of objects into ascending order, according to thenatural ordering of its elements.static <T extendsComparable<? super T>>
Comparator<T>Comparator. reverseOrder()Returns a comparator that imposes the reverse of thenatural ordering.static <T extendsComparable<? super T>>
voidCollections. sort(List<T> list)Sorts the specified list into ascending order, according to thenatural ordering of its elements.default <U extendsComparable<? super U>>
Comparator<T>Comparator. thenComparing(Function<? superT,? extends U> keyExtractor)Returns a lexicographic-order comparator with a function that extracts aComparablesort key.Methods injava.util with parameters of typeComparable Modifier and Type Method Description static <T extendsComparable<? super T>>
intArrays. compare(T[] a, int aFromIndex, int aToIndex, T[] b, int bFromIndex, int bToIndex)Compares twoObjectarrays lexicographically over the specified ranges.static <T extendsComparable<? super T>>
intArrays. compare(T[] a, T[] b)Compares twoObjectarrays, within comparable elements, lexicographically.static <T extendsComparable<? super T>>
voidArrays. parallelSort(T[] a)Sorts the specified array of objects into ascending order, according to thenatural ordering of its elements.static <T extendsComparable<? super T>>
voidArrays. parallelSort(T[] a, int fromIndex, int toIndex)Sorts the specified range of the specified array of objects into ascending order, according to thenatural ordering of its elements.Method parameters injava.util with type arguments of typeComparable Modifier and Type Method Description static <T> intCollections. binarySearch(List<? extendsComparable<? super T>> list, T key)Searches the specified list for the specified object using the binary search algorithm.Uses ofComparable injava.util.concurrent
Subinterfaces ofComparable injava.util.concurrent Modifier and Type Interface Description interfaceDelayedA mix-in style interface for marking objects that should be acted upon after a given delay.interfaceRunnableScheduledFuture<V>AScheduledFuturethat isRunnable.interfaceScheduledFuture<V>A delayed result-bearing action that can be cancelled.Classes injava.util.concurrent that implementComparable Modifier and Type Class Description classTimeUnitATimeUnitrepresents 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 ofComparable injava.util.stream
Classes injava.util.stream that implementComparable Modifier and Type Class Description static classCollector.CharacteristicsCharacteristics indicating properties of aCollector, which can be used to optimize reduction implementations.Uses ofComparable injavax.imageio.metadata
Methods injavax.imageio.metadata with type parameters of typeComparable Modifier and Type Method Description protected <T extendsObject &Comparable<? super T>>
voidIIOMetadataFormatImpl. addObjectValue(String elementName,Class<T> classType, T defaultValue,Comparable<? super T> minValue,Comparable<? super T> maxValue, boolean minInclusive, boolean maxInclusive)Allows anObjectreference of a given class type to be stored in nodes implementing the named element.Methods injavax.imageio.metadata that returnComparable Modifier and Type Method Description Comparable<?>IIOMetadataFormat. getObjectMaxValue(String elementName)Returns the maximum legal value for theObjectreference within the named element.Comparable<?>IIOMetadataFormat. getObjectMinValue(String elementName)Returns the minimum legal value for theObjectreference within the named element.Methods injavax.imageio.metadata with parameters of typeComparable Modifier and Type Method Description protected <T extendsObject &Comparable<? super T>>
voidIIOMetadataFormatImpl. addObjectValue(String elementName,Class<T> classType, T defaultValue,Comparable<? super T> minValue,Comparable<? super T> maxValue, boolean minInclusive, boolean maxInclusive)Allows anObjectreference of a given class type to be stored in nodes implementing the named element.Uses ofComparable injavax.lang.model
Classes injavax.lang.model that implementComparable Modifier and Type Class Description classSourceVersionSource versions of the Java™ programming language.Uses ofComparable injavax.lang.model.element
Classes injavax.lang.model.element that implementComparable Modifier and Type Class Description classElementKindThekindof an element.classModifierRepresents a modifier on a program element such as a class, method, or field.static classModuleElement.DirectiveKindThekindof a directive.classNestingKindThenesting kind of a type element.Uses ofComparable injavax.lang.model.type
Classes injavax.lang.model.type that implementComparable Modifier and Type Class Description classTypeKindThe kind of a type mirror.Uses ofComparable injavax.lang.model.util
Classes injavax.lang.model.util that implementComparable Modifier and Type Class Description static classElements.OriginTheorigin of an element or other language model item.Uses ofComparable injavax.management
Classes injavax.management that implementComparable Modifier and Type Class Description classObjectNameRepresents the object name of an MBean, or a pattern that can match the names of several MBeans.Uses ofComparable injavax.management.openmbean
Methods injavax.management.openmbean that returnComparable Modifier and Type Method Description Comparable<?>OpenMBeanAttributeInfoSupport. getMaxValue()Returns the maximal value for the attribute described by thisOpenMBeanAttributeInfoSupportinstance, if specified, ornullotherwise.Comparable<?>OpenMBeanParameterInfo. getMaxValue()Returns the maximal value for this parameter, if it has one, ornullotherwise.Comparable<?>OpenMBeanParameterInfoSupport. getMaxValue()Returns the maximal value for the parameter described by thisOpenMBeanParameterInfoSupportinstance, if specified, ornullotherwise.Comparable<?>OpenMBeanAttributeInfoSupport. getMinValue()Returns the minimal value for the attribute described by thisOpenMBeanAttributeInfoSupportinstance, if specified, ornullotherwise.Comparable<?>OpenMBeanParameterInfo. getMinValue()Returns the minimal value for this parameter, if it has one, ornullotherwise.Comparable<?>OpenMBeanParameterInfoSupport. getMinValue()Returns the minimal value for the parameter described by thisOpenMBeanParameterInfoSupportinstance, if specified, ornullotherwise.Constructors injavax.management.openmbean with parameters of typeComparable 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 anOpenMBeanAttributeInfoSupportinstance, which describes the attribute of an open MBean, with the specifiedname,openType,description,defaultValue,minValueandmaxValue.OpenMBeanParameterInfoSupport(String name,String description,OpenType<T> openType, T defaultValue,Comparable<T> minValue,Comparable<T> maxValue)Constructs anOpenMBeanParameterInfoSupportinstance, which describes the parameter used in one or more operations or constructors of a class of open MBeans, with the specifiedname,openType,description,defaultValue,minValueandmaxValue.Uses ofComparable injavax.naming
Subinterfaces ofComparable injavax.naming Modifier and Type Interface Description interfaceNameTheNameinterface represents a generic name -- an ordered sequence of components.Classes injavax.naming that implementComparable Modifier and Type Class Description classCompositeNameThis class represents a composite name -- a sequence of component names spanning multiple namespaces.classCompoundNameThis class represents a compound name -- a name from a hierarchical name space.Uses ofComparable injavax.naming.ldap
Classes injavax.naming.ldap that implementComparable Modifier and Type Class Description classLdapNameThis class represents a distinguished name as specified byRFC 2253.classRdnThis class represents a relative distinguished name, or RDN, which is a component of a distinguished name as specified byRFC 2253.Uses ofComparable injavax.net.ssl
Classes injavax.net.ssl that implementComparable Modifier and Type Class Description static classSSLEngineResult.HandshakeStatusAnSSLEngineResultenum describing the current handshaking state of thisSSLEngine.static classSSLEngineResult.StatusAnSSLEngineResultenum describing the overall result of theSSLEngineoperation.Uses ofComparable injavax.smartcardio
Classes injavax.smartcardio that implementComparable Modifier and Type Class Description static classCardTerminals.StateEnumeration of attributes of a CardTerminal.Uses ofComparable injavax.swing
Classes injavax.swing that implementComparable Modifier and Type Class Description classDropModeDrop modes, used to determine the method by which a component tracks and indicates a drop location during drag and drop.static classGroupLayout.AlignmentEnumeration of the possible waysParallelGroupcan align its children.static classJTable.PrintModePrinting modes, used in printingJTables.static classLayoutStyle.ComponentPlacementComponentPlacementis an enumeration of the possible ways two components can be placed relative to each other.static classRowFilter.ComparisonTypeEnumeration of the possible comparison values supported by some of the defaultRowFilters.classSortOrderSortOrder is an enumeration of the possible sort orderings.static classSwingWorker.StateValueValues for thestatebound property.Methods injavax.swing that returnComparable Modifier and Type Method Description Comparable<Date>SpinnerDateModel. getEnd()Returns the lastDatein 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 firstDatein the sequence.Methods injavax.swing with parameters of typeComparable Modifier and Type Method Description voidSpinnerDateModel. setEnd(Comparable<Date> end)Changes the upper limit forDates in this sequence.voidSpinnerNumberModel. setMaximum(Comparable<?> maximum)Changes the upper bound for numbers in this sequence.voidSpinnerNumberModel. setMinimum(Comparable<?> minimum)Changes the lower bound for numbers in this sequence.voidSpinnerDateModel. setStart(Comparable<Date> start)Changes the lower limit for Dates in this sequence.Constructors injavax.swing with parameters of typeComparable Constructor Description SpinnerDateModel(Date value,Comparable<Date> start,Comparable<Date> end, int calendarField)Creates aSpinnerDateModelthat represents a sequence of dates betweenstartandend.SpinnerNumberModel(Number value,Comparable<?> minimum,Comparable<?> maximum,Number stepSize)Constructs aSpinnerModelthat represents a closed sequence of numbers fromminimumtomaximum.Uses ofComparable injavax.swing.event
Classes injavax.swing.event that implementComparable Modifier and Type Class Description static classRowSorterEvent.TypeEnumeration of the types ofRowSorterEvents.Uses ofComparable injavax.swing.plaf.nimbus
Classes injavax.swing.plaf.nimbus that implementComparable Modifier and Type Class Description protected static classAbstractRegionPainter.PaintContext.CacheModeCache mode.Uses ofComparable injavax.swing.text
Methods injavax.swing.text that returnComparable Modifier and Type Method Description Comparable<?>InternationalFormatter. getMaximum()Returns the maximum permissible value.Comparable<?>InternationalFormatter. getMinimum()Returns the minimum permissible value.Methods injavax.swing.text with parameters of typeComparable Modifier and Type Method Description voidInternationalFormatter. setMaximum(Comparable<?> max)Sets the maximum permissible value.voidInternationalFormatter. setMinimum(Comparable<?> minimum)Sets the minimum permissible value.Uses ofComparable injavax.swing.text.html
Classes injavax.swing.text.html that implementComparable Modifier and Type Class Description static classFormSubmitEvent.MethodTypeRepresents an HTML form method type.Uses ofComparable injavax.tools
Classes injavax.tools that implementComparable Modifier and Type Class Description static classDiagnostic.KindKinds of diagnostics, for example, error or warning.static classDocumentationTool.LocationLocations specific toDocumentationTool.static classJavaFileObject.KindKinds of JavaFileObjects.classStandardLocationStandard locations of file objects.Uses ofComparable injavax.xml.catalog
Classes injavax.xml.catalog that implementComparable Modifier and Type Class Description static classCatalogFeatures.FeatureA Feature type as defined in theCatalog Features table.Uses ofComparable injavax.xml.xpath
Classes injavax.xml.xpath that implementComparable Modifier and Type Class Description static classXPathEvaluationResult.XPathResultTypeXPathResultType represents possible return types of an XPath evaluation.Uses ofComparable injdk.dynalink
Classes injdk.dynalink that implementComparable Modifier and Type Class Description classStandardNamespaceAn enumeration of standard namespaces defined by Dynalink.classStandardOperationDefines the standard dynamic operations.Uses ofComparable injdk.dynalink.linker
Classes injdk.dynalink.linker that implementComparable Modifier and Type Class Description static classConversionComparator.ComparisonEnumeration of possible outcomes of comparing one conversion to another.Uses ofComparable injdk.javadoc.doclet
Classes injdk.javadoc.doclet that implementComparable Modifier and Type Class Description static classDoclet.Option.KindThe kind of an option.static classDocletEnvironment.ModuleModestatic classTaglet.LocationThe kind of location in which a tag may be used.Uses ofComparable injdk.jfr
Classes injdk.jfr that implementComparable Modifier and Type Class Description classRecordingStateIndicates a state in the life cycle of a recording.Uses ofComparable injdk.jshell
Classes injdk.jshell that implementComparable Modifier and Type Class Description static classSnippet.KindDescribes the general kind of snippet.static classSnippet.StatusDescribes the current state of a Snippet.static classSnippet.SubKindThe detailed variety of a snippet.static classSourceCodeAnalysis.CompletenessDescribes the completeness of the given input.Uses ofComparable injdk.nashorn.api.tree
Classes injdk.nashorn.api.tree that implementComparable Modifier and Type Class Description static classDiagnostic.KindDeprecated, for removal: This API element is subject to removal in a future version.Nashorn JavaScript script engine and APIs, and the jjs tool are deprecated with the intent to remove them in a future release.static classTree.KindDeprecated, for removal: This API element is subject to removal in a future version.Nashorn JavaScript script engine and APIs, and the jjs tool are deprecated with the intent to remove them in a future release.Uses ofComparable injdk.net
Classes injdk.net that implementComparable Modifier and Type Class Description static classSocketFlow.StatusEnumeration of the return values from the SO_FLOW_SLA socket option.