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:
JDK 11 java.base.jmod - Base Module
JDK 11 java.base.jmod is the JMOD file for JDK 11 Base module.
JDK 11 Base module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\java.base.jmod.
JDK 11 Base module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 Base module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\java.base.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ java/text/RuleBasedCollationKey.java
/* * Copyright (c) 2005, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ /* * (C) Copyright Taligent, Inc. 1996 - All Rights Reserved * (C) Copyright IBM Corp. 1996 - All Rights Reserved * * The original version of this source code and documentation is copyrighted * and owned by Taligent, Inc., a wholly-owned subsidiary of IBM. These * materials are provided under terms of a License Agreement between Taligent * and Sun. This technology is protected by multiple US and International * patents. This notice and attribution to Taligent may not be removed. * Taligent is a registered trademark of Taligent, Inc. * */ package java.text; /** * A RuleBasedCollationKey is a concrete implementation of CollationKey class. * The RuleBasedCollationKey class is used by the RuleBasedCollator class. */ final class RuleBasedCollationKey extends CollationKey { /** * Compare this RuleBasedCollationKey to target. The collation rules of the * Collator object which created these keys are applied. <strong>Note:</strong> * RuleBasedCollationKeys created by different Collators can not be compared. * @param target target RuleBasedCollationKey * @return Returns an integer value. Value is less than zero if this is less * than target, value is zero if this and target are equal and value is greater than * zero if this is greater than target. * @see java.text.Collator#compare */ public int compareTo(CollationKey target) { int result = key.compareTo(((RuleBasedCollationKey)(target)).key); if (result <= Collator.LESS) return Collator.LESS; else if (result >= Collator.GREATER) return Collator.GREATER; return Collator.EQUAL; } /** * Compare this RuleBasedCollationKey and the target for equality. * The collation rules of the Collator object which created these keys are applied. * <strong>Note:</strong> RuleBasedCollationKeys created by different Collators can not be * compared. * @param target the RuleBasedCollationKey to compare to. * @return Returns true if two objects are equal, false otherwise. */ public boolean equals(Object target) { if (this == target) return true; if (target == null || !getClass().equals(target.getClass())) { return false; } RuleBasedCollationKey other = (RuleBasedCollationKey)target; return key.equals(other.key); } /** * Creates a hash code for this RuleBasedCollationKey. The hash value is calculated on the * key itself, not the String from which the key was created. Thus * if x and y are RuleBasedCollationKeys, then x.hashCode(x) == y.hashCode() if * x.equals(y) is true. This allows language-sensitive comparison in a hash table. * See the CollatinKey class description for an example. * @return the hash value based on the string's collation order. */ public int hashCode() { return (key.hashCode()); } /** * Converts the RuleBasedCollationKey to a sequence of bits. If two RuleBasedCollationKeys * could be legitimately compared, then one could compare the byte arrays * for each of those keys to obtain the same result. Byte arrays are * organized most significant byte first. */ public byte[] toByteArray() { char[] src = key.toCharArray(); byte[] dest = new byte[ 2*src.length ]; int j = 0; for( int i=0; i<src.length; i++ ) { dest[j++] = (byte)(src[i] >>> 8); dest[j++] = (byte)(src[i] & 0x00ff); } return dest; } /** * A RuleBasedCollationKey can only be generated by Collator objects. */ RuleBasedCollationKey(String source, String key) { super(source); this.key = key; } private String key = null; }
⏎ java/text/RuleBasedCollationKey.java
Or download all of them as a single archive file:
File name: java.base-11.0.1-src.zip File size: 8740354 bytes Release date: 2018-11-04 Download
2020-05-29, 243125👍, 0💬
Popular Posts:
JDK 11 jdk.aot.jmod is the JMOD file for JDK 11 Ahead-of-Time (AOT) Compiler module. JDK 11 AOT Comp...
How to perform XML Schema validation with dom\Writer.java provided in the Apache Xerces package? You...
What Is poi-scratchpad-3.5.jar? poi-scratchpad-3.5.jar is one of the JAR files for Apache POI 3.5, w...
How to download and install ojdbc7.jar for Oracle 12c R1? ojdbc8.jar for Oracle 12c R1 is a Java 7 a...
commons-net-1.4.1.jar is the JAR file for Apache Commons Net 1.4.1, which implements the client side...