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:
JRE 8 rt.jar - com.* Package Source Code
JRE 8 rt.jar is the JAR file for JRE 8 RT (Runtime) libraries. JRE (Java Runtime) 8 is the runtime environment included in JDK 8. JRE 8 rt.jar libraries are divided into 6 packages:
com.* - Internal Oracle and Sun Microsystems libraries java.* - Standard Java API libraries. javax.* - Extended Java API libraries. jdk.* - JDK supporting libraries. org.* - Third party libraries. sun.* - Old libraries developed by Sun Microsystems.
JAR File Information:
Directory of C:\fyicenter\jdk-1.8.0_191\jre\lib 63,596,151 rt.jar
Here is the list of Java classes of the com.* package in JRE 1.8.0_191 rt.jar. Java source codes are also provided.
✍: FYIcenter
⏎ com/sun/jmx/snmp/Enumerated.java
/* * Copyright (c) 1999, 2012, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.jmx.snmp; import java.io.*; import java.util.Hashtable; import java.util.*; /** This class is used for implementing enumerated values. * * An enumeration is represented by a class derived from Enumerated. * The derived class defines what are the permitted values in the enumeration. * * An enumerated value is represented by an instance of the derived class. * It can be represented : * - as an integer * - as a string * * <p><b>This API is a Sun Microsystems internal API and is subject * to change without notice.</b></p> */ abstract public class Enumerated implements Serializable { /** * Construct an enumerated with a default value. * The default value is the first available in getIntTable(). * @exception IllegalArgumentException One of the arguments passed to the method is illegal or inappropriate. */ public Enumerated() throws IllegalArgumentException { Enumeration<Integer> e =getIntTable().keys(); if (e.hasMoreElements()) { value = e.nextElement().intValue() ; } else { throw new IllegalArgumentException() ; } } /** * Construct an enumerated from its integer form. * * @param valueIndex The integer form. * @exception IllegalArgumentException One of the arguments passed to * the method is illegal or inappropriate. */ public Enumerated(int valueIndex) throws IllegalArgumentException { if (getIntTable().get(new Integer(valueIndex)) == null) { throw new IllegalArgumentException() ; } value = valueIndex ; } /** * Construct an enumerated from its Integer form. * * @param valueIndex The Integer form. * @exception IllegalArgumentException One of the arguments passed to * the method is illegal or inappropriate. */ public Enumerated(Integer valueIndex) throws IllegalArgumentException { if (getIntTable().get(valueIndex) == null) { throw new IllegalArgumentException() ; } value = valueIndex.intValue() ; } /** * Construct an enumerated from its string form. * * @param valueString The string form. * @exception IllegalArgumentException One of the arguments passed * to the method is illegal or inappropriate. */ public Enumerated(String valueString) throws IllegalArgumentException { Integer index = getStringTable().get(valueString) ; if (index == null) { throw new IllegalArgumentException() ; } else { value = index.intValue() ; } } /** * Return the integer form of the enumerated. * * @return The integer form */ public int intValue() { return value ; } /** * Returns an Java enumeration of the permitted integers. * * @return An enumeration of Integer instances */ public Enumeration<Integer> valueIndexes() { return getIntTable().keys() ; } /** * Returns an Java enumeration of the permitted strings. * * @return An enumeration of String instances */ public Enumeration<String> valueStrings() { return getStringTable().keys() ; } /** * Compares this enumerated to the specified enumerated. * * The result is true if and only if the argument is not null * and is of the same class. * * @param obj The object to compare with. * * @return True if this and obj are the same; false otherwise */ @Override public boolean equals(Object obj) { return ((obj != null) && (getClass() == obj.getClass()) && (value == ((Enumerated)obj).value)) ; } /** * Returns the hash code for this enumerated. * * @return A hash code value for this object. */ @Override public int hashCode() { String hashString = getClass().getName() + String.valueOf(value) ; return hashString.hashCode() ; } /** * Returns the string form of this enumerated. * * @return The string for for this object. */ @Override public String toString() { return getIntTable().get(new Integer(value)) ; } /** * Returns the hashtable of the integer forms. * getIntTable().get(x) returns the string form associated * to the integer x. * * This method must be implemented by the derived class. * * @return An hashtable for read-only purpose */ protected abstract Hashtable<Integer,String> getIntTable() ; /** * Returns the hashtable of the string forms. * getStringTable().get(s) returns the integer form associated * to the string s. * * This method must be implemented by the derived class. * * @return An hashtable for read-only purpose */ protected abstract Hashtable<String,Integer> getStringTable() ; /** * This variable keeps the integer form of the enumerated. * The string form is retrieved using getIntTable(). */ protected int value ; }
⏎ com/sun/jmx/snmp/Enumerated.java
Or download all of them as a single archive file:
File name: jre-rt-com-1.8.0_191-src.zip File size: 8099783 bytes Release date: 2018-10-28 Download
⇒ Backup JDK 8 Installation Directory
2023-02-07, 255887👍, 3💬
Popular Posts:
What Is commons-collections4-4.4 .jar?commons-collections4-4.4 .jaris the JAR file for Apache Common...
JDK 11 jdk.crypto.cryptoki.jmod is the JMOD file for JDK 11 Crypto Cryptoki module. JDK 11 Crypto KI...
JDK 11 jdk.internal.JVM Stat.jmod is the JMOD file for JDK 11 Internal Jvmstat module. JDK 11 Intern...
What Is mail.jar of JavaMail 1.3? I got the JAR file from javamail-1_3.zip. mail.jar in javamail-1_3...
What Is commons-net-ftp-2.0.jar? commons-net-ftp-2.0.jar is the JAR file for Apache Commons Net FTP ...