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/corba/se/impl/oa/poa/ActiveObjectMap.java
/* * Copyright (c) 1997, 2003, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.corba.se.impl.oa.poa; import java.util.Set ; import java.util.HashSet ; import java.util.Map ; import java.util.HashMap ; import java.util.Iterator ; import java.util.Vector ; import org.omg.PortableServer.Servant ; import org.omg.PortableServer.POAPackage.WrongPolicy ; import org.omg.CORBA.INTERNAL ; /** The ActiveObjectMap maintains associations between servants and * their keys. There are two variants, to support whether or not * multiple IDs per servant are allowed. This class suppots bidirectional * traversal of the key-servant association. Access to an instance of this * class is serialized by the POA mutex. */ public abstract class ActiveObjectMap { public static class Key { public byte[] id; Key(byte[] id) { this.id = id; } public String toString() { StringBuffer buffer = new StringBuffer(); for(int i = 0; i < id.length; i++) { buffer.append(Integer.toString((int) id[i], 16)); if (i != id.length-1) buffer.append(":"); } return buffer.toString(); } public boolean equals(java.lang.Object key) { if (!(key instanceof Key)) return false; Key k = (Key) key; if (k.id.length != this.id.length) return false; for(int i = 0; i < this.id.length; i++) if (this.id[i] != k.id[i]) return false; return true; } // Use the same hash function as for String public int hashCode() { int h = 0; for (int i = 0; i < id.length; i++) h = 31*h + id[i]; return h; } } protected POAImpl poa ; protected ActiveObjectMap( POAImpl poa ) { this.poa = poa ; } public static ActiveObjectMap create( POAImpl poa, boolean multipleIDsAllowed ) { if (multipleIDsAllowed) return new MultipleObjectMap( poa ) ; else return new SingleObjectMap(poa ) ; } private Map keyToEntry = new HashMap() ; // Map< Key, AOMEntry > private Map entryToServant = new HashMap() ; // Map< AOMEntry, Servant > private Map servantToEntry = new HashMap() ; // Map< Servant, AOMEntry > public final boolean contains(Servant value) { return servantToEntry.containsKey( value ) ; } public final boolean containsKey(Key key) { return keyToEntry.containsKey(key); } /** get Returbs the entry assigned to the key, or creates a new * entry in state INVALID if none is present. */ public final AOMEntry get(Key key) { AOMEntry result = (AOMEntry)keyToEntry.get(key); if (result == null) { result = new AOMEntry( poa ) ; putEntry( key, result ) ; } return result ; } public final Servant getServant( AOMEntry entry ) { return (Servant)entryToServant.get( entry ) ; } public abstract Key getKey(AOMEntry value) throws WrongPolicy ; public Key getKey(Servant value) throws WrongPolicy { AOMEntry entry = (AOMEntry)servantToEntry.get( value ) ; return getKey( entry ) ; } protected void putEntry( Key key, AOMEntry value ) { keyToEntry.put( key, value ) ; } public final void putServant( Servant servant, AOMEntry value ) { entryToServant.put( value, servant ) ; servantToEntry.put( servant, value ) ; } protected abstract void removeEntry( AOMEntry entry, Key key ) ; public final void remove( Key key ) { AOMEntry entry = (AOMEntry)keyToEntry.remove( key ) ; Servant servant = (Servant)entryToServant.remove( entry ) ; if (servant != null) servantToEntry.remove( servant ) ; removeEntry( entry, key ) ; } public abstract boolean hasMultipleIDs(AOMEntry value) ; protected void clear() { keyToEntry.clear(); } public final Set keySet() { return keyToEntry.keySet() ; } } class SingleObjectMap extends ActiveObjectMap { private Map entryToKey = new HashMap() ; // Map< AOMEntry, Key > public SingleObjectMap( POAImpl poa ) { super( poa ) ; } public Key getKey(AOMEntry value) throws WrongPolicy { return (Key)entryToKey.get( value ) ; } protected void putEntry(Key key, AOMEntry value) { super.putEntry( key, value); entryToKey.put( value, key ) ; } public boolean hasMultipleIDs(AOMEntry value) { return false; } // This case does not need the key. protected void removeEntry(AOMEntry entry, Key key) { entryToKey.remove( entry ) ; } public void clear() { super.clear() ; entryToKey.clear() ; } } class MultipleObjectMap extends ActiveObjectMap { private Map entryToKeys = new HashMap() ; // Map< AOMEntry, Set< Key > > public MultipleObjectMap( POAImpl poa ) { super( poa ) ; } public Key getKey(AOMEntry value) throws WrongPolicy { throw new WrongPolicy() ; } protected void putEntry(Key key, AOMEntry value) { super.putEntry( key, value); Set set = (Set)entryToKeys.get( value ) ; if (set == null) { set = new HashSet() ; entryToKeys.put( value, set ) ; } set.add( key ) ; } public boolean hasMultipleIDs(AOMEntry value) { Set set = (Set)entryToKeys.get( value ) ; if (set == null) return false ; return set.size() > 1 ; } protected void removeEntry(AOMEntry entry, Key key) { Set keys = (Set)entryToKeys.get( entry ) ; if (keys != null) { keys.remove( key ) ; if (keys.isEmpty()) entryToKeys.remove( entry ) ; } } public void clear() { super.clear() ; entryToKeys.clear() ; } }
⏎ com/sun/corba/se/impl/oa/poa/ActiveObjectMap.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, 235100👍, 3💬
Popular Posts:
iText is an ideal library for developers looking to enhance web- and other applications with dynamic...
The Java Naming and Directory Interface (JNDI) is part of the Java platform, providing applications ...
JDK 11 jdk.jshell.jmod is the JMOD file for JDK 11 JShell tool, which can be invoked by the "jshell"...
How to run "jarsigner" command from JDK tools.jar file? "jarsigner" command allows you to digitally ...
What is the dom\GetElementsByTagName .javaprovided in the Apache Xerces package? I have Apache Xerce...