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.desktop.jmod - Desktop Module
JDK 11 java.desktop.jmod is the JMOD file for JDK 11 Desktop module.
JDK 11 Desktop module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\java.desktop.jmod.
JDK 11 Desktop module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 Desktop module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\java.desktop.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ com/sun/beans/WildcardTypeImpl.java
/* * Copyright (c) 2003, 2006, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.beans; import java.lang.reflect.Type; import java.lang.reflect.WildcardType; import java.util.Arrays; /** * This class implements {@link WildcardType WildcardType} compatibly with the JDK's * {@link sun.reflect.generics.reflectiveObjects.WildcardTypeImpl WildcardTypeImpl}. * Unfortunately we can't use the JDK's * {@link sun.reflect.generics.reflectiveObjects.WildcardTypeImpl WildcardTypeImpl} here as we do for * {@link sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl ParameterizedTypeImpl} and * {@link sun.reflect.generics.reflectiveObjects.GenericArrayTypeImpl GenericArrayTypeImpl}, * because {@link sun.reflect.generics.reflectiveObjects.WildcardTypeImpl WildcardTypeImpl}'s * constructor takes parameters representing intermediate structures obtained during class-file parsing. * We could reconstruct versions of those structures but it would be more trouble than it's worth. * * @since 1.7 * * @author Eamonn McManus * @author Sergey Malenkov */ final class WildcardTypeImpl implements WildcardType { private final Type[] upperBounds; private final Type[] lowerBounds; /** * Creates a wildcard type with the requested bounds. * Note that the array arguments are not cloned * because instances of this class are never constructed * from outside the containing package. * * @param upperBounds the array of types representing * the upper bound(s) of this type variable * @param lowerBounds the array of types representing * the lower bound(s) of this type variable */ WildcardTypeImpl(Type[] upperBounds, Type[] lowerBounds) { this.upperBounds = upperBounds; this.lowerBounds = lowerBounds; } /** * Returns an array of {@link Type Type} objects * representing the upper bound(s) of this type variable. * Note that if no upper bound is explicitly declared, * the upper bound is {@link Object Object}. * * @return an array of types representing * the upper bound(s) of this type variable */ public Type[] getUpperBounds() { return this.upperBounds.clone(); } /** * Returns an array of {@link Type Type} objects * representing the lower bound(s) of this type variable. * Note that if no lower bound is explicitly declared, * the lower bound is the type of {@code null}. * In this case, a zero length array is returned. * * @return an array of types representing * the lower bound(s) of this type variable */ public Type[] getLowerBounds() { return this.lowerBounds.clone(); } /** * Indicates whether some other object is "equal to" this one. * It is implemented compatibly with the JDK's * {@link sun.reflect.generics.reflectiveObjects.WildcardTypeImpl WildcardTypeImpl}. * * @param object the reference object with which to compare * @return {@code true} if this object is the same as the object argument; * {@code false} otherwise * @see sun.reflect.generics.reflectiveObjects.WildcardTypeImpl#equals */ @Override public boolean equals(Object object) { if (object instanceof WildcardType) { WildcardType type = (WildcardType) object; return Arrays.equals(this.upperBounds, type.getUpperBounds()) && Arrays.equals(this.lowerBounds, type.getLowerBounds()); } return false; } /** * Returns a hash code value for the object. * It is implemented compatibly with the JDK's * {@link sun.reflect.generics.reflectiveObjects.WildcardTypeImpl WildcardTypeImpl}. * * @return a hash code value for this object * @see sun.reflect.generics.reflectiveObjects.WildcardTypeImpl#hashCode */ @Override public int hashCode() { return Arrays.hashCode(this.upperBounds) ^ Arrays.hashCode(this.lowerBounds); } /** * Returns a string representation of the object. * It is implemented compatibly with the JDK's * {@link sun.reflect.generics.reflectiveObjects.WildcardTypeImpl WildcardTypeImpl}. * * @return a string representation of the object * @see sun.reflect.generics.reflectiveObjects.WildcardTypeImpl#toString */ @Override public String toString() { StringBuilder sb; Type[] bounds; if (this.lowerBounds.length == 0) { if (this.upperBounds.length == 0 || Object.class == this.upperBounds[0]) { return "?"; } bounds = this.upperBounds; sb = new StringBuilder("? extends "); } else { bounds = this.lowerBounds; sb = new StringBuilder("? super "); } for (int i = 0; i < bounds.length; i++) { if (i > 0) { sb.append(" & "); } sb.append((bounds[i] instanceof Class) ? ((Class) bounds[i]).getName() : bounds[i].toString()); } return sb.toString(); } }
⏎ com/sun/beans/WildcardTypeImpl.java
Or download all of them as a single archive file:
File name: java.desktop-11.0.1-src.zip File size: 7974380 bytes Release date: 2018-11-04 Download
⇒ JDK 11 java.instrument.jmod - Instrument Module
2022-08-06, 159965👍, 5💬
Popular Posts:
Apache Log4j API provides the interface that applications should code to and provides the adapter co...
What Is activation.jar? I heard it's related to JAF (JavaBeans Activation Framework) 1.1? The if you...
JLayer is a library that decodes/plays/converts MPEG 1/2/2.5 Layer 1/2/3 (i.e. MP3) in real time for...
layout.jar is a component in iText Java library to provide layout functionalities. iText Java librar...
The JGoodies Forms framework helps you lay out and implement elegant Swing panels consistently and q...