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 17 java.base.jmod - Base Module
JDK 17 java.base.jmod is the JMOD file for JDK 17 Base module.
JDK 17 Base module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\java.base.jmod.
JDK 17 Base module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 Base module source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\java.base.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ java/text/spi/NumberFormatProvider.java
/* * Copyright (c) 2005, 2019, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package java.text.spi; import java.text.NumberFormat; import java.util.Locale; import java.util.spi.LocaleServiceProvider; /** * An abstract class for service providers that * provide concrete implementations of the * {@link java.text.NumberFormat NumberFormat} class. * * @since 1.6 */ public abstract class NumberFormatProvider extends LocaleServiceProvider { /** * Sole constructor. (For invocation by subclass constructors, typically * implicit.) */ protected NumberFormatProvider() { } /** * Returns a new {@code NumberFormat} instance which formats * monetary values for the specified locale. * * @param locale the desired locale. * @throws NullPointerException if {@code locale} is null * @throws IllegalArgumentException if {@code locale} isn't * one of the locales returned from * {@link java.util.spi.LocaleServiceProvider#getAvailableLocales() * getAvailableLocales()}. * @return a currency formatter * @see java.text.NumberFormat#getCurrencyInstance(java.util.Locale) */ public abstract NumberFormat getCurrencyInstance(Locale locale); /** * Returns a new {@code NumberFormat} instance which formats * integer values for the specified locale. * The returned number format is configured to * round floating point numbers to the nearest integer using * half-even rounding (see {@link java.math.RoundingMode#HALF_EVEN HALF_EVEN}) * for formatting, and to parse only the integer part of * an input string (see {@link * java.text.NumberFormat#isParseIntegerOnly isParseIntegerOnly}). * * @param locale the desired locale * @throws NullPointerException if {@code locale} is null * @throws IllegalArgumentException if {@code locale} isn't * one of the locales returned from * {@link java.util.spi.LocaleServiceProvider#getAvailableLocales() * getAvailableLocales()}. * @return a number format for integer values * @see java.text.NumberFormat#getIntegerInstance(java.util.Locale) */ public abstract NumberFormat getIntegerInstance(Locale locale); /** * Returns a new general-purpose {@code NumberFormat} instance for * the specified locale. * * @param locale the desired locale * @throws NullPointerException if {@code locale} is null * @throws IllegalArgumentException if {@code locale} isn't * one of the locales returned from * {@link java.util.spi.LocaleServiceProvider#getAvailableLocales() * getAvailableLocales()}. * @return a general-purpose number formatter * @see java.text.NumberFormat#getNumberInstance(java.util.Locale) */ public abstract NumberFormat getNumberInstance(Locale locale); /** * Returns a new {@code NumberFormat} instance which formats * percentage values for the specified locale. * * @param locale the desired locale * @throws NullPointerException if {@code locale} is null * @throws IllegalArgumentException if {@code locale} isn't * one of the locales returned from * {@link java.util.spi.LocaleServiceProvider#getAvailableLocales() * getAvailableLocales()}. * @return a percent formatter * @see java.text.NumberFormat#getPercentInstance(java.util.Locale) */ public abstract NumberFormat getPercentInstance(Locale locale); /** * Returns a new {@code NumberFormat} instance which formats * a number in its compact form for the specified * {@code locale} and {@code formatStyle}. * * @implSpec The default implementation of this method throws * {@link java.lang.UnsupportedOperationException * UnsupportedOperationException}. Overriding the implementation * of this method returns the compact number formatter instance * of the given {@code locale} with specified {@code formatStyle}. * * @param locale the desired locale * @param formatStyle the style for formatting a number * @throws NullPointerException if {@code locale} or {@code formatStyle} * is {@code null} * @throws IllegalArgumentException if {@code locale} is not * one of the locales returned from * {@link java.util.spi.LocaleServiceProvider#getAvailableLocales() * getAvailableLocales()}. * @throws UnsupportedOperationException if the implementation does not * support this method * @return a compact number formatter * * @see java.text.NumberFormat#getCompactNumberInstance(Locale, * NumberFormat.Style) * @since 12 */ public NumberFormat getCompactNumberInstance(Locale locale, NumberFormat.Style formatStyle) { throw new UnsupportedOperationException( "The " + this.getClass().getName() + " should override this" + " method to return compact number format instance of " + locale + " locale and " + formatStyle + " style."); } }
⏎ java/text/spi/NumberFormatProvider.java
Or download all of them as a single archive file:
File name: java.base-17.0.5-src.zip File size: 8883851 bytes Release date: 2022-09-13 Download
2023-09-26, 45770👍, 1💬
Popular Posts:
What Is ojdbc8.jar for Oracle 12c R2? ojdbc8.jar for Oracle 12c R2 is the JAR files of ojdbc.jar, JD...
What Is commons-codec-1.4.jar? commons-codec-1.4.jar is the JAR file for Apache Commons Codec 1.4, w...
A stream buffer is a stream-based representation of an XML infoset in Java. Stream buffers are desig...
How to read XML document from socket connections with the socket\DelayedInput.java provided in the A...
JDK 11 jdk.httpserver.jmod is the JMOD file for JDK 11 HTTP Server module. JDK 11 HTTP Server module...