Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
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 (322)
Collections:
Other Resources:
JDK 17 jdk.jcmd.jmod - JCmd Tool
JDK 17 jdk.jcmd.jmod is the JMOD file for JDK 17 JCmd tool,
which can be invoked by the "jcmd" command.
JDK 17 JCmd tool compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\jdk.jcmd.jmod.
JDK 17 JCmd tool compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 JCmd source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\jdk.jcmd.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ sun/tools/jstat/Operator.java
/*
* Copyright (c) 2004, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package sun.tools.jstat;
import java.util.*;
/**
* A typesafe enumeration for describing mathematical operators.
*
* @author Brian Doherty
* @since 1.5
*/
public abstract class Operator {
private static int nextOrdinal = 0;
private static HashMap<String, Operator> map = new HashMap<String, Operator>();
private final String name;
private final int ordinal = nextOrdinal++;
private Operator(String name) {
this.name = name;
map.put(name, this);
}
protected abstract double eval(double x, double y);
/* Operator '+' */
public static final Operator PLUS = new Operator("+") {
protected double eval(double x, double y) {
return x + y;
}
};
/* Operator '-' */
public static final Operator MINUS = new Operator("-") {
protected double eval(double x, double y) {
return x - y;
}
};
/* Operator '/' */
public static final Operator DIVIDE = new Operator("/") {
protected double eval(double x, double y) {
if (y == 0) {
return Double.NaN;
}
return x / y;
}
};
/* Operator '*' */
public static final Operator MULTIPLY = new Operator("*") {
protected double eval(double x, double y) {
return x * y;
}
};
/**
* Returns the string representation of this Operator object.
*
* @return the string representation of this Operator object
*/
public String toString() {
return name;
}
/**
* Maps a string to its corresponding Operator object.
*
* @param s an string to match against Operator objects.
* @return The Operator object matching the given string.
*/
public static Operator toOperator(String s) {
return map.get(s);
}
/**
* Returns an enumeration of the keys for this enumerated type
*
* @param s an string to match against Operator objects.
* @return The Operator object matching the given string.
*/
protected static Set<?> keySet() {
return map.keySet();
}
}
⏎ sun/tools/jstat/Operator.java
Or download all of them as a single archive file:
File name: jdk.jcmd-17.0.5-src.zip File size: 51997 bytes Release date: 2022-09-13 Download
⇒ JDK 17 jdk.jconsole.jmod - JConsole Tool
2023-08-17, ≈10🔥, 0💬
Popular Posts:
JDK 17 jdk.javadoc.jmod is the JMOD file for JDK 17 Java Document tool, which can be invoked by the ...
JDK 17 java.naming.jmod is the JMOD file for JDK 17 Naming module. JDK 17 Naming module compiled cla...
Java Cryptography Extension 1.2.2 JAR File Size and Download Location: File name: jce.jar, jce-1.2.2...
JDK 6 tools.jar is the JAR file for JDK 6 tools. It contains Java classes to support different JDK t...
JDOM provides a solution for using XML from Java that is as simple as Java itself. There is no compe...