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:
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/SnmpTimeticks.java
/*
*
* Copyright (c) 2007, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
// Copyright (c) 1995-96 by Cisco Systems, Inc.
package com.sun.jmx.snmp;
/**
* Contains an <CODE>SnmpTimeTick</CODE> value which
* has units of 1/100th of a second.
*
* <p><b>This API is a Sun Microsystems internal API and is subject
* to change without notice.</b></p>
*
*/
public class SnmpTimeticks extends SnmpUnsignedInt {
// CONSTRUCTORS
//-------------
/**
* Constructs a new <CODE>SnmpTimeticks</CODE> from the specified
* integer value.
* @param v The initialization value.
* @exception IllegalArgumentException The specified value is negative.
*/
public SnmpTimeticks(int v) throws IllegalArgumentException {
super(v) ;
}
/**
* Constructs a new <CODE>SnmpTimeticks</CODE> from the specified
* <CODE>Integer</CODE> value.
* @param v The initialization value.
* @exception IllegalArgumentException The specified value is negative.
*/
public SnmpTimeticks(Integer v) throws IllegalArgumentException {
super(v) ;
}
/**
* Constructs a new <CODE>SnmpTimeticks</CODE> from the specified long
* value.
* <p>If the specified value is greater than {@link
* SnmpUnsignedInt#MAX_VALUE SnmpUnsignedInt.MAX_VALUE}, the SnmpTimeTicks
* will be initialized with <code>v%(SnmpUnsignedInt.MAX_VALUE+1)</code>.
* @param v The initialization value.
* @exception IllegalArgumentException if the specified value is negative.
*/
public SnmpTimeticks(long v) throws IllegalArgumentException {
super(((v>0)?v&SnmpUnsignedInt.MAX_VALUE:v)) ;
}
/**
* Constructs a new <CODE>SnmpTimeticks</CODE> from the specified
* <CODE>Long</CODE> value.
* <p>If the specified value is greater than {@link
* SnmpUnsignedInt#MAX_VALUE SnmpUnsignedInt.MAX_VALUE}, the SnmpTimeTicks
* will be initialized with <code>v%(SnmpUnsignedInt.MAX_VALUE+1)</code>.
* @param v The initialization value.
* @exception IllegalArgumentException if the specified value is negative.
*/
public SnmpTimeticks(Long v) throws IllegalArgumentException {
this(v.longValue()) ;
}
// PUBLIC METHODS
//---------------
/**
* Parses the specified long value with time units and
* returns a <CODE>String</CODE> of the form <CODE>d days hh:mm:ss</CODE>.
* @param timeticks The value to be parsed.
* @return The <CODE>String</CODE> representation of the value.
*/
final static public String printTimeTicks(long timeticks) {
int seconds, minutes, hours, days;
StringBuffer buf = new StringBuffer() ;
timeticks /= 100;
days = (int)(timeticks / (60 * 60 * 24));
timeticks %= (60 * 60 * 24);
hours = (int)(timeticks / (60 * 60)) ;
timeticks %= (60 * 60);
minutes = (int)(timeticks / 60) ;
seconds = (int)(timeticks % 60) ;
if (days == 0) {
buf.append(hours + ":" + minutes + ":" + seconds) ;
return buf.toString() ;
}
if (days == 1) {
buf.append("1 day ") ;
} else {
buf.append(days + " days ") ;
}
buf.append(hours + ":" + minutes + ":" + seconds) ;
return buf.toString() ;
}
/**
* Converts the timeticks value to its <CODE>String</CODE> form.
* The format of the returned <CODE>String</CODE> is <CODE>d days hh:mm:ss</CODE>.
* <BR>Note: this method simply calls the {@link #printTimeTicks printTimeTicks} method.
* @return The <CODE>String</CODE> representation of the value.
*/
final public String toString() {
return printTimeTicks(value) ;
}
/**
* Returns a textual description of the type object.
* @return ASN.1 textual description.
*/
final public String getTypeName() {
return name;
}
// VARIABLES
//----------
/**
* Name of the type.
*/
final static String name = "TimeTicks" ;
static final private long serialVersionUID = -5486435222360030630L;
}
⏎ com/sun/jmx/snmp/SnmpTimeticks.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, ≈675🔥, 3💬
Popular Posts:
What Is junit-3.8.1.jar? junit-3.8.1.jar is the version 3.8.1 of JUnit JAR library file. JUnit is a ...
JDK 11 jdk.jconsole.jmod is the JMOD file for JDK 11 JConsole tool, which can be invoked by the "jco...
Java Cryptography Extension 1.6 JAR File Size and Download Location: File name: jce.jar, jce-1.6.jar...
The Java Naming and Directory Interface (JNDI) is part of the Java platform, providing applications ...
JDK 17 jdk.xml.dom.jmod is the JMOD file for JDK 17 XML DOM module. JDK 17 XML DOM module compiled c...