Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for DecimalFormat (0.24 sec)

  1. src/main/java/org/codelibs/core/text/DecimalFormatUtil.java

     */
    package org.codelibs.core.text;
    
    import static org.codelibs.core.misc.AssertionUtil.assertArgumentNotNull;
    
    import java.text.DecimalFormat;
    import java.text.DecimalFormatSymbols;
    import java.util.Locale;
    
    import org.codelibs.core.misc.LocaleUtil;
    
    /**
     * Utility class for {@link DecimalFormat}.
     *
     * @author higa
     */
    public abstract class DecimalFormatUtil {
    
        /**
         * Do not instantiate.
         */
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 2.5K bytes
    - Viewed (0)
  2. compat/maven-embedder/src/main/java/org/apache/maven/cli/transfer/AbstractMavenTransferListener.java

                        return BYTE;
                    }
                }
            }
    
            private DecimalFormat smallFormat;
            private DecimalFormat largeFormat;
    
            FileSizeFormat(Locale locale) {
                smallFormat = new DecimalFormat("#0.0", new DecimalFormatSymbols(locale));
                largeFormat = new DecimalFormat("###0", new DecimalFormatSymbols(locale));
            }
    
            public String format(long size) {
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Tue Apr 22 22:13:51 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/beans/converter/NumberConverter.java

            }
            try {
                return new DecimalFormat(pattern).parse(value);
            } catch (final ParseException e) {
                throw new ParseRuntimeException(e);
            }
    
        }
    
        @Override
        public String getAsString(final Object value) {
            if (value == null) {
                return null;
            }
            return new DecimalFormat(pattern).format(value);
        }
    
        @Override
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  4. compat/maven-resolver-provider/src/test/java/org/apache/maven/repository/internal/util/ConsoleTransferListener.java

                String throughput = "";
                long duration = System.currentTimeMillis() - resource.getTransferStartTime();
                if (duration > 0) {
                    DecimalFormat format = new DecimalFormat("0.0", new DecimalFormatSymbols(Locale.ENGLISH));
                    double kbPerSec = (contentLength / 1024.0) / (duration / 1000.0);
                    throughput = " at " + format.format(kbPerSec) + " KB/sec";
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/convert/StringConversionUtil.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.core.convert;
    
    import static org.codelibs.core.lang.StringUtil.isEmpty;
    
    import java.text.DecimalFormat;
    import java.text.SimpleDateFormat;
    
    import org.codelibs.core.misc.Base64Util;
    
    /**
     * Utility class for conversions related to {@link String}.
     *
     * @author higa
     */
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 5.7K bytes
    - Viewed (0)
Back to top