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, ≈19🔥, 0💬
Popular Posts:
JDK 11 jdk.crypto.ec.jmod is the JMOD file for JDK 11 Crypto EC module. JDK 11 Crypto EC module comp...
How to read XML document with XML Schema validation from socket connections with the socket\DelayedI...
JDK 17 java.security.jgss.jmod is the JMOD file for JDK 17 Security JGSS (Java Generic Security Serv...
JDK 11 jdk.crypto.cryptoki.jmod is the JMOD file for JDK 11 Crypto Cryptoki module. JDK 11 Crypto KI...
What Is HttpComponents commons-httpclient-3.1.j ar?HttpComponents commons-httpclient-3.1.j aris the ...