Skip to content

Latest commit

 

History

History
393 lines (370 loc) · 102 KB

classes.md

File metadata and controls

393 lines (370 loc) · 102 KB

The JDK classes

The subset of the Java language has a part of the JDK's classes, each with the members the table below lists and no others; a missing class or member is refused by name. String, StringBuilder, the boxes, Math, System and IO are part of the front end. Every other class is written in the subset itself and compiled with the program as far as the program reaches it, so a class of the program can extend or implement one (AbstractList, Iterable, Comparator). A third-party library is none of these: it is read as source from the program's source path (Using a third-party library).

Class Members
Object, Cloneable new Object(), toString, equals, hashCode, getClass(), wait(), wait(long), notify, notifyAll; the protected clone(), a copy of the fields of an instance of a Cloneable class and CloneNotSupportedException for any other, and finalize(), which does nothing. clone() is public where a JDK's is: ArrayList, Vector, LinkedList, ArrayDeque, HashMap, LinkedHashMap, HashSet, LinkedHashSet, Hashtable, Properties, IdentityHashMap, TreeMap, TreeSet, EnumSet, EnumMap, ConcurrentSkipListMap, ConcurrentSkipListSet, CopyOnWriteArrayList, BitSet, Locale, java.util.Date and java.sql's, Format, MessageFormat, MessageDigest, Mac: a collection's copy holds the same elements in a structure of its own
Class a class literal (Name.class, int.class, String[].class, void.class) and getClass(); getName, getSimpleName, getCanonicalName, getTypeName, getPackageName, getSuperclass, getComponentType, componentType, arrayType, isInstance, cast, isAssignableFrom, isInterface, isArray, isPrimitive, isEnum, isRecord, isAnonymousClass, isAnnotation, isMemberClass, getEnclosingClass, getDeclaringClass, getDeclaredClasses (Deviations), getEnumConstants, getModifiers, getDeclaredMethods, getMethods, getDeclaredMethod, getMethod, getDeclaredFields, getFields, getDeclaredField, getField, getDeclaredConstructors, getConstructors, getDeclaredConstructor, getConstructor, newInstance(), getInterfaces, forName, asSubclass, getAnnotation, getDeclaredAnnotation, isAnnotationPresent, getAnnotations, getDeclaredAnnotations, getAnnotationsByType, getDeclaredAnnotationsByType (Deviations), getGenericSuperclass, getGenericInterfaces, getAnnotatedSuperclass, getAnnotatedInterfaces, getTypeParameters, toGenericString, getRecordComponents, getPackage, toString, equals, hashCode; getResourceAsStream, getResource and getClassLoader (Resources)
java.lang.reflect.Method getName, getDeclaringClass, getReturnType, getParameterTypes, getParameterCount, getExceptionTypes, getGenericReturnType, getGenericParameterTypes, getGenericExceptionTypes, getAnnotatedReturnType, getAnnotatedParameterTypes, getAnnotatedExceptionTypes, getAnnotatedReceiverType, getTypeParameters, getParameters, getParameterAnnotations, getModifiers, isVarArgs, isDefault, isBridge, isSynthetic, getDefaultValue, invoke, isAccessible, setAccessible, trySetAccessible, toString, toGenericString, equals, hashCode
java.lang.reflect.Field getName, getDeclaringClass, getType, getGenericType, getAnnotatedType, getModifiers, isEnumConstant, isSynthetic, get, set, getBoolean .. getDouble, setBoolean .. setDouble, isAccessible, setAccessible, trySetAccessible, toString, toGenericString, equals, hashCode
java.lang.reflect.Constructor newInstance, getDeclaringClass, getName, getParameterTypes, getParameterCount, getExceptionTypes, getGenericParameterTypes, getGenericExceptionTypes, getAnnotatedReturnType, getAnnotatedParameterTypes, getAnnotatedExceptionTypes, getAnnotatedReceiverType, getTypeParameters, getParameters, getParameterAnnotations, getModifiers, isVarArgs, isSynthetic, isAccessible, setAccessible, toString, toGenericString, equals, hashCode; InvocationTargetException, InaccessibleObjectException
java.lang.reflect.Modifier, Member, Executable, AccessibleObject Modifier's constants, its tests (isPublic ..), toString and the masks (classModifiers ..); Member and Executable as the types of a field, a method and a constructor; AccessibleObject.setAccessible of an array; the annotations of a field, a method and a constructor (getAnnotation, getAnnotations, getDeclaredAnnotations, getAnnotationsByType ..)
java.lang.reflect.Proxy, InvocationHandler isProxyClass, false of every class, and getInvocationHandler, refused, as no proxy is made here (Deviations); InvocationHandler as a type a class implements
java.lang.module.ModuleFinder, ModuleReference, ModuleDescriptor ModuleFinder.ofSystem(), whose findAll and find answer java.base alone (Deviations); descriptor; name
java.lang.reflect.Type, ParameterizedType, TypeVariable, WildcardType, GenericArrayType, GenericDeclaration a type a declaration's generic signature names, of a class of the program, of a library reachability metadata declares and of the JDK: getTypeName, getActualTypeArguments, getRawType, getOwnerType, getBounds, getAnnotatedBounds, getGenericDeclaration, getName, a type variable's annotations, getUpperBounds, getLowerBounds, getGenericComponentType, toString, equals, hashCode
java.lang.reflect.AnnotatedType, AnnotatedParameterizedType, AnnotatedTypeVariable, AnnotatedWildcardType, AnnotatedArrayType the use of a type a declaration names, with the type annotations written in it: getType, getAnnotatedOwnerType, getAnnotatedActualTypeArguments, getAnnotatedBounds, getAnnotatedUpperBounds, getAnnotatedLowerBounds, getAnnotatedGenericComponentType, the annotations, toString, equals, hashCode (Deviations)
java.lang.reflect.Parameter getName, isNamePresent, getModifiers, getType, getParameterizedType, getAnnotatedType, isImplicit, isSynthetic, isVarArgs, getDeclaringExecutable, the annotations, toString, equals, hashCode (Deviations)
java.lang.reflect.RecordComponent, AnnotatedElement getName, getType, getGenericType, getAnnotatedType, getGenericSignature, getAccessor, getDeclaringRecord, the annotations, toString; AnnotatedElement as the type of what carries annotations
java.lang.reflect.Array newInstance of a class object and a length or of dimensions, getLength, get, set, getBoolean .. getDouble, setBoolean .. setDouble (Deviations)
java.lang.invoke.MethodHandles, MethodHandles.Lookup lookup(), publicLookup(); a lookup's findStatic, findVirtual, findConstructor, unreflect, unreflectConstructor, lookupClass, lookupModes, toString and the constants of its modes (Deviations)
java.lang.invoke.MethodType methodType of a return type and parameter types in each form, genericMethodType, returnType, parameterType, parameterCount, parameterList, parameterArray, lastParameterType, changeReturnType, changeParameterType, insertParameterTypes, appendParameterTypes, dropParameterTypes, hasPrimitives, hasWrappers, wrap, unwrap, erase, generic, toMethodDescriptorString, descriptorString, equals, hashCode, toString
java.lang.invoke.MethodHandle, WrongMethodTypeException invokeExact and invoke, of the type the call has, invokeWithArguments of an array or a list, type, asType, bindTo, isVarargsCollector, asFixedArity, toString
java.lang.annotation.Annotation annotationType(), equals, hashCode and toString as Annotation specifies them and a JDK writes them (Deviations), and the elements of an annotation
Deprecated, FunctionalInterface, SafeVarargs, java.lang.annotation's Retention, Target, Documented, Inherited, Repeatable the annotation types, carried where the program runs as a JDK carries them, and their elements
Package getName, the annotations of a package's package-info.java, getSpecificationTitle .. getImplementationVendor (none), isSealed, toString, hashCode
ClassLoader getSystemClassLoader, getPlatformClassLoader, getParent, getResourceAsStream, getResource, getResources, getSystemResourceAsStream, getSystemResource, getSystemResources (Resources), loadClass of a class Class.forName finds
An enum values(), valueOf(String), Enum.valueOf(Class, String), name, ordinal, compareTo, getDeclaringClass, toString
A record the accessors, equals, hashCode, toString
An array length, clone()
String length, charAt, isEmpty, isBlank, equals, equalsIgnoreCase, compareTo, compareToIgnoreCase, hashCode, substring, subSequence, indexOf and lastIndexOf of a string or a character with or without a start, indexOf within a range, codePointAt, codePointBefore, codePointCount, offsetByCodePoints, regionMatches, contentEquals, getChars, indent, stripIndent, translateEscapes, contains, startsWith, endsWith, toUpperCase, toLowerCase, trim, strip, stripLeading, stripTrailing, repeat, replace, replaceAll, replaceFirst, matches, concat, toCharArray, split, intern, formatted, getBytes of nothing, a Charset or a charset's name, toUpperCase and toLowerCase of a Locale; String.valueOf, String.copyValueOf, String.join, String.format with or without a Locale, String.CASE_INSENSITIVE_ORDER; new String(), new String(String), new String(char[]), new String(char[], int, int), new String(byte[]) with or without a range and a Charset or a charset's name, chars, codePoints, lines
StringBuilder, StringBuffer the constructors of nothing, a capacity or a text; append of a value or of a range of a text or of a char[], insert of a value or of a range of a text or of a char[], getChars, ensureCapacity (which does nothing), reverse, setLength, setCharAt, deleteCharAt, delete, replace, indexOf and lastIndexOf with or without a start, appendCodePoint, repeat of a text or a code point, compareTo, toString, length, isEmpty, charAt, substring, subSequence, chars, codePoints; each is a Comparable of its own class
CharSequence length, charAt, subSequence, isEmpty, chars, codePoints; a String and a StringBuilder are one
Appendable append of a CharSequence, of a range of one and of a char; a StringBuilder, a Writer and a PrintStream are one
Integer, Long boxing and unboxing; MAX_VALUE, MIN_VALUE, SIZE, BYTES, parseInt / parseLong with or without a radix, valueOf, decode, toString with or without a radix, toBinaryString, toHexString, toOctalString, Integer.parseUnsignedInt and Long.parseUnsignedLong with or without a radix, toUnsignedString with or without a radix, Integer.toUnsignedLong, divideUnsigned, remainderUnsigned, compareUnsigned, highestOneBit, lowestOneBit, numberOfLeadingZeros, numberOfTrailingZeros, reverse, reverseBytes, rotateLeft, rotateRight, compare, signum, sum, max, min, bitCount, hashCode, intValue, longValue, doubleValue, compareTo; Integer.getInteger and Long.getLong with or without a default (no property getProperty answers is a number, so the default)
Byte, Short boxing and unboxing; MAX_VALUE, MIN_VALUE, SIZE, BYTES, parseByte / parseShort with or without a radix, valueOf, toString, compare, hashCode, toUnsignedInt, byteValue / shortValue, intValue, longValue, floatValue, doubleValue, compareTo
Float MAX_VALUE, MIN_VALUE, MIN_NORMAL, MAX_EXPONENT, MIN_EXPONENT, SIZE, BYTES, POSITIVE_INFINITY, NEGATIVE_INFINITY, NaN, parseFloat, valueOf, toString, toHexString, compare, hashCode, floatToIntBits, floatToRawIntBits, intBitsToFloat, isNaN, isInfinite, isFinite, sum, max, min, floatValue, doubleValue, intValue, longValue, compareTo
Double MAX_VALUE, MIN_VALUE, MIN_NORMAL, MAX_EXPONENT, MIN_EXPONENT, SIZE, BYTES, POSITIVE_INFINITY, NEGATIVE_INFINITY, NaN, parseDouble, valueOf, toString, toHexString, compare, hashCode, doubleToLongBits, doubleToRawLongBits, longBitsToDouble, isNaN, isInfinite, isFinite, sum, max, min, intValue, longValue, doubleValue, compareTo
Boolean, Character Boolean.TRUE, FALSE, parseBoolean, getBoolean (no property getProperty answers is true), valueOf, toString, hashCode, compare, logicalAnd, logicalOr, logicalXor, booleanValue, compareTo; Character.MAX_VALUE, MIN_VALUE, valueOf, toString, compare, hashCode, isDigit, isLetter, isLetterOrDigit, isAlphabetic, isWhitespace, isSpaceChar, isUpperCase, isLowerCase, toUpperCase, toLowerCase, toTitleCase, getNumericValue, digit, forDigit, charValue, compareTo; getType and the constants of the general categories, isTitleCase, isDefined, isMirrored, isIdeographic, isISOControl, isJavaIdentifierStart, isJavaIdentifierPart, isUnicodeIdentifierStart, isUnicodeIdentifierPart, isIdentifierIgnorable, isEmoji, isEmojiPresentation, isEmojiModifier, isEmojiModifierBase, isEmojiComponent, isExtendedPictographic, each test of a char or of a code point; toChars of a code point with or without an array to write into, codePointAt of an array or a CharSequence, codePointCount of a CharSequence, reverseBytes, toString of a code point, charCount, isValidCodePoint, isBmpCodePoint, isSupplementaryCodePoint, isHighSurrogate, isLowSurrogate, isSurrogate, isSurrogatePair, toCodePoint, highSurrogate, lowSurrogate; MIN_RADIX, MAX_RADIX, SIZE, BYTES, MIN_CODE_POINT, MAX_CODE_POINT, MIN_SUPPLEMENTARY_CODE_POINT and the bounds of the surrogates
Number intValue, longValue, floatValue, doubleValue, byteValue, shortValue; a class extending it, which declares the first four
Math, StrictMath PI, E, TAU, abs, max, min, sqrt, cbrt, pow, exp, log, log10, floor, ceil, rint, round, signum, sin, cos, tan, asin, acos, atan, atan2, sinh, cosh, tanh, hypot, toRadians, toDegrees, floorDiv, floorMod, random, addExact, subtractExact, multiplyExact, negateExact, toIntExact, absExact, incrementExact, decrementExact, divideExact, floorDivExact, ceilDivExact, ceilDiv, ceilMod, clamp, multiplyFull, multiplyHigh, unsignedMultiplyHigh, log1p, expm1, IEEEremainder, copySign, getExponent, nextAfter, ulp, nextUp, nextDown, fma, scalb
System out, err (each a PrintStream), in (an InputStream), currentTimeMillis, nanoTime, exit, arraycopy, identityHashCode, lineSeparator, getProperty with or without a default, getProperties (Deviations), getenv of a name and of every variable, gc, getSecurityManager (null) and setSecurityManager (refused), as a JDK since 24
Runtime Runtime.getRuntime, availableProcessors, gc, exit, halt, addShutdownHook, removeShutdownHook
IO println, print, readln
InputStream, OutputStream read of a byte or into an array, readAllBytes, readNBytes, skip, skipNBytes, available, mark, reset, markSupported, transferTo, close, InputStream.nullInputStream; write of a byte or of an array, flush, close, OutputStream.nullOutputStream; a class of the program extends either
ByteArrayInputStream, ByteArrayOutputStream over a byte[] or a range of one; toByteArray, size, reset, writeTo, writeBytes, toString with or without a charset
FilterInputStream, FilterOutputStream, BufferedInputStream, BufferedOutputStream a stream over another, the buffered ones with or without a size
PushbackInputStream, SequenceInputStream with or without a size, unread of a byte or of an array; over two streams or an Enumeration of them
DataInput, DataOutput, DataInputStream, DataOutputStream readBoolean, readByte, readUnsignedByte, readShort, readUnsignedShort, readChar, readInt, readLong, readFloat, readDouble, readFully, skipBytes, readLine, readUTF; the write of each, writeBytes, writeChars, writeUTF, size
Externalizable, ObjectInput, ObjectOutput types a class implements and a program names: nothing reads or writes an object
PrintStream over an OutputStream, with or without automatic flushing and a charset, or over a file (a File or its name, with or without a Charset or a charset's name); print and println of each type, printf and format with or without a Locale, append, write, writeBytes, flush, close, checkError, charset
Reader, Writer read of a character or into an array, skip, ready, mark, reset, markSupported, transferTo, close; write of a character, an array or a string, append, flush, close; Reader.nullReader, Writer.nullWriter; a class of the program extends either
FilterReader, FilterWriter, CharArrayReader, CharArrayWriter, PushbackReader, LineNumberReader a reader or a writer over another; over a char[] or a range of one, toCharArray, size, reset, writeTo; with or without a size, unread of a character or of an array; getLineNumber, setLineNumber
StringReader, StringWriter, InputStreamReader, OutputStreamWriter over a string; getBuffer, toString; over a stream, with or without a Charset or a charset's name, getEncoding
BufferedReader, BufferedWriter, PrintWriter with or without a buffer size; readLine, lines; newLine; a PrintWriter over a Writer or an OutputStream, with or without automatic flushing and a charset, or over a file as a PrintStream is, with the members of PrintStream over characters
Charset, StandardCharsets UTF_8, ISO_8859_1, US_ASCII, UTF_16, UTF_16BE, UTF_16LE; Charset.forName, defaultCharset, isSupported, name, displayName, toString, canEncode, newEncoder, newDecoder; encode of a CharBuffer or a String and decode of a ByteBuffer, the bytes getBytes writes and the text new String reads
CharsetEncoder, CharsetDecoder, CoderResult, CodingErrorAction, CoderMalfunctionError the coder of each charset above, or a class of the program's own that writes encodeLoop or decodeLoop; encode and decode of a buffer into a buffer with or without the end of the input, flush, reset, encode of a whole CharBuffer and decode of a whole ByteBuffer; onMalformedInput, onUnmappableCharacter, malformedInputAction, unmappableCharacterAction, replaceWith, replacement, isLegalReplacement, canEncode of a character or a text, charset, averageBytesPerChar, maxBytesPerChar, averageCharsPerByte, maxCharsPerByte, isAutoDetecting; the protected hooks (implReplaceWith, implOnMalformedInput, implOnUnmappableCharacter, implFlush, implReset). CoderResult.UNDERFLOW, OVERFLOW, malformedForLength, unmappableForLength, isUnderflow, isOverflow, isError, isMalformed, isUnmappable, length, throwException; IGNORE, REPLACE, REPORT. Where a step stops, what it counts as malformed and the words of each refusal are a JDK's
File, FileFilter, FilenameFilter new File of a path, of a parent path or File and a child, or of a file: URI; separator, separatorChar, pathSeparator, pathSeparatorChar; getName, getParent, getParentFile, getPath, isAbsolute, getAbsolutePath, getAbsoluteFile, getCanonicalPath, getCanonicalFile, toPath, toURI, exists, isDirectory, isFile, isHidden, canRead, canWrite, canExecute, setReadable, setWritable and setExecutable with or without ownerOnly, setReadOnly, getTotalSpace, getFreeSpace, getUsableSpace, length, lastModified, setLastModified, createNewFile, delete, deleteOnExit, mkdir, mkdirs, renameTo, list and listFiles with or without a filter, listRoots, createTempFile with or without a directory, compareTo, equals, hashCode, toString; accept
FileInputStream, FileOutputStream, FileReader, FileWriter of a File or a path; the output stream and the writer with or without appending, the reader and the writer with or without a Charset; the members of InputStream, OutputStream, InputStreamReader and OutputStreamWriter
RandomAccessFile of a File or a path and a mode (r, rw, rws, rwd); read of a byte or into an array, write of a byte or of an array, seek, getFilePointer, length, setLength, close and the members of DataInput and DataOutput
Path, Paths Path.of and Paths.get of a path and more names or of a file: URI; isAbsolute, getRoot, getFileName, getParent, getNameCount, getName, subpath, startsWith and endsWith of a path or a text, normalize, resolve, resolveSibling, relativize, toAbsolutePath, toRealPath, toFile, toUri, getFileSystem, iterator, compareTo, equals, hashCode, toString
Files exists, notExists, isDirectory, isRegularFile, isSymbolicLink, isReadable, isWritable, isExecutable, isHidden, isSameFile, size, mismatch; readAllBytes, readString, readAllLines, lines, write of bytes or of lines, writeString, each of text with or without a Charset; newInputStream, newOutputStream, newBufferedReader, newBufferedWriter; createFile, createDirectory, createDirectories, createTempFile and createTempDirectory with or without a directory, delete, deleteIfExists, copy of a path to a path or a stream and of a stream to a path, move; list, walk with or without a depth, newDirectoryStream of a directory with or without a glob or a filter, walkFileTree with or without options and a depth, find; createSymbolicLink, readSymbolicLink, createLink; readAttributes of BasicFileAttributes, of PosixFileAttributes or of a text, getAttribute, setAttribute, getFileAttributeView of BasicFileAttributeView, PosixFileAttributeView or FileOwnerAttributeView, getLastModifiedTime, setLastModifiedTime, getPosixFilePermissions, setPosixFilePermissions, getOwner, setOwner; what a path is, its size, its times, its permission bits and its owner are the host's stat (what a .wasm has of it); a file is made with a posix:permissions attribute. Text is read and written strictly: bytes that are no text in the charset are a MalformedInputException, a character it cannot write a MalformedInputException or an UnmappableCharacterException
OpenOption, StandardOpenOption, CopyOption, StandardCopyOption, LinkOption, FileVisitOption the constants: READ, WRITE, APPEND, TRUNCATE_EXISTING, CREATE and CREATE_NEW choose how Files opens a file, DELETE_ON_CLOSE deletes it once it is open, as a JDK on a Unix host does, REPLACE_EXISTING lets a copy or a move replace one, ATOMIC_MOVE moves by the host's rename, COPY_ATTRIBUTES gives a copy the permission bits and the times of last writing and last access, NOFOLLOW_LINKS lets a member see a link as itself and a copy make the link again, FOLLOW_LINKS lets a walk go into one (what the others do)
FileSystem, FileSystems, PathMatcher FileSystems.getDefault; getSeparator, getRootDirectories, getPath, getPathMatcher of a glob or a regular expression, isOpen, isReadOnly, supportedFileAttributeViews; matches
DirectoryStream, FileVisitor, SimpleFileVisitor, FileVisitResult iterator, close, DirectoryStream.Filter; preVisitDirectory, visitFile, visitFileFailed, postVisitDirectory; CONTINUE, TERMINATE, SKIP_SUBTREE, SKIP_SIBLINGS
BasicFileAttributes, BasicFileAttributeView, PosixFileAttributes, PosixFileAttributeView, FileOwnerAttributeView, FileAttributeView, AttributeView, UserPrincipal, GroupPrincipal, FileTime, FileAttribute, PosixFilePermission, PosixFilePermissions lastModifiedTime, lastAccessTime, creationTime, isRegularFile, isDirectory, isSymbolicLink, isOther, size, fileKey, owner, group, permissions (what the host says); of a view name, readAttributes, setTimes (the time of making is not written), setPermissions, getOwner, setOwner, setGroup; of an owner or a group getName, equals, hashCode, toString; FileTime.fromMillis, from of a value and a TimeUnit or of an Instant, to, toMillis, toInstant, compareTo, equals, hashCode, toString; name, value; the nine permissions; toString, fromString, asFileAttribute
Readable, Buffer, CharBuffer read into a CharBuffer, which a Reader and a CharBuffer are. CharBuffer.allocate, wrap of a char[] or a CharSequence with or without a range; capacity, position, limit, mark, reset, clear, flip, rewind, remaining, hasRemaining, get and put of a character, at an index, of an array or a range of one, of a String and of a buffer, compact, slice, duplicate, asReadOnlyBuffer, isReadOnly, hasArray, array, arrayOffset, isDirect, append, length, charAt, subSequence, chars, equals, hashCode, compareTo, mismatch, toString, order (Buffers)
ByteBuffer, ByteOrder allocate, allocateDirect, wrap of a byte[] with or without a range; the members of CharBuffer over bytes but those of text; order and order(ByteOrder), getChar, getShort, getInt, getLong, getFloat, getDouble and their put, relative or at an index, in the buffer's order; the views asCharBuffer, asShortBuffer, asIntBuffer, asLongBuffer, asFloatBuffer, asDoubleBuffer; alignmentOffset, alignedSlice (Buffers). ByteOrder.BIG_ENDIAN, LITTLE_ENDIAN, nativeOrder
ShortBuffer, IntBuffer, LongBuffer, FloatBuffer, DoubleBuffer allocate, wrap of an array with or without a range, and the members of CharBuffer over their elements but those of text
Locale, Locale.Builder, IllformedLocaleException a locale of any language: Locale.forLanguageTag (a BCP 47 tag as far as it is well-formed, the grandfathered tags), Locale.of and the constructors (the old codes iw, ji and in made he, yi and id), every constant (ROOT, ENGLISH, US, UK, CANADA, FRANCE, JAPAN ...), Locale.getDefault with or without a Locale.Category (which is US), Locale.getAvailableLocales (the five whose texts the library writes), getLanguage, getScript, getCountry, getVariant, getExtension, getExtensionKeys, getUnicodeLocaleAttributes, getUnicodeLocaleKeys, getUnicodeLocaleType, hasExtensions, stripExtensions, toLanguageTag, toString, equals, hashCode, clone; the builder's setLocale, setLanguageTag, setLanguage, setScript, setRegion, setVariant, setExtension, setUnicodeLocaleKeyword, addUnicodeLocaleAttribute, removeUnicodeLocaleAttribute, clear, clearExtensions, build, and the refusals' getErrorIndex. What a locale other than the root and the English ones writes: Deviations
MessageFormat new MessageFormat of a pattern with or without a Locale, MessageFormat.format; format of an Object[] or into a StringBuffer, applyPattern, toPattern, getLocale, setLocale, getFormats, getFormatsByArgumentIndex, setFormat, setFormats, setFormatByArgumentIndex, setFormatsByArgumentIndex, equals, hashCode, clone, toString. A pattern's arguments {n}: with no format type a number is written as a JDK writes one in English (1,000, 1,234.568), a BigInteger and a BigDecimal from their own digits, any other value as its toString; the type number with no style, integer, currency, percent or a DecimalFormat pattern, and the type choice with a ChoiceFormat pattern, a chosen text holding a brace written as a pattern of the same arguments (what is not there)
NumberFormat, NumberFormat.Field getInstance, getNumberInstance, getIntegerInstance, getCurrencyInstance, getPercentInstance with or without a Locale: a DecimalFormat of the locale's pattern; getAvailableLocales; format of a long, a double or any Number, or into a StringBuffer at a FieldPosition; parse of a text or from a ParsePosition, parseObject; isParseIntegerOnly, isGroupingUsed, the four digit counts and their setters; INTEGER_FIELD, FRACTION_FIELD and the thirteen fields; a class of the program extends NumberFormat
DecimalFormat new DecimalFormat of nothing, a pattern, or a pattern and DecimalFormatSymbols; applyPattern, applyLocalizedPattern, toPattern, toLocalizedPattern: a prefix, the digits (0, #, grouping, a point, an exponent E0), a suffix, %, ‰, ¤ and ¤¤, quotes, a negative part after ;; format of a double, a long, a BigDecimal, a BigInteger or any other Number, rounded in its RoundingMode, and the fields of a FieldPosition (by number or attribute); parse (leniently: grouping, a point, an exponent, the prefixes and suffixes, infinity and NaN; a Long, a Double or, with setParseBigDecimal, a BigDecimal); getRoundingMode, setRoundingMode, getMultiplier, setMultiplier, getGroupingSize, setGroupingSize, setGroupingUsed, isDecimalSeparatorAlwaysShown, setDecimalSeparatorAlwaysShown, isParseBigDecimal, setParseBigDecimal, setParseIntegerOnly, isStrict, setStrict, the prefixes' and suffixes' getters and setters, getDecimalFormatSymbols, setDecimalFormatSymbols, the digit counts, equals, hashCode, clone, toString. The digits a double is written by are the shortest that read back as it (Deviations)
DecimalFormatSymbols new DecimalFormatSymbols and getInstance with or without a Locale, getAvailableLocales, getLocale; the zero digit, the grouping, decimal, monetary decimal and monetary grouping separators, per mille, percent, the digit, the pattern separator, infinity, NaN, the minus sign, the exponent separator, the currency symbol and the international currency symbol, each with its setter; equals, hashCode, clone
ChoiceFormat new ChoiceFormat of a pattern (limits and texts such as 0#none and 1<many, between vertical bars; ≤ for #, ∞) or of limits and texts; applyPattern, toPattern, setChoices, getLimits, getFormats; format, the text of the last limit the number is at or above; parse, the limit of the longest text found; nextDouble, previousDouble; equals, hashCode, clone, toString
Normalizer, Normalizer.Form Normalizer.normalize and isNormalized of a CharSequence and a form; the forms NFD, NFC, NFKD, NFKC
Format, FieldPosition, ParsePosition, ParseException format of a value, or into a StringBuffer at a FieldPosition; parseObject of a text, or from a ParsePosition; Format.Field; a class of the program extends Format. FieldPosition of a field's number or attribute, getBeginIndex, getEndIndex and their setters; ParsePosition's getIndex, getErrorIndex and their setters; equals, hashCode, toString; ParseException.getErrorOffset
Iterable, Iterator iterator, forEach, spliterator; hasNext, next, remove, forEachRemaining
Spliterator, Spliterators, RandomAccess tryAdvance, forEachRemaining, trySplit, estimateSize, getExactSizeIfKnown, characteristics, hasCharacteristics, getComparator and the eight characteristics; a collection's spliterator reports the characteristics and the estimate a JDK's reports; Spliterators.spliterator of a collection, an iterator and its size or an array, spliteratorUnknownSize, emptySpliterator, iterator, AbstractSpliterator; Spliterator.OfInt, OfLong and OfDouble, with the same of Spliterators over an int[], a long[], a double[] and a PrimitiveIterator (emptyIntSpliterator, AbstractIntSpliterator and those of the other two); RandomAccess, which ArrayList and the lists of List.of and Arrays.asList are
Collection size, isEmpty, contains, add, remove, containsAll, addAll, removeAll, retainAll, removeIf, clear, toArray of nothing, an array or a function making one, iterator, forEach, stream, parallelStream, equals, hashCode, toString
SequencedCollection, SequencedSet, SequencedMap a collection or a map with two ends: reversed, a view of it in the other order (a list's reads and changes the list by an index from the other end, a deque's calls the member of the other end); getFirst, getLast, removeFirst, removeLast, addFirst, addLast; firstEntry, lastEntry, pollFirstEntry, pollLastEntry (each a copy), putFirst, putLast, sequencedKeySet, sequencedValues, sequencedEntrySet. A list, a deque, a linked or sorted set and a linked or sorted map are one, and a class of the program implementing one has the defaults
List, ArrayList the members of Collection; get, set, add and addAll at an index, remove at an index, indexOf, lastIndexOf, subList, sort, replaceAll, getFirst, getLast, removeFirst, removeLast, addFirst, addLast, reversed, listIterator with or without an index (a ListIterator: hasNext, next, hasPrevious, previous, nextIndex, previousIndex, remove, set, add); List.of, List.copyOf; new ArrayList<>() of nothing, a capacity or a collection, ensureCapacity, trimToSize
Set, HashSet the members of Collection; Set.of, Set.copyOf; new HashSet<>() of nothing, a capacity, a capacity and a load factor, or a collection, HashSet.newHashSet of a number of elements
Map, HashMap, Map.Entry size, isEmpty, containsKey, containsValue, get, getOrDefault, put, putIfAbsent, putAll, remove of a key or of a key and its value, replace of a value or of an old value, clear, keySet, values, entrySet, forEach, replaceAll, computeIfAbsent, computeIfPresent, compute, merge, equals, hashCode, toString; Map.of up to ten pairs, Map.entry, Map.ofEntries, Map.copyOf; new HashMap<>() of nothing, a capacity or a map, HashMap.newHashMap of a number of mappings; getKey, getValue, setValue, Map.Entry.comparingByKey and comparingByValue with or without a comparator; AbstractMap.SimpleEntry and SimpleImmutableEntry of a key and a value or of an entry
LinkedHashMap, LinkedHashSet the members of HashMap and HashSet, walked in the order the keys were added; new LinkedHashMap<>(capacity, loadFactor, true), walked in the order they were last reached, and removeEldestEntry, asked after each key added; new LinkedHashSet<>() of nothing, a capacity or a collection; the members of SequencedMap and SequencedSet, where putFirst, putLast, addFirst and addLast move a key the map or set holds to that end; LinkedHashMap.newLinkedHashMap, LinkedHashSet.newLinkedHashSet
SortedMap, NavigableMap, TreeMap the members of Map, the keys in the order of a comparator or of their compareTo; comparator, firstKey, lastKey, firstEntry, lastEntry, pollFirstEntry, pollLastEntry, lowerEntry, lowerKey, floorEntry, floorKey, ceilingEntry, ceilingKey, higherEntry, higherKey, navigableKeySet, descendingKeySet, descendingMap, reversed, putFirst, putLast; subMap, headMap and tailMap with or without the inclusive flags, each a view of the map; new TreeMap<>() of nothing, a comparator, a map or a sorted map
SortedSet, NavigableSet, TreeSet the members of Set over the keys of a TreeMap; comparator, first, last, lower, floor, ceiling, higher, pollFirst, pollLast, getFirst, getLast, removeFirst, removeLast, addFirst, addLast, descendingSet, descendingIterator, reversed; subSet, headSet and tailSet with or without the inclusive flags; new TreeSet<>() of nothing, a comparator, a collection or a sorted set
EnumSet, EnumMap the members of Set and of Map over the constants of one enum, in their order; EnumSet.noneOf, allOf, of one constant or more, range, complementOf, copyOf of a collection or of an enum set; new EnumMap<>() of the enum's class, an enum map or a map
Queue, Deque, ArrayDeque the members of Collection; offer, poll, peek, element, remove; addFirst, addLast, offerFirst, offerLast, removeFirst, removeLast, pollFirst, pollLast, getFirst, getLast, peekFirst, peekLast, push, pop, removeFirstOccurrence, removeLastOccurrence, descendingIterator, reversed
AbstractQueue, PriorityQueue the members of Queue; a priority queue of an initial capacity, a comparator or both, or of a collection, a sorted set or another priority queue, and comparator
LinkedList the members of List and Deque, reversed a LinkedList; null elements; of nothing or a collection
AbstractCollection, AbstractList, AbstractSequentialList, AbstractSet, AbstractMap what a class of the program extends to be a collection
Vector, Stack, Enumeration the members of ArrayList; addElement, elementAt, firstElement, lastElement, setElementAt, insertElementAt, removeElementAt, removeElement, removeAllElements, elements; push, pop, peek, empty, search; hasMoreElements, nextElement, asIterator
Hashtable the members of Map; keys, elements, contains; no null key or value
IdentityHashMap the members of Map, a key and a value told apart by ==; of nothing, an expected size or a map
WeakHashMap the members of Map; of nothing, a capacity, a capacity and a load factor, or a map; newWeakHashMap. No key is dropped by the collector (Deviations)
EventObject, EventListener new EventObject(source), getSource, toString, the field source; an interface extending EventListener
Properties the members of Hashtable; of nothing, a capacity or defaults; getProperty with or without a default, setProperty, load of a Reader or of an InputStream in ISO 8859-1, store to a Writer or an OutputStream with comments, list to a PrintStream or a PrintWriter, propertyNames, stringPropertyNames
ResourceBundle, PropertyResourceBundle, ListResourceBundle ResourceBundle.getBundle of a base name, with a Locale and with a ClassLoader (Resources), clearCache with or without a loader; getString, getStringArray, getObject, getKeys, keySet, containsKey, getLocale, getBaseBundleName, handleGetObject, handleKeySet, setParent; new PropertyResourceBundle of an InputStream or a Reader; a class of the program extending ListResourceBundle with its getContents
ServiceLoader, ServiceLoader.Provider load of a Class with or without a ClassLoader, loadInstalled (Resources); iterator, stream, findFirst, reload, toString; type, get
Arrays asList, toString, fill, equals, copyOf, copyOfRange, sort of a whole array or a range, with or without a comparator, binarySearch; over arrays of int, long, double, char, boolean and of objects; toString, fill, equals, copyOf and copyOfRange of a byte[]; toString and equals of a short[] and a float[]; hashCode of every array; setAll of an int[], a long[], a double[] and an array of objects; deepToString, deepEquals, deepHashCode; stream of an array of objects, an int[], a long[] or a double[], or of a range of one; spliterator of an array of objects, an int[], a long[] or a double[], or of a range of one
Collections sort, binarySearch with or without a comparator, reverse, shuffle, swap, max, min, frequency, addAll, fill, nCopies, emptyList, emptySet, emptyMap, emptyIterator, emptyListIterator, emptyEnumeration, singletonList, singleton, singletonMap, unmodifiableList, unmodifiableSet, unmodifiableCollection, unmodifiableMap, synchronizedList, synchronizedSet, synchronizedCollection, synchronizedMap; unmodifiable, synchronized and empty of SortedSet, NavigableSet, SortedMap and NavigableMap; unmodifiableSequencedCollection, unmodifiableSequencedSet, unmodifiableSequencedMap, newSetFromMap, newSequencedSetFromMap; reverseOrder, rotate, replaceAll, indexOfSubList, lastIndexOfSubList, list of an Enumeration, enumeration of a collection
Objects equals, deepEquals, hashCode, hash, toString, isNull, nonNull, requireNonNull with or without a message or a supplier of one, requireNonNullElse, requireNonNullElseGet, compare, checkIndex, checkFromIndexSize, checkFromToIndex
Optional empty, of, ofNullable, isPresent, isEmpty, get, orElse, orElseGet, orElseThrow, ifPresent, ifPresentOrElse, filter, map, flatMap, or, stream, equals, hashCode, toString
OptionalInt, OptionalLong, OptionalDouble empty, of, isPresent, isEmpty, getAsInt / getAsLong / getAsDouble, orElse, orElseGet, orElseThrow, ifPresent, ifPresentOrElse, stream, equals, hashCode, toString
Stream Stream.of, ofNullable, empty, iterate with or without a test, generate, concat, builder; filter, map, mapToInt, mapToLong, mapToDouble, flatMap, flatMapToInt, flatMapToLong, flatMapToDouble, mapMulti, mapMultiToInt, mapMultiToLong, mapMultiToDouble, gather, distinct, sorted with or without a comparator, peek, limit, skip, takeWhile, dropWhile; forEach, forEachOrdered, toArray of nothing or a function making the array, reduce in its three forms, collect of a Collector or of three functions, toList, min, max, count, anyMatch, allMatch, noneMatch, findFirst, findAny, iterator, spliterator; parallel, sequential, isParallel, unordered, onClose, close
IntStream, LongStream, DoubleStream of, empty, iterate, generate, concat, builder, and of the first two range and rangeClosed; the members of Stream over numbers, with mapToObj, boxed, asLongStream, asDoubleStream, sum, average, min, max, summaryStatistics, toArray, mapMulti, an iterator that is a PrimitiveIterator.OfInt, OfLong or OfDouble and a spliterator that is a Spliterator.OfInt, OfLong or OfDouble
Collectors toList, toSet, toCollection, toUnmodifiableList, toUnmodifiableSet, toMap and toUnmodifiableMap of two functions, with a merge function, and toMap with a map's supplier too; joining of nothing, a delimiter, or one with a prefix and a suffix; groupingBy of a classifier, with a collector, and with a map's supplier too; groupingByConcurrent in the same three forms and toConcurrentMap in the three of toMap, over a ConcurrentHashMap; partitioningBy with or without a collector; counting, summingInt / Long / Double, averagingInt / Long / Double, summarizingInt / Long / Double, minBy, maxBy, reducing in its three forms, mapping, filtering, flatMapping, collectingAndThen, teeing
Collector supplier, accumulator, combiner, finisher, characteristics; Collector.of with or without a finisher; Collector.Characteristics
Gatherer, Gatherers initializer, integrator, combiner, finisher, andThen; Gatherer.of and ofSequential in their forms, defaultInitializer, defaultCombiner, defaultFinisher; Gatherer.Integrator with of and ofGreedy, Gatherer.Downstream with push and isRejecting; a gatherer of the program's own class; Gatherers.fold, scan, windowFixed, windowSliding, mapConcurrent
StreamSupport stream, intStream, longStream and doubleStream of a spliterator, or of a supplier of one and its characteristics; the spliterator is asked for its elements when the stream is, and count() of one that says SIZED runs no stage
IntSummaryStatistics, LongSummaryStatistics, DoubleSummaryStatistics of nothing, or of a count, a minimum, a maximum and a sum; accept, combine, getCount, getSum, getMin, getMax, getAverage, toString
Random new Random(), new Random(long), setSeed, nextInt(), nextInt(int), nextLong, nextDouble, nextFloat, nextBoolean, nextGaussian, nextBytes; nextInt, nextLong, nextDouble and nextFloat of a bound or of two; ints, longs and doubles of nothing, a size, two bounds or a size and two bounds; a seed gives the specified sequence, and a number or a stream between two bounds the numbers a JDK draws
UUID new UUID(long, long), fromString, randomUUID, nameUUIDFromBytes; getMostSignificantBits, getLeastSignificantBits, version, variant, compareTo, equals, hashCode, toString. fromString takes the forms a JDK takes, such as 1-1-1-1-1; randomUUID is version 4, nameUUIDFromBytes version 3
Base64, Base64.Encoder, Base64.Decoder getEncoder, getUrlEncoder, getMimeEncoder of nothing or of a line length and a separator, getDecoder, getUrlDecoder, getMimeDecoder; encode of an array, into one or of a ByteBuffer, encodeToString, withoutPadding, wrap of an OutputStream; decode of an array, a String, a ByteBuffer or into an array, wrap of an InputStream. The alphabets of RFC 4648 and the lines of RFC 2045; what a decoder refuses, and the words, are a JDK's
StringJoiner of a delimiter, or of a delimiter, a prefix and a suffix; add, merge, setEmptyValue, length, toString
StringTokenizer of a text, with or without delimiters, and with or without the delimiters as tokens; hasMoreTokens, nextToken with or without new delimiters, countTokens, hasMoreElements, nextElement; an Enumeration
BitSet of nothing or a number of bits, valueOf of a long[], a byte[], a LongBuffer or a ByteBuffer; set, clear, flip and get of a bit or a range, set of a value, clear(), nextSetBit, nextClearBit, previousSetBit, previousClearBit, length, size, isEmpty, cardinality, intersects, and, or, xor, andNot, toLongArray, toByteArray, stream, clone, equals, hashCode, toString
Formatter, Formattable, FormattableFlags new Formatter of nothing, an Appendable, a Locale, an Appendable and a Locale, a PrintStream, or an OutputStream or a file (a File or its name) with or without a charset (of its name with or without a Locale, a Charset with one); format with or without a Locale, out, locale, toString, flush, close, ioException; formatTo, which %s and %S of a Formattable call with the flags LEFT_JUSTIFY, UPPERCASE and ALTERNATE
Scanner of a String, a Readable, or an InputStream, a File or a Path with or without a charset; hasNext and next of a token or of a pattern, hasNextLine, nextLine, hasNextBoolean, nextBoolean, and of each number: Byte, Short, Int, Long and BigInteger with or without a radix, Float, Double and BigDecimal; findInLine, findWithinHorizon, skip, tokens, findAll, match, useDelimiter, delimiter, useRadix, radix, useLocale, locale, reset, ioException, close, toString. A number is read by the grammar the class documents, in the separators English writes (in a locale that writes others, refused). A file's bytes that are no text in its charset end its input, which ioException tells; a path's are U+FFFD
BigInteger ZERO, ONE, TWO, TEN, valueOf; new BigInteger of a text with or without a radix, of the bytes of a two's complement or a range of them, of a sign and a magnitude, of a number of random bits from a Random, of a bit length, a certainty and a Random (a prime); probablePrime; add, subtract, multiply, divide, remainder, mod, divideAndRemainder, pow, gcd, abs, negate, signum, sqrt, sqrtAndRemainder, modPow, modInverse, isProbablePrime, nextProbablePrime; shiftLeft, shiftRight, and, or, xor, not, andNot, testBit, setBit, clearBit, flipBit, getLowestSetBit, bitLength, bitCount; compareTo, equals, hashCode, min, max; toString with or without a radix, toByteArray; intValue, longValue, floatValue, doubleValue, intValueExact, longValueExact, shortValueExact, byteValueExact
BigDecimal ZERO, ONE, TWO, TEN; valueOf of a long, of an unscaled long and a scale, of a double; new BigDecimal of a text, a char[] or a range of one, an int, a long, a double, a BigInteger with or without a scale, each with or without a MathContext; add, subtract, multiply, divide, divideToIntegralValue, remainder, divideAndRemainder and pow, each with or without a MathContext; divide at a scale or with a RoundingMode; sqrt, abs, negate, plus, round; signum, scale, precision, unscaledValue, setScale, movePointLeft, movePointRight, scaleByPowerOfTen, stripTrailingZeros, ulp; compareTo, equals, hashCode, min, max; toString, toEngineeringString, toPlainString; toBigInteger, toBigIntegerExact, intValue, longValue, floatValue, doubleValue, intValueExact, longValueExact, shortValueExact, byteValueExact; the older ROUND_UP .. ROUND_UNNECESSARY and the members taking one
MathContext, RoundingMode new MathContext of a precision with or without a RoundingMode, or of the text toString writes; UNLIMITED, DECIMAL32, DECIMAL64, DECIMAL128; getPrecision, getRoundingMode, equals, hashCode, toString; the eight modes and RoundingMode.valueOf(int)
Comparator compare, reversed, thenComparing of a comparator, of a key or of a key and its comparator, thenComparingInt, thenComparingLong, thenComparingDouble, Comparator.naturalOrder, reverseOrder, comparing with or without a comparator of the key, comparingInt, comparingLong, comparingDouble, nullsFirst, nullsLast
Exceptions Throwable, Exception, Error, RuntimeException, IllegalArgumentException, IllegalStateException, ArithmeticException, NullPointerException, ClassCastException, IndexOutOfBoundsException, ArrayIndexOutOfBoundsException, StringIndexOutOfBoundsException, NegativeArraySizeException, UnsupportedOperationException, NumberFormatException, CloneNotSupportedException, InterruptedException, IllegalMonitorStateException, IllegalThreadStateException, NoSuchElementException, InputMismatchException, ConcurrentModificationException, EmptyStackException, MatchException, ArrayStoreException, SecurityException, AssertionError, VirtualMachineError, StackOverflowError, OutOfMemoryError, LinkageError, NoClassDefFoundError, IncompatibleClassChangeError, NoSuchMethodError, NoSuchFieldError, ThreadDeath, ExceptionInInitializerError with getException, IOException, EOFException, FileNotFoundException, UTFDataFormatException, UnsupportedEncodingException, CharConversionException, UncheckedIOException, UnsupportedCharsetException, IllegalCharsetNameException, InstantiationException, NoSuchMethodException, IllegalAccessException, ServiceConfigurationError, MalformedURLException, MissingResourceException with getClassName and getKey, FileSystemException with getFile, getOtherFile and getReason, NoSuchFileException, FileAlreadyExistsException, DirectoryNotEmptyException, AccessDeniedException, NotDirectoryException, NotLinkException, FileSystemLoopException, FileSystemNotFoundException, DirectoryIteratorException, InvalidPathException with getInput, getReason and getIndex, CharacterCodingException, MalformedInputException and UnmappableCharacterException with getInputLength, BufferOverflowException, BufferUnderflowException, InvalidMarkException, ReadOnlyBufferException: the constructors of the API -- of no argument, of a message, of a message and a cause, of a cause, of an index --, getMessage, getLocalizedMessage, getCause, initCause, addSuppressed, getSuppressed, printStackTrace() and of a PrintStream or a PrintWriter, getStackTrace, setStackTrace, fillInStackTrace, toString; StackTraceElement with its constructor of four arguments, getClassName, getMethodName, getFileName, getLineNumber, isNativeMethod. IllegalFormatException and its subclasses a format raises: UnknownFormatConversionException and MissingFormatArgumentException with no constructor, IllegalFormatConversionException of a conversion and a class, FormatFlagsConversionMismatchException, IllegalFormatFlagsException, IllegalFormatPrecisionException and MissingFormatWidthException with the constructors and getters of the API, and FormatterClosedException. Of java.util.concurrent: ExecutionException, TimeoutException, CancellationException, RejectedExecutionException, CompletionException, BrokenBarrierException
Runnable, Comparable, AutoCloseable, Closeable, Flushable run; compareTo, which a String, a StringBuilder, a StringBuffer, a box and an enum constant have too; close; flush
Thread the constructors of nothing, a Runnable, a name or both; a class extending it; start, run, join(), join(long), join(Duration), interrupt, isInterrupted, isAlive, getName, setName, isDaemon, setDaemon, getPriority, setPriority, isVirtual, threadId, getId, getContextClassLoader, setContextClassLoader (a thread made takes its maker's), toString; Thread.currentThread, sleep(long), sleep(long, int), sleep(Duration), yield, onSpinWait, interrupted, holdsLock, startVirtualThread; Thread.ofPlatform() and ofVirtual() with name, daemon, priority, start, unstarted, factory; getState and Thread.State; setUncaughtExceptionHandler, getUncaughtExceptionHandler, Thread.setDefaultUncaughtExceptionHandler, getDefaultUncaughtExceptionHandler
ThreadLocal, InheritableThreadLocal new ThreadLocal<>(), withInitial, get, set, remove, initialValue; childValue
java.lang.ref.Reference, WeakReference, SoftReference, PhantomReference, ReferenceQueue get, refersTo, clear, enqueue, isEnqueued, reachabilityFence; a class extending WeakReference, SoftReference or PhantomReference; poll, remove(), remove(long). No reference is cleared by the collector (Deviations)
java.lang.ref.Cleaner, Cleaner.Cleanable create(), create(ThreadFactory), register, clean
AtomicInteger, AtomicLong get, set, lazySet, getAndSet, compareAndSet, getAndAdd, addAndGet, getAndIncrement, getAndDecrement, incrementAndGet, decrementAndGet, getAndUpdate, updateAndGet, getAndAccumulate, accumulateAndGet, toString; each is a Number
AtomicBoolean, AtomicReference get, set, lazySet, getAndSet, compareAndSet, toString; of a reference also getAndUpdate, updateAndGet, getAndAccumulate, accumulateAndGet
AtomicMarkableReference, AtomicStampedReference getReference, isMarked / getStamp, get of a holder, compareAndSet, weakCompareAndSet, set, attemptMark / attemptStamp
AtomicIntegerArray, AtomicLongArray, AtomicReferenceArray, LongAdder of a length or an array; the members of the atomic of one value, each with an index, length, toString; add, increment, decrement, sum, reset, sumThenReset, toString; a LongAdder is a Number
LongAccumulator, DoubleAdder, DoubleAccumulator of a function and its identity; accumulate, get, reset, getThenReset; add, sum, reset, sumThenReset; toString; each is a Number
AtomicIntegerFieldUpdater, AtomicLongFieldUpdater, AtomicReferenceFieldUpdater newUpdater of class literals (with or without casts around them) and a constant field name, called by its class's name or through a static import; get, set, lazySet, getAndSet, compareAndSet, weakCompareAndSet, getAndUpdate, updateAndGet, getAndAccumulate, accumulateAndGet; of an int and a long also getAndAdd, addAndGet, getAndIncrement, getAndDecrement, incrementAndGet, decrementAndGet
TimeUnit the seven units; convert, toNanos, toMicros, toMillis, toSeconds, toMinutes, toHours, toDays, sleep, timedJoin, timedWait
Lock, ReentrantLock, Condition lock, lockInterruptibly, tryLock with or without a limit, unlock, newCondition, isLocked, isHeldByCurrentThread, getHoldCount, isFair, hasQueuedThreads, getQueueLength, toString; await with or without a limit, awaitNanos, awaitUninterruptibly, signal, signalAll
ReadWriteLock, ReentrantReadWriteLock readLock and writeLock, each a Lock, the write lock with conditions; getReadLockCount, getReadHoldCount, getWriteHoldCount, isWriteLocked, isWriteLockedByCurrentThread, isFair, hasQueuedThreads, getQueueLength, toString
StampedLock writeLock, readLock, each also Interruptibly and as try.. with or without a limit; tryOptimisticRead, validate; unlockWrite, unlockRead, unlock, tryUnlockWrite, tryUnlockRead; tryConvertToWriteLock, tryConvertToReadLock, tryConvertToOptimisticRead; isWriteLocked, isReadLocked, getReadLockCount, isLockStamp, isWriteLockStamp, isReadLockStamp, isOptimisticReadStamp; asReadLock, asWriteLock, asReadWriteLock; toString. A stamp is the number a JDK 25 gives
CountDownLatch, Semaphore await with or without a limit, countDown, getCount; acquire, acquireUninterruptibly, tryAcquire with or without a limit, release, each of one permit or several, availablePermits, drainPermits, isFair; toString of both
CyclicBarrier, Exchanger of a number of threads, with or without an action; await with or without a limit, reset, isBroken, getParties, getNumberWaiting; exchange with or without a limit
Phaser of nothing, a number of parties, a parent or both; register, bulkRegister, arrive, arriveAndDeregister, arriveAndAwaitAdvance, awaitAdvance, awaitAdvanceInterruptibly with or without a limit, forceTermination, getPhase, getRegisteredParties, getArrivedParties, getUnarrivedParties, getParent, getRoot, isTerminated, toString; onAdvance to override
BlockingQueue, ArrayBlockingQueue, LinkedBlockingQueue, SynchronousQueue, ConcurrentLinkedQueue the members of Queue; of a blocking queue also put, take, offer and poll with a limit, remainingCapacity, drainTo; a SynchronousQueue holds nothing and hands an element from the thread putting it to the one taking it
PriorityBlockingQueue, DelayQueue the members of a blocking queue, the elements in the order of a PriorityQueue; of nothing, a capacity, a capacity and a comparator, or a collection; comparator; a put never waits. A DelayQueue's head is taken once its delay is over, and take waits for it; peek and element answer the head whether it is due or not. An iterator walks the elements there were when it was made
TransferQueue, LinkedTransferQueue the members of a blocking queue; transfer, tryTransfer with or without a limit, hasWaitingConsumer, getWaitingConsumerCount
BlockingDeque, LinkedBlockingDeque, ConcurrentLinkedDeque the members of Deque; of a blocking deque also those of a blocking queue, and at either end putFirst, putLast, takeFirst, takeLast, offerFirst, offerLast, pollFirst and pollLast with a limit
ConcurrentMap, ConcurrentHashMap the members of Map; remove of a key and its value, replace of an old value, mappingCount, contains, keys, elements, keySet of a value, ConcurrentHashMap.newKeySet; of nothing, a capacity or a map; no null key or value
ConcurrentNavigableMap, ConcurrentSkipListMap, ConcurrentSkipListSet the members of NavigableMap and ConcurrentMap, or of NavigableSet; of nothing, a comparator, a map, a sorted map, a collection or a sorted set; no null key or value; an iterator gives the keys from where it stands and never refuses a change
CopyOnWriteArrayList, CopyOnWriteArraySet the members of List, or of Set; addIfAbsent, addAllAbsent; an iterator walks the list there was when it was made and changes nothing
Executor, ExecutorService, Executors execute, submit of a Callable or a Runnable, invokeAll and invokeAny with or without a limit, shutdown, shutdownNow, isShutdown, isTerminated, awaitTermination, close; newFixedThreadPool, newSingleThreadExecutor, newCachedThreadPool, newScheduledThreadPool, newSingleThreadScheduledExecutor, each with or without a ThreadFactory, newVirtualThreadPerTaskExecutor, newThreadPerTaskExecutor, unconfigurableExecutorService, unconfigurableScheduledExecutorService, defaultThreadFactory, callable
ThreadPoolExecutor, RejectedExecutionHandler of a core size, a most size, a time and a queue, with or without a ThreadFactory, a handler or both; AbortPolicy, CallerRunsPolicy, DiscardPolicy, DiscardOldestPolicy; getPoolSize, getCorePoolSize, getMaximumPoolSize, getLargestPoolSize, getActiveCount, getTaskCount, getCompletedTaskCount, getKeepAliveTime, getQueue, getThreadFactory, getRejectedExecutionHandler, setRejectedExecutionHandler, setCorePoolSize, setMaximumPoolSize, setKeepAliveTime, setThreadFactory, allowCoreThreadTimeOut, allowsCoreThreadTimeOut, prestartCoreThread, prestartAllCoreThreads, remove, purge, isTerminating, toString; beforeExecute, afterExecute and terminated to override
ScheduledExecutorService, ScheduledThreadPoolExecutor, ScheduledFuture, Delayed schedule of a Runnable or a Callable, scheduleAtFixedRate, scheduleWithFixedDelay; of a core size, with or without a ThreadFactory; setRemoveOnCancelPolicy, setExecuteExistingDelayedTasksAfterShutdownPolicy, setContinueExistingPeriodicTasksAfterShutdownPolicy and what reads them; getDelay, compareTo
ForkJoinPool, ForkJoinTask, RecursiveTask, RecursiveAction, CountedCompleter new ForkJoinPool(), of a parallelism, ForkJoinPool.commonPool, ForkJoinPool.managedBlock of a ForkJoinPool.ManagedBlocker (the blocker's own wait: a pool makes no room for it); invoke, execute, submit, getParallelism, getCommonPoolParallelism, getPoolSize and the members of ExecutorService; fork, join, invoke, invokeAll, get with or without a limit, cancel, isDone, isCancelled, isCompletedNormally, isCompletedAbnormally, getException, complete, completeExceptionally, quietlyComplete, quietlyJoin, quietlyInvoke, getRawResult, ForkJoinTask.adapt, inForkJoinPool, getPool; compute; of a CountedCompleter also tryComplete, propagateCompletion, onCompletion, onExceptionalCompletion, getCompleter, getRoot, getPendingCount, setPendingCount, addToPendingCount, compareAndSetPendingCount, decrementPendingCountUnlessZero, firstComplete, nextComplete, quietlyCompleteRoot, helpComplete
Timer, TimerTask of nothing, a name, a daemon flag or both; schedule and scheduleAtFixedRate of a delay or of a Date, with or without a period, cancel, purge; run, cancel, scheduledExecutionTime
Callable, Future, FutureTask, ThreadFactory call; get with or without a limit, isDone, cancel, isCancelled, state, resultNow, exceptionNow; run, toString; newThread
CompletableFuture, CompletionStage supplyAsync and runAsync with or without an executor, completedFuture, failedFuture, completedStage, failedStage, allOf, anyOf; thenApply, thenAccept, thenRun, thenCompose, handle, whenComplete, thenCombine, thenAcceptBoth, runAfterBoth, applyToEither, acceptEither, runAfterEither, exceptionally, exceptionallyCompose, each also Async with or without an executor; complete, completeExceptionally, completeAsync, obtrudeValue, obtrudeException, cancel, orTimeout, completeOnTimeout, delayedExecutor, copy, minimalCompletionStage, newIncompleteFuture, defaultExecutor, join, get with or without a limit, getNow, isDone, isCancelled, isCompletedExceptionally, getNumberOfDependents, state, resultNow, exceptionNow, toString
java.util.function Function, BiFunction, UnaryOperator, BinaryOperator, Supplier, Consumer, BiConsumer, Predicate, BiPredicate, BooleanSupplier; for Int, Long and Double: IntFunction, IntPredicate, IntUnaryOperator, IntBinaryOperator, IntSupplier, IntConsumer, ToIntFunction, ToIntBiFunction, ObjIntConsumer; from one of the three to another, IntToLongFunction, IntToDoubleFunction, LongToIntFunction, LongToDoubleFunction, DoubleToIntFunction, DoubleToLongFunction; each with its abstract method and its andThen, compose, and, or, negate, identity, not, isEqual
Duration ZERO; ofDays, ofHours, ofMinutes, ofSeconds with or without nanoseconds, ofMillis, ofNanos, parse; getSeconds, getNano, isZero, isNegative, isPositive; of a count of a unit, between, from; plus and minus of a Duration or a count of a unit, plusDays .. plusNanos, minusDays .. minusNanos, multipliedBy, negated, abs, withSeconds, withNanos, truncatedTo; get, getUnits, addTo, subtractFrom; toDays, toHours, toMinutes, toSeconds, toMillis, toNanos, toDaysPart .. toNanosPart; compareTo, equals, hashCode, toString; DateTimeException, DateTimeParseException
LocalDate MIN, MAX, EPOCH; now with or without a zone or a Clock, of, ofYearDay, ofEpochDay, ofInstant, parse of a text alone or with a formatter, from; getYear, getMonth, getMonthValue, getDayOfMonth, getDayOfYear, getDayOfWeek, isLeapYear, lengthOfMonth, lengthOfYear; withYear .. withDayOfYear, plusYears .. plusDays, minusYears .. minusDays; until of a date as a Period; datesUntil with or without a Period step; atTime of a time or an OffsetTime, atStartOfDay with or without a zone, toEpochDay, toEpochSecond; getChronology, getEra; isAfter, isBefore, isEqual, compareTo, equals, hashCode, format, query, toString
LocalTime MIN, MAX, MIDNIGHT, NOON; now, of, ofSecondOfDay, ofNanoOfDay, ofInstant, parse of a text alone or with a formatter, from; getHour .. getNano; withHour .. withNano, plusHours .. plusNanos, minusHours .. minusNanos, truncatedTo; atDate, atOffset, toSecondOfDay, toNanoOfDay, toEpochSecond; isAfter, isBefore, compareTo, equals, hashCode, format, query, toString
LocalDateTime MIN, MAX; now, of a date and a time or their numbers, ofInstant, ofEpochSecond, parse of a text alone or with a formatter, from; toLocalDate, toLocalTime and the getters of both; withYear .. withNano, plusYears .. plusNanos, minusYears .. minusNanos, truncatedTo; atOffset, atZone, toEpochSecond, toInstant; isAfter, isBefore, isEqual, compareTo, equals, hashCode, format, query, toString
OffsetDateTime MIN, MAX; now, of, ofInstant, parse of a text alone or with a formatter, from; getOffset, withOffsetSameLocal, withOffsetSameInstant, toLocalDateTime, toLocalDate, toLocalTime and the getters, with.., plus.., minus.. and truncatedTo of a LocalDateTime; toInstant, toEpochSecond, toZonedDateTime, toOffsetTime, atZoneSameInstant, atZoneSimilarLocal; isAfter, isBefore, isEqual, compareTo, timeLineOrder, equals, hashCode, format, query, toString
OffsetTime MIN, MAX; now, of a time and an offset or their numbers, ofInstant, parse of a text alone or with a formatter, from; getOffset, withOffsetSameLocal, withOffsetSameInstant, toLocalTime and the getters, with.., plus.., minus.. and truncatedTo of a LocalTime; atDate, toEpochSecond; isAfter, isBefore, isEqual, compareTo, equals, hashCode, format, query, toString
MonthDay now, of, parse of a text alone or with a formatter, from; getMonth, getMonthValue, getDayOfMonth, isValidYear, withMonth, with a Month, withDayOfMonth, atYear; isAfter, isBefore, compareTo, equals, hashCode, format, query, adjustInto, toString
ZonedDateTime now, of, ofLocal, ofInstant, ofStrict, parse of a text alone or with a formatter, from; getOffset, getZone, withZoneSameLocal, withZoneSameInstant, withFixedOffsetZone, withEarlierOffsetAtOverlap, withLaterOffsetAtOverlap, toLocalDateTime, toLocalDate, toLocalTime and the getters, with.., plus.., minus.. and truncatedTo of a LocalDateTime; toOffsetDateTime, toInstant, toEpochSecond; isAfter, isBefore, isEqual, compareTo, equals, hashCode, format, query, toString
Instant EPOCH, MIN, MAX; now with or without a Clock, ofEpochSecond with or without nanoseconds, ofEpochMilli, parse, from; getEpochSecond, getNano, toEpochMilli; plusSeconds, plusMillis, plusNanos, minusSeconds, minusMillis, minusNanos, truncatedTo; atOffset, atZone; isAfter, isBefore, compareTo, equals, hashCode, query, toString
Year, YearMonth now, of, parse of a text alone or with a formatter, from; Year.isLeap, getValue, isLeap, length, plusYears, minusYears, atDay, atMonth, isValidMonthDay, atMonthDay; getYear, getMonth, getMonthValue, isLeapYear, isValidDay, lengthOfMonth, lengthOfYear, withYear, withMonth, plusYears, plusMonths, minusYears, minusMonths, atDay, atEndOfMonth; isAfter, isBefore, compareTo, equals, hashCode, format, query, toString
Period the ChronoPeriod of the ISO calendar. ZERO; of, ofYears, ofMonths, ofWeeks, ofDays, between, parse, from; getYears, getMonths, getDays, isZero, isNegative, toTotalMonths; withYears .. withDays, plus and minus of an amount, plusYears .. plusDays, minusYears .. minusDays, multipliedBy, negated, normalized; get, getUnits, addTo, subtractFrom; equals, hashCode, toString
java.time.temporal Temporal, TemporalAccessor, TemporalAdjuster, TemporalAmount, TemporalField, TemporalUnit, TemporalQuery, TemporalQueries (zoneId, zone, offset, localDate, localTime, precision, chronology), ChronoField, ChronoUnit, ValueRange, UnsupportedTemporalTypeException; TemporalAdjusters (every adjuster); IsoFields (the quarters and the week-based years, their fields and units), JulianFields, WeekFields (of a Locale or a first day and a count, ISO, SUNDAY_START and their five fields); a field's getDisplayName and resolve. Each date and time class above: isSupported of a field or a unit, get, getLong, range, with of a field or an adjuster, plus and minus of an amount or a count of a unit, until in a unit, adjustInto, query. A program may write its own field, unit, adjuster, amount, query and date, which from reads through its fields
java.time.chrono ChronoLocalDate, ChronoLocalDateTime, ChronoZonedDateTime: what LocalDate, LocalDateTime and ZonedDateTime are, with their conversions, their order, from, timeLineOrder and getChronology, and the defaults a date of the program's own inherits; ChronoPeriod; Chronology (of, from, ofLocale, getAvailableChronologies), AbstractChronology, which a calendar of the program's own extends, with its date-times, zoned date-times and periods (localDateTime, zonedDateTime, period; within limits), and the ISO calendar IsoChronology (INSTANCE; its dates by year, era, day of the year and epoch day, dateNow, localDateTime, zonedDateTime, isLeapYear, prolepticYear, eraOf, eras, range, period, epochSecond, resolveDate of a map of fields and a ResolverStyle, getId, getCalendarType, getDisplayName); Era, IsoEra (BCE, CE, of, getValue, getDisplayName)
DateTimeFormatter ofPattern with or without a Locale, every letter of a pattern (a zone's name in words and a day's period in the words a JDK writes); ofLocalizedDate, ofLocalizedTime, ofLocalizedDateTime of one FormatStyle or two, ofLocalizedPattern of a requested template; ISO_LOCAL_DATE, ISO_OFFSET_DATE, ISO_DATE, ISO_LOCAL_TIME, ISO_OFFSET_TIME, ISO_TIME, ISO_LOCAL_DATE_TIME, ISO_OFFSET_DATE_TIME, ISO_ZONED_DATE_TIME, ISO_DATE_TIME, ISO_ORDINAL_DATE, ISO_WEEK_DATE, ISO_INSTANT, BASIC_ISO_DATE, RFC_1123_DATE_TIME; format, formatTo, parse of a text alone, with a query or from a ParsePosition, parseUnresolved, parseBest, toFormat with or without a query; withLocale, localizedBy, withDecimalStyle, withResolverStyle, withResolverFields of fields or a set of them, withZone, withChronology and their getters; parsedExcessDays, parsedLeapSecond, toString; DateTimeParseException, FormatStyle, DecimalStyle (STANDARD, of, ofDefaultLocale, getAvailableLocales, the zero digit, the two signs and the decimal separator with their with members, equals, hashCode, toString)
DateTimeFormatterBuilder appendPattern, appendValue of a width or of two and a SignStyle, appendValueReduced of a base or a base date, appendFraction, appendText of a style or a map of words, appendLiteral, appendOffset, appendOffsetId, appendLocalizedOffset, appendZoneId, appendZoneRegionId, appendZoneOrOffsetId, appendZoneText and appendGenericZoneText with or without preferred zones, appendDayPeriodText, appendChronologyId, appendChronologyText, appendLocalized and getLocalizedDateTimePattern of styles or of a requested template, appendInstant with or without a count of digits, append, appendOptional, optionalStart, optionalEnd, padNext, parseCaseSensitive, parseCaseInsensitive, parseStrict, parseLenient, parseDefaulting, toFormatter with or without a Locale; ResolverStyle, SignStyle, TextStyle
ZoneOffset, ZoneId, ZoneRules UTC, MIN, MAX; ZoneOffset.of, ofHours, ofHoursMinutes, ofHoursMinutesSeconds, ofTotalSeconds, from, getTotalSeconds, compareTo; ZoneId.of of a name or of a name and a map of aliases, SHORT_IDS, ofOffset, systemDefault, getAvailableZoneIds, from, getId, getRules, getDisplayName, normalized, equals, hashCode, toString; ZoneRules.of an offset or the changes of a zone, isFixedOffset, getOffset and getValidOffsets of an instant or a local date-time, isValidOffset, getStandardOffset, getDaylightSavings, isDaylightSavings, getTransition, nextTransition, previousTransition, getTransitions, getTransitionRules; ZoneRulesProvider.getAvailableZoneIds, getRules, getVersions, refresh; ZoneRulesException. The zones a program has are the ones whose offset never changes and the regions it names
ZoneOffsetTransition, ZoneOffsetTransitionRule ZoneOffsetTransition.of, getInstant, toEpochSecond, getDateTimeBefore, getDateTimeAfter, getOffsetBefore, getOffsetAfter, getDuration, isGap, isOverlap, isValidOffset, compareTo, equals, hashCode, toString; ZoneOffsetTransitionRule.of, getMonth, getDayOfMonthIndicator, getDayOfWeek, getLocalTime, isMidnightEndOfDay, getTimeDefinition, getStandardOffset, getOffsetBefore, getOffsetAfter, createTransition, equals, hashCode, toString; TimeDefinition with createDateTime
Clock, InstantSource systemUTC, systemDefaultZone, system, fixed, offset, tick, tickSeconds, tickMinutes, tickMillis; instant, millis, getZone, withZone; a class extending it. InstantSource.system, fixed, offset, tick, instant, millis, withZone; a source of the program's own, a lambda too
DayOfWeek, Month the constants; of, from, getValue, getDisplayName, plus, minus; Month.length, minLength, maxLength, firstDayOfYear, firstMonthOfQuarter
java.util.Date new Date(), new Date(long), Date.from; getTime, setTime, before, after, compareTo, equals, hashCode, toInstant, toString
java.sql interfaces Wrapper, Driver, DriverAction, Connection, Statement, PreparedStatement, CallableStatement, ResultSet, ResultSetMetaData, DatabaseMetaData, ParameterMetaData, Savepoint, Array, Blob, Clob, NClob, Ref, RowId, SQLXML, Struct, SQLType, ConnectionBuilder, ShardingKey, ShardingKeyBuilder, SQLData, SQLInput, SQLOutput: every member, each default member answering what a JDK's does (enquoteLiteral, enquoteIdentifier, isSimpleIdentifier and enquoteNCharLiteral of a Statement, the others a value or a refusal); a class of the program implements them, a driver of its own among them (JDBC)
DriverManager registerDriver with or without a DriverAction, deregisterDriver, getConnection of a url, with Properties or with a user and a password, getDriver, getDrivers, drivers, the drivers the program's META-INF/services/java.sql.Driver names, setLoginTimeout, getLoginTimeout, setLogWriter, getLogWriter, setLogStream, getLogStream, println; DriverPropertyInfo
SQLException getSQLState, getErrorCode, getNextException, setNextException, iterator over the chain and the causes; SQLWarning with getNextWarning and setNextWarning, BatchUpdateException with getUpdateCounts and getLargeUpdateCounts, DataTruncation with its getters, SQLClientInfoException with getFailedProperties, SQLNonTransientException, SQLTransientException, SQLRecoverableException, SQLDataException, SQLFeatureNotSupportedException, SQLIntegrityConstraintViolationException, SQLInvalidAuthorizationSpecException, SQLNonTransientConnectionException, SQLSyntaxErrorException, SQLTimeoutException, SQLTransactionRollbackException, SQLTransientConnectionException: every constructor, and what each writes to DriverManager's log writer
Types, JDBCType and the enums of java.sql the constants of Types; JDBCType with getName, getVendor, getVendorTypeNumber and valueOf of a number; ClientInfoStatus, RowIdLifetime, PseudoColumnUsage
javax.sql CommonDataSource, DataSource, ConnectionPoolDataSource, PooledConnection, PooledConnectionBuilder, XADataSource, XAConnection, XAConnectionBuilder, ConnectionEventListener, StatementEventListener, ConnectionEvent, StatementEvent; with javax.transaction.xa's XAResource, Xid, XAException and javax.xml.transform's Source and Result, which import module java.sql imports too
SQLPermission, java.security.Permission, BasicPermission, PermissionCollection, Guard a permission's getName, getActions, implies (of a BasicPermission: of its class only, a name * or ending in .* implying every longer name it starts), equals, hashCode, toString; newPermissionCollection with add, implies, elements, elementsAsStream, setReadOnly, isReadOnly, toString. checkGuard throws SecurityException, as a JDK 25's does: nothing is checked
SecurityManager, AccessController, PrivilegedAction, PrivilegedExceptionAction, PrivilegedActionException no security manager is installed, as a JDK since 24 installs none: doPrivileged of either action runs it, a checked exception of a PrivilegedExceptionAction wrapped in a PrivilegedActionException (getException, a toString naming it), an unchecked one thrown as it is; a SecurityManager of the program, whose getClassContext answers no class (no frame is kept)
javax.naming Referenceable; Reference with get of a type or a place, getAll, size, add, remove, clear, getClassName, getFactoryClassName, getFactoryClassLocation, clone, equals, hashCode, toString; RefAddr, StringRefAddr, BinaryRefAddr; NamingException with its root cause (its getCause, shown by its trace), resolved and remaining names, resolved object and toString(boolean), InvalidNameException; NameClassPair, Binding; the interfaces Name, Context, NameParser, NamingEnumeration and javax.naming.spi.ObjectFactory, for a program to implement: what a data source needs to be kept as a Reference and made back. import module java.naming imports both packages
Calendar, GregorianCalendar the constants (the fields, the days, the months, AM, PM, the styles; BC, AD); Calendar.getInstance() and new GregorianCalendar() in the default zone, new GregorianCalendar(TimeZone), the protected Calendar() of a calendar of the program's own; get, set of a field and of a date and a time, clear(), getTimeInMillis, setTimeInMillis, getTime, setTime, getTimeZone, setTimeZone, isLenient, getFirstDayOfWeek, setFirstDayOfWeek, getMinimalDaysInFirstWeek, setMinimalDaysInFirstWeek, add, roll of an amount or a direction, compareTo, before, after, equals, hashCode, clone. Lenient: a value past its range carries into the larger fields. The Julian calendar before 1582-10-15, the Gregorian from then on (what differs)
TimeZone, SimpleTimeZone TimeZone.getTimeZone of an id (a region of the tz database, a three-letter id with a JDK's warning, a custom GMT id; any other GMT) or of a ZoneId, getDefault (the host's zone), getID, setID, getRawOffset, setRawOffset, getOffset of an instant, useDaylightTime, inDaylightTime, getDSTSavings, observesDaylightTime, hasSameRules, equals, hashCode, clone, SHORT, LONG; a zone of the program's own. A region's offsets are java.time's from 1900, its raw offset before; from 2100 java.time's where they go on by yearly rules, else its raw offset. SimpleTimeZone of an offset and a schedule of daylight saving (the four constructors, setStartRule, setEndRule, setStartYear, WALL_TIME, STANDARD_TIME, UTC_TIME), with getOffset, inDaylightTime, equals, hasSameRules, hashCode, clone. A program holds the regions it names, and every region where it asks for the default zone (what differs)
java.util.logging Logger with getLogger, getGlobal, getAnonymousLogger, GLOBAL_LOGGER_NAME, global, log of a LogRecord, of a level and a message, a Supplier, a parameter, parameters or a Throwable, logp, entering, exiting, throwing, severe .. finest of a message or a Supplier, isLoggable, setLevel, getLevel, getName, getParent, setParent, addHandler, removeHandler, getHandlers, setUseParentHandlers, getUseParentHandlers, setFilter, getFilter, a class extending it; Level with its constants, parse, getName, getLocalizedName, intValue, equals by value, a level of the program; LogRecord with every member but its resource bundle's; Handler, StreamHandler, ConsoleHandler, Formatter with formatMessage, SimpleFormatter, ErrorManager, Filter; LogManager with getLogManager, getLogger, addLogger, getLoggerNames, getProperty, reset, readConfiguration(). import module java.logging. The root logger's handler is the host's log under --wasi-logging, and SLF4J runs through these classes (Logging). What differs
java.sql.Date, Time, Timestamp the package of the module java.sql. new of the milliseconds; valueOf of a text, of a LocalDate, a LocalTime or a LocalDateTime; toLocalDate, toLocalTime, toLocalDateTime, toString; Timestamp.from, toInstant, getNanos, setNanos, equals, compareTo, before and after of a Timestamp. A wall time is read and written in the host's zone, in the Julian calendar before 1582-10-15
URI, URISyntaxException new URI(String), URI.create; getScheme, getSchemeSpecificPart, getAuthority, getUserInfo, getHost, getPort, getPath, getQuery, getFragment and the getRaw.. of each; isAbsolute, isOpaque, resolve of a URI or a string, toURL, equals, hashCode, compareTo, toString; getInput, getReason, getIndex
URL new URL(String), of a protocol, a host, a port and a file, and of a protocol, a host and a file; getProtocol, getAuthority, getUserInfo, getHost, getPort, getDefaultPort, getPath, getQuery, getFile, getRef, openStream (Resources), openConnection, toURI, sameFile, equals, hashCode, toExternalForm, toString
URLConnection, UnknownServiceException the connection URL.openConnection answers: getInputStream, which reads what openStream reads, connect, getURL, setUseCaches (refused once connected), getUseCaches, setDefaultUseCaches, getDefaultUseCaches, toString
URLEncoder, URLDecoder encode and decode of a text with a Charset, a charset's name or none (UTF-8): the form HTML's forms send, a space +, letters, digits and . - * _ kept, every other character %XY of the charset's bytes; what decode refuses (% with fewer than two characters after it, a character that is no hexadecimal digit) and the words are a JDK's
HttpClient newHttpClient; newBuilder with version, followRedirects, executor, connectTimeout, cookieHandler, build; send, sendAsync, followRedirects, version, executor, connectTimeout, cookieHandler, close, shutdown, shutdownNow, isTerminated; HttpClient.Version, HttpClient.Redirect
HttpCookie new of a name and a value, parse of a Set-Cookie or Set-Cookie2 field; the getters and setters of the value, Comment, CommentURL, Discard, Domain, MaxAge, Path, Portlist, Secure, HttpOnly, Version; getName, hasExpired, domainMatches, equals, hashCode, clone, toString (what differs)
CookieHandler, CookieManager, CookiePolicy, CookieStore a handler's get and put, getDefault, setDefault, a handler of the program's own; new CookieManager with or without a store and a policy, setCookiePolicy, getCookieStore; ACCEPT_ALL, ACCEPT_NONE, ACCEPT_ORIGINAL_SERVER, shouldAccept, a policy of the program's own; the in-memory store's add, get, getCookies, getURIs, remove, removeAll, a store of the program's own
HttpRequest newBuilder with or without a URI, with uri, header, headers, setHeader, GET, POST, PUT, DELETE, HEAD, method, version, expectContinue, timeout, copy, build; method, uri, headers, bodyPublisher, version, expectContinue, timeout, equals, hashCode, toString; BodyPublishers.ofString with or without a Charset, ofByteArray of an array or a range, ofInputStream, noBody; BodyPublisher.contentLength
HttpResponse statusCode, headers, body, uri, request, previousResponse, version, toString; BodyHandlers.ofString with or without a Charset, ofByteArray, ofInputStream, discarding, replacing; BodySubscribers of the same and mapping; a BodyHandler of the program's own choosing one by the ResponseInfo (statusCode, headers, version)
HttpHeaders firstValue, firstValueAsLong, allValues, map, HttpHeaders.of, equals, hashCode, toString
HttpTimeoutException, HttpConnectTimeoutException of a message; what send throws, and what the future of sendAsync completes with, when a time limit passes
HttpServer, HttpContext, HttpHandler HttpServer.create of nothing, of an address and a backlog, or of those with a path, a handler and filters, bind, createContext with or without a handler, removeContext of a path or a context, setExecutor, getExecutor, start, stop, getAddress; getPath, getHandler, setHandler, getServer, getAttributes, getFilters, setAuthenticator, getAuthenticator; handle
HttpExchange, Request getRequestMethod, getRequestURI, getProtocol, getRequestHeaders, getRequestBody, getResponseHeaders, sendResponseHeaders, getResponseBody, getResponseCode, close, getHttpContext, getRemoteAddress, getLocalAddress, getAttribute, setAttribute, setStreams, getPrincipal; with
Filter, HttpHandlers doFilter, description, Filter.beforeHandler, afterHandler, adaptRequest; new Filter.Chain of filters and a handler, its doFilter; HttpHandlers.of a status, fields and a body, handleOrElse
Authenticator, BasicAuthenticator, HttpPrincipal authenticate; Failure, Retry and Success with getResponseCode or getPrincipal; a BasicAuthenticator of a realm, with or without a Charset, getRealm, checkCredentials; new HttpPrincipal of a user and a realm, getUsername, getRealm, getName, equals, hashCode, toString
Headers the members of Map; getFirst, add, set; new Headers() of nothing or a map, Headers.of of names and values in turn or of a map
InetSocketAddress, InetAddress, BindException, UnknownHostException of a port, of a host and a port, of an InetAddress and a port, createUnresolved; getPort, getHostString, getHostName, getAddress, isUnresolved, equals, hashCode, toString; getHostAddress, getHostName, getAddress, isLoopbackAddress, isAnyLocalAddress, InetAddress.getLoopbackAddress, getByName and getAllByName of an address in numbers or localhost, getByAddress
Socket new Socket(), of a host or an InetAddress and a port, with or without a local address and port; connect with or without a time limit, bind, getInputStream, getOutputStream, close, isConnected, isBound, isClosed, isInputShutdown, isOutputShutdown, getInetAddress, getPort, getLocalAddress, getLocalPort, getRemoteSocketAddress, getLocalSocketAddress, setSoTimeout, getSoTimeout, setTcpNoDelay, getTcpNoDelay, setKeepAlive, getKeepAlive, setReuseAddress, getReuseAddress, setSendBufferSize, getSendBufferSize, setReceiveBufferSize, getReceiveBufferSize, setSoLinger, getSoLinger, setOOBInline, getOOBInline, setTrafficClass, getTrafficClass, sendUrgentData, setOption, getOption, supportedOptions, toString; its streams' read, available, skip, write, flush and close (Sockets)
ServerSocket of nothing, of a port, with a backlog and an InetAddress; bind with or without a backlog, accept, close, isBound, isClosed, getInetAddress, getLocalPort, getLocalSocketAddress, setReuseAddress, getReuseAddress, setReceiveBufferSize, getReceiveBufferSize, setOption, getOption, supportedOptions, toString
SocketOption, StandardSocketOptions name, type; the standard options but IP_MULTICAST_IF
SocketTimeoutException, NoRouteToHostException, InterruptedIOException of nothing or a message; bytesTransferred
javax.net.SocketFactory, ServerSocketFactory getDefault; createSocket of nothing, of a host or an InetAddress and a port, with a local address and port; createServerSocket of nothing, of a port, with a backlog and an InetAddress; a factory of the program's own
MessageDigest getInstance of a name, with or without a provider's name or a Provider; update of a byte, an array, a range or a ByteBuffer, digest of nothing, of an array or into a range, reset, getAlgorithm, getDigestLength, getProvider, isEqual, clone, toString; a digest of the program's own over engineUpdate, engineDigest and engineReset (Digests and keys)
javax.crypto.Mac, SecretKeySpec getInstance of a name, with or without a provider's name or a Provider; init of a key, with or without parameters (which HMAC refuses), update of a byte, an array, a range or a ByteBuffer, doFinal of nothing, of an array or into an array at an offset, reset, getAlgorithm, getMacLength, getProvider, clone; a SecretKeySpec of an array or a range and an algorithm, getAlgorithm, getFormat, getEncoded, equals, hashCode; a key of the program's own
javax.crypto.SecretKeyFactory, PBEKeySpec, SecretKey, PBEKey, Key, KeySpec, AlgorithmParameterSpec, javax.security.auth.Destroyable getInstance of a name, with or without a provider's name or a Provider; generateSecret of a PBEKeySpec, getKeySpec of a PBEKey as a PBEKeySpec, translateKey, getAlgorithm, getProvider; a PBEKeySpec of a password, with a salt and a count, and a length in bits, getPassword, getSalt, getIterationCount, getKeyLength, clearPassword; a key's getAlgorithm, getFormat, getEncoded, destroy (which a key refuses), isDestroyed; a derived key's getPassword, getSalt, getIterationCount
SecureRandom new SecureRandom() of nothing or a seed, getInstance of a name, with or without parameters, with or without a provider's name or a Provider, getInstanceStrong; getAlgorithm, getProvider, getParameters, nextBytes with or without parameters, generateSeed, getSeed, setSeed, reseed with or without parameters, toString and the members of Random; every bit the host's entropy
SecureRandomParameters, DrbgParameters instantiation, nextBytes and reseed with their members, Instantiation.toString; Capability and its supportsReseeding, supportsPredictionResistance; parameters of the program's own, which a generator refuses
Provider, Provider.Service, Security a provider's getName, getVersionStr, getVersion, getInfo, toString, getService, getServices, configure (refused), isConfigured and the members of Properties; a provider of the program's own, with putService and removeService; a Service of a type, an algorithm, a class, aliases and attributes, getType, getAlgorithm, getClassName, getProvider, getAttribute, toString; Security.getProvider, getProviders, getAlgorithms (Digests and keys)
GeneralSecurityException, NoSuchAlgorithmException, NoSuchProviderException, KeyException, InvalidKeyException, InvalidAlgorithmParameterException, DigestException, InvalidKeySpecException, ShortBufferException, ProviderException, DestroyFailedException of nothing, a message, a message and a cause, or a cause

String.format, formatted, printf and a Formatter take %d, %s, %S, %f, %e, %E, %g, %G, %a, %A, %x, %X, %o, %c, %b, %h, %H, %n, %%, and %t and %T with each of their letters over a long, a Date and the date and time classes of java.time, with the flags -, 0, +, a space, ,, ( and #, a width, a precision and an argument index (%2$s). A BigInteger is written by %d, %x, %X and %o, its sign ahead of its digits, and a BigDecimal by %f, %e, %E, %g and %G, its own digits rounded half up. A Formattable writes itself for %s and %S.

java.util.regex.Pattern and Matcher take the syntax the Pattern documentation describes -- classes with unions and intersections, groups (capturing, named, atomic), lookahead and lookbehind, back references, greedy, reluctant and possessive quantifiers, the inline flags, \\p{..} properties, \\X and \\b{g} -- and so do String.matches, replaceAll, replaceFirst and split. A malformed pattern is a PatternSyntaxException with a JDK's message. A Matcher searches a region (region, useAnchoringBounds, useTransparentBounds), tells whether a search read the end of the input (hitEnd, requireEnd), builds a replacement match by match (appendReplacement, appendTail, replaceAll of a function) and keeps a match (toMatchResult). Pattern.splitAsStream and Matcher.results answer a stream. See deviations.

A stream takes its elements from its source one at a time when its last operation asks for them, so a stage sees an element only once every stage before it let that element through, and a stream with no end can be cut by limit, takeWhile or findFirst. count() runs no stage where the source and the stages tell how many elements there are, as a JDK 25 does: a collection, an array or a range through map, peek, sorted, skip, limit or boxed. A stream is read once; a second operation on it is an IllegalStateException.

record City(String name, String country, int people) {}

void main() {
    List<City> cities = List.of(new City("Oslo", "NO", 709), new City("Bergen", "NO", 289),
            new City("Lyon", "FR", 522), new City("Paris", "FR", 2103), new City("Turku", "FI", 201));
    IO.println(cities.stream().filter(c -> c.people() > 250).map(City::name).sorted().toList());
    IO.println(cities.stream().collect(Collectors.groupingBy(City::country, Collectors.counting())));
    IO.println(cities.stream().collect(
            Collectors.groupingBy(City::country, Collectors.mapping(City::name, Collectors.joining("+")))));
    IO.println(cities.stream().mapToInt(City::people).summaryStatistics());
    IO.println(cities.stream().max(Comparator.comparingInt(City::people)).map(City::name).orElse("none"));
    IO.println(IntStream.rangeClosed(1, 5).map(n -> n * n).sum() + " "
            + Stream.iterate(1, n -> n * 2).limit(8).toList());
    IO.println("to be or not to be".chars().filter(c -> c == 'o').count() + " "
            + Arrays.stream("to be or not to be".split(" ")).distinct().collect(Collectors.joining(",")));
}
[Bergen, Lyon, Oslo, Paris]
{NO=2, FI=1, FR=2}
{NO=Oslo+Bergen, FI=Turku, FR=Lyon+Paris}
IntSummaryStatistics{count=5, sum=3824, min=201, average=764.800000, max=2103}
Paris
55 [1, 2, 4, 8, 16, 32, 64, 128]
4 to,be,or,not

The streams of java.io are over arrays, strings, the standard streams, files (Files) and each other. A PrintStream, a PrintWriter and the two bridges between bytes and characters take UTF-8 (the default), ISO-8859-1, US-ASCII, UTF-16, UTF-16BE or UTF-16LE.

void main() throws IOException {
    ByteArrayOutputStream bytes = new ByteArrayOutputStream();
    try (DataOutputStream out = new DataOutputStream(bytes)) {
        out.writeInt(2026);
        out.writeUTF("naïve");
    }
    DataInputStream in = new DataInputStream(new ByteArrayInputStream(bytes.toByteArray()));
    IO.println(bytes.size() + " bytes: " + in.readInt() + " " + in.readUTF());
    BufferedReader lines = new BufferedReader(new StringReader("first\nsecond"));
    for (String line = lines.readLine(); line != null; line = lines.readLine()) {
        IO.println(line.toUpperCase());
    }
}
12 bytes: 2026 naïve
FIRST
SECOND

A HashMap, a HashSet and a Hashtable find a key by its equals and hashCode, and walk their keys in the order a JDK's do; a LinkedHashMap and a LinkedHashSet in the order the keys came in; a TreeMap and a TreeSet in the order of their comparator. An IdentityHashMap finds a key by ==, and its order need not be a JDK's.

record Point(int x, int y) {
}

class Grid implements Iterable<Point> {
    private final List<Point> points = new ArrayList<>();

    Grid add(int x, int y) {
        points.add(new Point(x, y));
        return this;
    }

    public Iterator<Point> iterator() {
        return points.iterator();
    }
}

void main() {
    Map<Point, String> names = new HashMap<>();
    names.put(new Point(0, 0), "origin");
    Map<Integer, List<Point>> byRow = new HashMap<>();
    for (Point p : new Grid().add(0, 0).add(3, 1).add(1, 1)) {
        byRow.computeIfAbsent(p.y(), row -> new ArrayList<>()).add(p);
    }
    List<Point> row = byRow.get(1);
    row.sort(Comparator.comparingInt(Point::x));
    Set<String> words = new HashSet<>(Arrays.asList("to be or not to be".split(" ")));
    IO.println(names.get(new Point(0, 0)) + " " + byRow.keySet() + " " + row + " " + words);
    IO.println(String.format("%-6s|%5.2f|%04d|%x", "pi", Math.PI, 42, 255));
}
origin [0, 1] [Point[x=1, y=1], Point[x=3, y=1]] [not, be, or, to]
pi    | 3.14|0042|ff
class Account {
    private int balance;

    void withdraw(int amount) {
        if (amount > balance) {
            throw new IllegalStateException("insufficient funds: " + (amount - balance));
        }
        balance -= amount;
    }

    void deposit(int amount) {
        balance += amount;
    }
}

void main() {
    Account account = new Account();
    account.deposit(100);
    Map<String, Integer> attempts = new HashMap<>();
    for (int amount : new int[] {30, 100, 50}) {
        try {
            account.withdraw(amount);
            attempts.put("ok", attempts.getOrDefault("ok", 0) + 1);
        } catch (IllegalStateException e) {
            IO.println(e.getMessage());
            attempts.put("refused", attempts.getOrDefault("refused", 0) + 1);
        } finally {
            IO.println("tried " + amount);
        }
    }
    IO.println(attempts.get("ok") + " ok, " + attempts.get("refused") + " refused, " + attempts.get("other"));
}
tried 30
insufficient funds: 30
tried 100
tried 50
2 ok, 1 refused, null