- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 21 for locate (0.33 sec)
-
src/main/java/org/codelibs/core/convert/NumberConversionUtil.java
* * @param locale * ロケール * @return 数値のセパレータ */ public static String findDecimalSeparator(final Locale locale) { final DecimalFormatSymbols symbol = getDecimalFormatSymbols(locale); return Character.toString(symbol.getDecimalSeparator()); } private static DecimalFormatSymbols getDecimalFormatSymbols(final Locale locale) { DecimalFormatSymbols symbol;
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 5.7K bytes - Viewed (0) -
src/test/java/org/codelibs/core/exception/NullArgumentExceptionTest.java
import static org.junit.Assert.assertThat; import java.util.Locale; import org.codelibs.core.misc.LocaleUtil; import org.junit.After; import org.junit.Before; import org.junit.Test; /** * @author wyukawa * */ public class NullArgumentExceptionTest { @Before public void setUp() throws Exception { LocaleUtil.setDefault(() -> Locale.JAPANESE); } @After
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 2K bytes - Viewed (0) -
src/test/java/org/codelibs/core/text/DecimalFormatUtilTest.java
*/ package org.codelibs.core.text; import java.util.Locale; import junit.framework.TestCase; /** * @author higa * */ public class DecimalFormatUtilTest extends TestCase { /** * @throws Exception */ public void testNormalize() throws Exception { assertEquals("1", "1000.00", DecimalFormatUtil.normalize("1,000.00", Locale.JAPAN));
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 1.1K bytes - Viewed (0) -
src/test/java/org/codelibs/core/convert/TimeConversionUtilTest.java
final Date date = toDate("11:49:10 AM", Locale.US); assertThat(new SimpleDateFormat("HH:mm:ss").format(date), is("11:49:10")); } /** * @throws Exception */ @Test public void testToDate_SpecificPattern() throws Exception { final Date date = toDate("10::49::11", "ss::mm::HH");
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 9.5K bytes - Viewed (0) -
src/main/java/org/codelibs/core/text/DecimalFormatSymbolsUtil.java
/** * {@link DecimalFormatSymbols}を返します。 * * @param locale * ロケール。{@literal null}であってはいけません * @return {@link DecimalFormatSymbols} */ public static DecimalFormatSymbols getDecimalFormatSymbols(final Locale locale) { assertArgumentNotNull("locale", locale); DecimalFormatSymbols symbols = CACHE.get(locale); if (symbols == null) {
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 2K bytes - Viewed (0) -
src/test/java/org/codelibs/core/convert/NumberConversionUtilTest.java
final String delim = NumberConversionUtil.findDecimalSeparator(Locale.JAPAN); assertEquals(".", delim); } /** * @throws Exception */ public void testFindFractionDelimeter2() throws Exception { final String delim = NumberConversionUtil.findDecimalSeparator(Locale.FRANCE); assertEquals(",", delim); } /** * @throws Exception
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 3.1K bytes - Viewed (0) -
src/main/java/org/codelibs/core/convert/TimestampConversionUtil.java
* * @param src * 変換元のオブジェクト * @param locale * ロケール。{@literal null}であってはいけません * @return 変換された{@link Date} */ public static Date toDate(final Object src, final Locale locale) { assertArgumentNotNull("locale", locale); return toDate(src, null, locale); } /** * オブジェクトを{@link Date}に変換します。 * * @param src
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 22.1K bytes - Viewed (0) -
src/test/java/org/codelibs/core/convert/TimestampConversionUtilTest.java
*/ // @Test // public void testToDate_Null() throws Exception { // assertThat(toDate(null, Locale.JAPAN), is(nullValue())); // } /** * @throws Exception */ @Test public void testToDate_EmptyString() throws Exception { assertThat(toDate("", Locale.JAPAN), is(nullValue())); } /** * @throws Exception */ @Test
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 11.4K bytes - Viewed (0) -
src/main/java/org/codelibs/core/convert/DateConversionUtil.java
* * @param src * 変換元のオブジェクト * @param locale * ロケール。{@literal null}であってはいけません * @return 変換された{@link Date} */ public static Date toDate(final Object src, final Locale locale) { assertArgumentNotNull("locale", locale); return toDate(src, null, locale); } /** * オブジェクトを{@link Date}に変換します。 * * @param src
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 21.5K bytes - Viewed (0) -
src/main/java/org/codelibs/core/misc/LocaleUtil.java
Locale locale = LocaleUtil.getDefault(); if (localeStr != null) { final int index = localeStr.indexOf('_'); if (index < 0) { locale = new Locale(localeStr); } else { final String language = localeStr.substring(0, index); final String country = localeStr.substring(index + 1); locale = new Locale(language, country); }
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 1.9K bytes - Viewed (0)