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 17 java.desktop.jmod - Desktop Module
JDK 17 java.desktop.jmod is the JMOD file for JDK 17 Desktop module.
JDK 17 Desktop module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\java.desktop.jmod.
JDK 17 Desktop module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 Desktop module source code files are stored in \fyicenter\jdk-17.0.5\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/finder/Signature.java
/* * Copyright (c) 2008, 2013, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.beans.finder; /** * This class is designed to be a key of a cache * of constructors or methods. * * @since 1.7 * * @author Sergey A. Malenkov */ final class Signature { private final Class<?> type; private final String name; private final Class<?>[] args; private volatile int code; /** * Constructs signature for constructor. * * @param type the class that contains constructor * @param args the types of constructor's parameters */ Signature(Class<?> type, Class<?>[] args) { this(type, null, args); } /** * Constructs signature for method. * * @param type the class that contains method * @param name the name of the method * @param args the types of method's parameters */ Signature(Class<?> type, String name, Class<?>[] args) { this.type = type; this.name = name; this.args = args; } Class<?> getType() { return this.type; } String getName() { return this.name; } Class<?>[] getArgs() { return this.args; } /** * Indicates whether some other object is "equal to" this one. * * @param object the reference object with which to compare * @return {@code true} if this object is the same as the * {@code object} argument, {@code false} otherwise * @see #hashCode() */ @Override public boolean equals(Object object) { if (this == object) { return true; } if (object instanceof Signature) { Signature signature = (Signature) object; return isEqual(signature.type, this.type) && isEqual(signature.name, this.name) && isEqual(signature.args, this.args); } return false; } /** * Indicates whether some object is "equal to" another one. * This method supports {@code null} values. * * @param obj1 the first reference object that will compared * @param obj2 the second reference object that will compared * @return {@code true} if first object is the same as the second object, * {@code false} otherwise */ private static boolean isEqual(Object obj1, Object obj2) { return (obj1 == null) ? obj2 == null : obj1.equals(obj2); } /** * Indicates whether some array is "equal to" another one. * This method supports {@code null} values. * * @param args1 the first reference array that will compared * @param args2 the second reference array that will compared * @return {@code true} if first array is the same as the second array, * {@code false} otherwise */ private static boolean isEqual(Class<?>[] args1, Class<?>[] args2) { if ((args1 == null) || (args2 == null)) { return args1 == args2; } if (args1.length != args2.length) { return false; } for (int i = 0; i < args1.length; i++) { if (!isEqual(args1[i], args2[i])) { return false; } } return true; } /** * Returns a hash code value for the object. * This method is supported for the benefit of hashtables * such as {@link java.util.HashMap} or {@link java.util.HashSet}. * Hash code computed using algorithm * suggested in Effective Java, Item 8. * * @return a hash code value for this object * @see #equals(Object) */ @Override public int hashCode() { if (this.code == 0) { int code = 17; code = addHashCode(code, this.type); code = addHashCode(code, this.name); if (this.args != null) { for (Class<?> arg : this.args) { code = addHashCode(code, arg); } } this.code = code; } return this.code; } /** * Adds hash code value if specified object. * This is a part of the algorithm * suggested in Effective Java, Item 8. * * @param code current hash code value * @param object object that updates hash code value * @return updated hash code value * @see #hashCode() */ private static int addHashCode(int code, Object object) { code *= 37; return (object != null) ? code + object.hashCode() : code; } }
⏎ com/sun/beans/finder/Signature.java
Or download all of them as a single archive file:
File name: java.desktop-17.0.5-src.zip File size: 9152233 bytes Release date: 2022-09-13 Download
⇒ JDK 17 java.instrument.jmod - Instrument Module
2023-09-16, 74541👍, 0💬
Popular Posts:
JDK 11 jdk.crypto.mscapi.jmod is the JMOD file for JDK 11 Crypto MSCAPI module. JDK 11 Crypto MSCAPI...
What Is commons-io-2.11.jar? commons-io-2.11.jar is the JAR file for Commons IO 2.5, which is a libr...
How to read XML document from socket connections with the socket\DelayedInput.java provided in the A...
JDK 11 jdk.internal.le.jmod is the JMOD file for JDK 11 Internal Line Editing module. JDK 11 Interna...
How to download and install JDK (Java Development Kit) 7? If you want to write Java applications, yo...