Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 20 for ushort (0.17 sec)

  1. src/main/java/org/codelibs/core/convert/NumberConversionUtil.java

                if (f != null) {
                    return f;
                }
                return new Float(0);
            } else if (type == short.class) {
                final Short s = ShortConversionUtil.toShort(o);
                if (s != null) {
                    return s;
                }
                return Short.valueOf((short) 0);
            } else if (type == boolean.class) {
                final Boolean b = BooleanConversionUtil.toBoolean(o);
    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)
  2. src/test/java/org/codelibs/core/net/MimeTypeUtilTest.java

    import org.codelibs.core.io.ResourceUtil;
    import org.codelibs.core.lang.ClassUtil;
    import org.junit.Rule;
    import org.junit.Test;
    import org.junit.rules.ExpectedException;
    
    /**
     * @author shot
     */
    public class MimeTypeUtilTest {
    
        /**
         * @see org.junit.rules.ExpectedException
         */
        @Rule
        public ExpectedException exception = ExpectedException.none();
    
        /**
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.7K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/lang/ModifierUtil.java

    import java.lang.reflect.Field;
    import java.lang.reflect.Method;
    import java.lang.reflect.Modifier;
    
    /**
     * {@link Modifier}用のユーティリティクラスです。
     *
     * @author shot
     */
    public abstract class ModifierUtil {
    
        /**
         * <code>public</code>かどうか返します。
         *
         * @param method
         *            メソッド。{@literal null}であってはいけません
         * @return パブリックかどうか
         */
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 5.5K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/io/OutputStreamUtil.java

    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.OutputStream;
    
    import org.codelibs.core.exception.IORuntimeException;
    
    /**
     * {@link OutputStream}用のユーティリティクラスです。
     *
     * @author shot
     */
    public abstract class OutputStreamUtil {
    
        /**
         * {@link FileOutputStream}を作成します。
         *
         * @param file
         *            ファイル。{@literal null}であってはいけません
    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)
  5. src/test/java/org/codelibs/core/convert/NumberConversionUtilTest.java

     */
    package org.codelibs.core.convert;
    
    import java.text.DecimalFormatSymbols;
    import java.util.Locale;
    
    import junit.framework.TestCase;
    
    import org.codelibs.core.misc.LocaleUtil;
    
    /**
     * @author shot
     *
     */
    public class NumberConversionUtilTest extends TestCase {
    
        /**
         * @throws Exception
         */
        public void testConvertNumber_byte() 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)
  6. src/main/java/org/codelibs/core/convert/ShortConversionUtil.java

        }
    
        private static Short toShort(final String s) {
            if (StringUtil.isEmpty(s)) {
                return null;
            }
            return Short.valueOf(DecimalFormatUtil.normalize(s));
        }
    
        /**
         * {@literal short}に変換します。
         *
         * @param o
         *            変換元のオブジェクト
         * @return 変換された{@literal short}
         */
        public static short toPrimitiveShort(final Object o) {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/convert/ShortConversionUtilTest.java

     *
     */
    public class ShortConversionUtilTest extends TestCase {
    
        /**
         * @throws Exception
         */
        public void testToShort() throws Exception {
            assertEquals(new Short("1000"), ShortConversionUtil.toShort("1,000"));
        }
    
        /**
         * @throws Exception
         */
        public void testToPrimitiveShort() throws Exception {
            assertEquals(1000, ShortConversionUtil.toPrimitiveShort("1,000"));
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 1.4K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/convert/TimeConversionUtil.java

        protected static final int[] STYLES = new int[] { SHORT, MEDIUM, LONG, FULL };
    
        /**
         * デフォルロケールで{@link DateFormat#SHORT}スタイルのパターン文字列を返します。
         *
         * @return {@link DateFormat#SHORT}スタイルのパターン文字列
         */
        public static String getShortPattern() {
            return getShortPattern(LocaleUtil.getDefault());
        }
    
        /**
         * 指定されたロケールで{@link DateFormat#SHORT}スタイルのパターン文字列を返します。
         *
         * @param locale
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 21.2K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/misc/AssertionUtil.java

         * @param argValue
         *            引数の値
         * @throws EmptyArgumentException
         *             引数が<code>null</code>または空の配列の場合。
         */
        public static void assertArgumentNotEmpty(final String argName, final short[] argValue) {
            if (ArrayUtil.isEmpty(argValue)) {
                throw new EmptyArgumentException(argName, "ECL0011", asArray(argName));
            }
        }
    
        /**
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/collection/EnumerationIterator.java

    import java.util.Enumeration;
    import java.util.Iterator;
    
    import org.codelibs.core.exception.ClUnsupportedOperationException;
    
    /**
     * {@link Enumeration}を {@link Iterator}にするためのアダブタです。
     *
     * @author shot
     * @param <T>
     *            列挙する要素の型
     */
    public class EnumerationIterator<T> implements Iterator<T> {
    
        private Enumeration<T> enumeration = null;
    
        /**
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2.4K bytes
    - Viewed (0)
Back to top