Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 292 for convertKey (3.04 sec)

  1. guava-tests/test/com/google/common/primitives/ShortsTest.java

        Converter<String, Short> converter = Shorts.stringConverter();
        assertThat(converter.convert("1")).isEqualTo(1);
        assertThat(converter.convert("0")).isEqualTo(0);
        assertThat(converter.convert("-1")).isEqualTo(-1);
        assertThat(converter.convert("0xff")).isEqualTo(255);
        assertThat(converter.convert("0xFF")).isEqualTo(255);
        assertThat(converter.convert("-0xFF")).isEqualTo(-255);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Dec 11 20:45:32 UTC 2025
    - 27.5K bytes
    - Viewed (0)
  2. docs_src/schema_extra_example/tutorial005_an_py39.py

                            "price": 35.4,
                            "tax": 3.2,
                        },
                    },
                    "converted": {
                        "summary": "An example with converted data",
                        "description": "FastAPI can convert price `strings` to actual `numbers` automatically",
                        "value": {
                            "name": "Bar",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Aug 26 18:03:13 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/beans/util/CopyOptionsTest.java

    import static org.junit.Assert.assertThat;
    
    import java.sql.Time;
    import java.sql.Timestamp;
    import java.util.Date;
    
    import org.codelibs.core.beans.converter.DateConverter;
    import org.codelibs.core.beans.converter.NumberConverter;
    import org.codelibs.core.exception.ConverterRuntimeException;
    import org.junit.Test;
    
    /**
     * @author higa
     */
    public class CopyOptionsTest {
    
        /**
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 12K bytes
    - Viewed (0)
  4. compat/maven-embedder/src/main/java/org/eclipse/sisu/plexus/PlexusXmlBeanConverter.java

        /**
         * Parses a sequence of XML elements and converts them to the given target type.
         *
         * @param parser The XML parser
         * @param toType The target type
         * @return Converted instance of the target type
         */
        private Object parse(final MXParser parser, final TypeLiteral<?> toType) throws Exception {
            parser.require(XmlPullParser.START_TAG, null, null);
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Wed Jul 23 17:27:08 UTC 2025
    - 15.3K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/convert/StringConversionUtil.java

         * @return The converted {@literal String}
         */
        public static String toString(final Object value) {
            return toString(value, null);
        }
    
        /**
         * Converts the given object to a string.
         *
         * @param value
         *            The object to convert
         * @param pattern
         *            The pattern string
         * @return The converted {@literal String}
         */
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/beans/util/BeanUtilTest.java

    import static org.junit.Assert.assertEquals;
    import static org.junit.Assert.assertThat;
    
    import java.util.Date;
    import java.util.HashMap;
    import java.util.Map;
    
    import org.codelibs.core.beans.converter.DateConverter;
    import org.codelibs.core.beans.converter.NumberConverter;
    import org.codelibs.core.exception.NullArgumentException;
    import org.junit.Rule;
    import org.junit.Test;
    import org.junit.rules.ExpectedException;
    
    /**
     * @author higa
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 34.5K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/core/convert/FloatConversionUtil.java

         *            The object to convert
         * @return The converted {@link Float}
         */
        public static Float toFloat(final Object o) {
            return toFloat(o, null);
        }
    
        /**
         * Converts to {@link Float}.
         *
         * @param o
         *            The object to convert
         * @param pattern
         *            The pattern string
         * @return The converted {@link Float}
         */
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3.6K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/beans/PropertyDesc.java

        /**
         * Converts the value to the appropriate type if necessary based on the property type.
         *
         * @param <T>
         *            the converted type
         * @param value
         *            the value to be converted
         * @return the converted value
         */
        <T> T convertIfNeed(Object value);
    
        /**
         * Returns the {@link BeanDesc}.
         *
         * @return the {@link BeanDesc}
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Sat May 10 01:32:17 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/convert/ShortConversionUtil.java

         *            The object to convert
         * @return The converted {@link Short}
         */
        public static Short toShort(final Object o) {
            return toShort(o, null);
        }
    
        /**
         * Converts to {@link Short}.
         *
         * @param o
         *            The object to convert
         * @param pattern
         *            The pattern string
         * @return The converted {@link Short}
         */
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/convert/BigIntegerConversionUtil.java

         * @return The converted {@link BigInteger}
         */
        public static BigInteger toBigInteger(final Object o) {
            return toBigInteger(o, null);
        }
    
        /**
         * Converts to {@link BigInteger}.
         *
         * @param o
         *            The object to convert
         * @param pattern
         *            The pattern string
         * @return The converted {@link BigInteger}
         */
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 1.8K bytes
    - Viewed (0)
Back to top