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.management.jmod - Management Module
JDK 11 java.management.jmod is the JMOD file for JDK 11 Management module.
JDK 11 Management module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\java.management.jmod.
JDK 11 Management module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 Management module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\java.management.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ javax/management/openmbean/OpenMBeanConstructorInfoSupport.java
/* * Copyright (c) 2000, 2008, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package javax.management.openmbean; // java import // import java.util.Arrays; import javax.management.Descriptor; import javax.management.MBeanConstructorInfo; import javax.management.MBeanParameterInfo; /** * Describes a constructor of an Open MBean. * * * @since 1.5 */ public class OpenMBeanConstructorInfoSupport extends MBeanConstructorInfo implements OpenMBeanConstructorInfo { /* Serial version */ static final long serialVersionUID = -4400441579007477003L; // As this instance is immutable, // these two values need only be calculated once. private transient Integer myHashCode = null; private transient String myToString = null; /** * <p>Constructs an {@code OpenMBeanConstructorInfoSupport} * instance, which describes the constructor of a class of open * MBeans with the specified {@code name}, {@code description} and * {@code signature}.</p> * * <p>The {@code signature} array parameter is internally copied, * so that subsequent changes to the array referenced by {@code * signature} have no effect on this instance.</p> * * @param name cannot be a null or empty string. * * @param description cannot be a null or empty string. * * @param signature can be null or empty if there are no * parameters to describe. * * @throws IllegalArgumentException if {@code name} or {@code * description} are null or empty string. * * @throws ArrayStoreException If {@code signature} is not an * array of instances of a subclass of {@code MBeanParameterInfo}. */ public OpenMBeanConstructorInfoSupport(String name, String description, OpenMBeanParameterInfo[] signature) { this(name, description, signature, (Descriptor) null); } /** * <p>Constructs an {@code OpenMBeanConstructorInfoSupport} * instance, which describes the constructor of a class of open * MBeans with the specified {@code name}, {@code description}, * {@code signature}, and {@code descriptor}.</p> * * <p>The {@code signature} array parameter is internally copied, * so that subsequent changes to the array referenced by {@code * signature} have no effect on this instance.</p> * * @param name cannot be a null or empty string. * * @param description cannot be a null or empty string. * * @param signature can be null or empty if there are no * parameters to describe. * * @param descriptor The descriptor for the constructor. This may * be null which is equivalent to an empty descriptor. * * @throws IllegalArgumentException if {@code name} or {@code * description} are null or empty string. * * @throws ArrayStoreException If {@code signature} is not an * array of instances of a subclass of {@code MBeanParameterInfo}. * * @since 1.6 */ public OpenMBeanConstructorInfoSupport(String name, String description, OpenMBeanParameterInfo[] signature, Descriptor descriptor) { super(name, description, arrayCopyCast(signature), // may throw an ArrayStoreException descriptor); // check parameters that should not be null or empty // (unfortunately it is not done in superclass :-( ! ) // if (name == null || name.trim().equals("")) { throw new IllegalArgumentException("Argument name cannot be " + "null or empty"); } if (description == null || description.trim().equals("")) { throw new IllegalArgumentException("Argument description cannot " + "be null or empty"); } } private static MBeanParameterInfo[] arrayCopyCast(OpenMBeanParameterInfo[] src) { if (src == null) return null; MBeanParameterInfo[] dst = new MBeanParameterInfo[src.length]; System.arraycopy(src, 0, dst, 0, src.length); // may throw an ArrayStoreException return dst; } /* *** Commodity methods from java.lang.Object *** */ /** * <p>Compares the specified {@code obj} parameter with this * {@code OpenMBeanConstructorInfoSupport} instance for * equality.</p> * * <p>Returns {@code true} if and only if all of the following * statements are true: * * <ul> * <li>{@code obj} is non null,</li> * <li>{@code obj} also implements the {@code * OpenMBeanConstructorInfo} interface,</li> * <li>their names are equal</li> * <li>their signatures are equal.</li> * </ul> * * This ensures that this {@code equals} method works properly for * {@code obj} parameters which are different implementations of * the {@code OpenMBeanConstructorInfo} interface. * * @param obj the object to be compared for equality with this * {@code OpenMBeanConstructorInfoSupport} instance; * * @return {@code true} if the specified object is equal to this * {@code OpenMBeanConstructorInfoSupport} instance. */ public boolean equals(Object obj) { // if obj is null, return false // if (obj == null) { return false; } // if obj is not a OpenMBeanConstructorInfo, return false // OpenMBeanConstructorInfo other; try { other = (OpenMBeanConstructorInfo) obj; } catch (ClassCastException e) { return false; } // Now, really test for equality between this // OpenMBeanConstructorInfo implementation and the other: // // their Name should be equal if ( ! this.getName().equals(other.getName()) ) { return false; } // their Signatures should be equal if ( ! Arrays.equals(this.getSignature(), other.getSignature()) ) { return false; } // All tests for equality were successfull // return true; } /** * <p>Returns the hash code value for this {@code * OpenMBeanConstructorInfoSupport} instance.</p> * * <p>The hash code of an {@code OpenMBeanConstructorInfoSupport} * instance is the sum of the hash codes of all elements of * information used in {@code equals} comparisons (ie: its name * and signature, where the signature hashCode is calculated by a * call to {@code * java.util.Arrays.asList(this.getSignature).hashCode()}).</p> * * <p>This ensures that {@code t1.equals(t2)} implies that {@code * t1.hashCode()==t2.hashCode()} for any two {@code * OpenMBeanConstructorInfoSupport} instances {@code t1} and * {@code t2}, as required by the general contract of the method * {@link Object#hashCode() Object.hashCode()}.</p> * * <p>However, note that another instance of a class implementing * the {@code OpenMBeanConstructorInfo} interface may be equal to * this {@code OpenMBeanConstructorInfoSupport} instance as * defined by {@link #equals(java.lang.Object)}, but may have a * different hash code if it is calculated differently.</p> * * <p>As {@code OpenMBeanConstructorInfoSupport} instances are * immutable, the hash code for this instance is calculated once, * on the first call to {@code hashCode}, and then the same value * is returned for subsequent calls.</p> * * @return the hash code value for this {@code * OpenMBeanConstructorInfoSupport} instance */ public int hashCode() { // Calculate the hash code value if it has not yet been done // (ie 1st call to hashCode()) // if (myHashCode == null) { int value = 0; value += this.getName().hashCode(); value += Arrays.asList(this.getSignature()).hashCode(); myHashCode = Integer.valueOf(value); } // return always the same hash code for this instance (immutable) // return myHashCode.intValue(); } /** * <p>Returns a string representation of this {@code * OpenMBeanConstructorInfoSupport} instance.</p> * * <p>The string representation consists of the name of this class * (ie {@code * javax.management.openmbean.OpenMBeanConstructorInfoSupport}), * the name and signature of the described constructor and the * string representation of its descriptor.</p> * * <p>As {@code OpenMBeanConstructorInfoSupport} instances are * immutable, the string representation for this instance is * calculated once, on the first call to {@code toString}, and * then the same value is returned for subsequent calls.</p> * * @return a string representation of this {@code * OpenMBeanConstructorInfoSupport} instance */ public String toString() { // Calculate the string value if it has not yet been done (ie // 1st call to toString()) // if (myToString == null) { myToString = new StringBuilder() .append(this.getClass().getName()) .append("(name=") .append(this.getName()) .append(",signature=") .append(Arrays.asList(this.getSignature()).toString()) .append(",descriptor=") .append(this.getDescriptor()) .append(")") .toString(); } // return always the same string representation for this // instance (immutable) // return myToString; } }
⏎ javax/management/openmbean/OpenMBeanConstructorInfoSupport.java
Or download all of them as a single archive file:
File name: java.management-11.0.1-src.zip File size: 828174 bytes Release date: 2018-11-04 Download
⇒ JDK 11 java.management.rmi.jmod - Management RMI Module
2020-04-30, 97831👍, 0💬
Popular Posts:
JRE 8 rt.jar is the JAR file for JRE 8 RT (Runtime) libraries. JRE (Java Runtime) 8 is the runtime e...
The Java Naming and Directory Interface (JNDI) is part of the Java platform, providing applications ...
JRE 8 deploy.jar is the JAR file for JRE 8 Java Control Panel and other deploy tools. JRE (Java Runt...
Apache Ant Source Code Files are inside the Apache Ant source package file like apache-ant-1.10.10-s...
What is the dom\GetElementsByTagName .javaprovided in the Apache Xerces package? I have Apache Xerce...