Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
JDK 11 java.base.jmod - Base Module
JDK 11 java.base.jmod is the JMOD file for JDK 11 Base module.
JDK 11 Base module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\java.base.jmod.
JDK 11 Base module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 Base module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\java.base.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ jdk/internal/loader/ClassLoaderValue.java
/* * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package jdk.internal.loader; import java.util.Objects; import java.util.function.BiFunction; /** * root-ClassLoaderValue. Each instance defines a separate namespace for * associated values. * <p> * ClassLoaderValue allows associating a * {@link #computeIfAbsent(ClassLoader, BiFunction) computed} non-null value with * a {@code (ClassLoader, keys...)} tuple. The associated value, as well as the * keys are strongly reachable from the associated ClassLoader so care should be * taken to use such keys and values that only reference types resolvable from * the associated ClassLoader. Failing that, ClassLoader leaks are inevitable. * <p> * Example usage: * <pre>{@code * // create a root instance which represents a namespace and declares the type of * // associated values (Class instances in this example) * static final ClassLoaderValue<Class<?>> proxyClasses = new ClassLoaderValue<>(); * * // create a compound key composed of a Module and a list of interfaces * Module module = ...; * List<Class<?>> interfaces = ...; * ClassLoaderValue<Class<?>>.Sub<Module>.Sub<List<Class<?>>> key = * proxyClasses.sub(module).sub(interfaces); * * // use the compound key together with ClassLoader to lazily associate * // the value with tuple (loader, module, interfaces) and return it * ClassLoader loader = ...; * Class<?> proxyClass = key.computeIfAbsent(loader, (ld, ky) -> { * List<Class<?>> intfcs = ky.key(); * Module m = ky.parent().key(); * Class<?> clazz = defineProxyClass(ld, m, intfcs); * return clazz; * }); * }</pre> * <p> * {@code classLoaderValue.<operation>(classLoader, ...)} represents an operation * to {@link #get}, {@link #putIfAbsent}, {@link #computeIfAbsent} or {@link #remove} * a value associated with a (classLoader, classLoaderValue) tuple. ClassLoader * instances and root-{@link ClassLoaderValue} instances are compared using * identity equality while {@link Sub sub}-ClassLoaderValue instances define * {@link #equals(Object) equality} in terms of equality of its * {@link Sub#parent() parent} ClassLoaderValue and its * {@link #key() key} component. * * @param <V> the type of value(s) associated with the root-ClassLoaderValue and * all its {@link #sub(Object) descendants}. * @author Peter Levart * @since 9 */ public final class ClassLoaderValue<V> extends AbstractClassLoaderValue<ClassLoaderValue<V>, V> { /** * Constructs new root-ClassLoaderValue representing its own namespace. */ public ClassLoaderValue() {} /** * @return the key component of this root-ClassLoaderValue (itself). */ @Override public ClassLoaderValue<V> key() { return this; } /** * root-ClassLoaderValue can only be equal to itself and has no predecessors. */ @Override public boolean isEqualOrDescendantOf(AbstractClassLoaderValue<?, V> clv) { return equals(Objects.requireNonNull(clv)); } }
⏎ jdk/internal/loader/ClassLoaderValue.java
Or download all of them as a single archive file:
File name: java.base-11.0.1-src.zip File size: 8740354 bytes Release date: 2018-11-04 Download
2020-05-29, 207138👍, 0💬
Popular Posts:
Commons Pool provides an Object-pooling API, with three major aspects: 1. A generic object pool inte...
The Apache FontBox library is an open source Java tool to obtain low level information from font fil...
What Is junit-3.8.1.jar? junit-3.8.1.jar is the version 3.8.1 of JUnit JAR library file. JUnit is a ...
Swingx is the SwingLabs Swing Component Extensions. JAR File Size and Download Location: File name: ...
JDK 11 jrt-fs.jar is the JAR file for JDK 11 JRT-FS (Java RunTime - File System) defined in the "jdk...