Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 495 for toType (0.77 sec)

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

            } else if (type == Byte.class) {
                return ByteConversionUtil.toByte(o);
            }
            return o;
        }
    
        /**
         * Converts to the wrapper type corresponding to the specified primitive type.
         *
         * @param type
         *            Primitive type
         * @param o
         *            Source object
         * @return Object converted to the wrapper type corresponding to the specified primitive type
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/text/Tokenizer.java

         *
         * @return The type of the token.
         */
        public int nextToken() {
            initVal();
            if (processEOF()) {
                return ttype;
            }
            if (processWhitespace()) {
                return ttype;
            }
            if (processWord()) {
                return ttype;
            }
            if (processQuote()) {
                return ttype;
            }
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Sat Jul 05 00:11:05 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/beans/impl/BeanDescImpl.java

         *
         * @param type
         *            the type
         * @param map
         *            a {@link Map} with type variables as keys and type arguments as values for the parameterized type
         * @return a {@link ParameterizedClassDesc} representing the type
         */
        protected static ParameterizedClassDesc createParameterizedClassDesc(final Type type, final Map<TypeVariable<?>, Type> map) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jun 19 09:12:22 UTC 2025
    - 25.8K bytes
    - Viewed (1)
  4. okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/Http2ConnectionTest.kt

        // Verify the peer received what was expected.
        assertThat(peer.takeFrame().type).isEqualTo(Http2.TYPE_PING)
        assertThat(peer.takeFrame().type).isEqualTo(Http2.TYPE_HEADERS)
        assertThat(peer.takeFrame().type).isEqualTo(Http2.TYPE_PING)
        assertThat(peer.takeFrame().type).isEqualTo(Http2.TYPE_DATA)
        assertThat(peer.takeFrame().type).isEqualTo(Http2.TYPE_RST_STREAM)
      }
    
      @Test fun outgoingWritesAreBatched() {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 75.5K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/convert/ByteConversionUtil.java

         */
        public static Byte toByte(final Object o) {
            return toByte(o, null);
        }
    
        /**
         * Converts to {@link Byte}.
         *
         * @param o
         *            The object to convert
         * @param pattern
         *            The pattern string
         * @return The converted {@link Byte}
         */
        public static Byte toByte(final Object o, final String pattern) {
            if (o == null) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 3.7K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/core/convert/ByteConversionUtilTest.java

     *
     */
    public class ByteConversionUtilTest extends TestCase {
    
        /**
         * @throws Exception
         */
        public void testToByte() throws Exception {
            assertEquals(Byte.valueOf("100"), ByteConversionUtil.toByte("100"));
        }
    
        /**
         * @throws Exception
         */
        public void testToPrimitiveByte() throws Exception {
            assertEquals(100, ByteConversionUtil.toPrimitiveByte("100"));
        }
    
        /**
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Fri Jun 20 13:40:57 UTC 2025
    - 1.4K bytes
    - Viewed (0)
  7. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/publicsuffix/PublicSuffixDatabase.kt

            // array.
            while (mid > -1 && this[mid] != '\n'.code.toByte()) {
              mid--
            }
            mid++
    
            // Now look for the ending '\n'.
            var end = 1
            while (this[mid + end] != '\n'.code.toByte()) {
              end++
            }
            val publicSuffixLength = mid + end - mid
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 28 07:33:49 UTC 2025
    - 8.5K bytes
    - Viewed (0)
  8. src/main/java/org/codelibs/core/lang/GenericsUtil.java

         * <p>
         * If <code>type</code> is not a parameterized type, <code>null</code> is returned.
         * </p>
         *
         * @param type
         *            the type to analyze
         * @return the array of type arguments for the specified type
         * @see ParameterizedType#getActualTypeArguments()
         */
        public static Type[] getGenericParameters(final Type type) {
            if (type instanceof ParameterizedType) {
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 23.4K bytes
    - Viewed (0)
  9. guava/src/com/google/common/reflect/TypeResolver.java

            throw new IllegalArgumentException("No type mapping from " + fromClass + " to " + to);
          }
        }.visit(from);
      }
    
      /**
       * Resolves all type variables in {@code type} and all downstream types and returns a
       * corresponding type with type variables resolved.
       */
      public Type resolveType(Type type) {
        checkNotNull(type);
        if (type instanceof TypeVariable) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Sep 03 14:03:14 UTC 2025
    - 24.2K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/exception/InvalidAccessTokenException.java

        /** Type of the invalid access token */
        private final String type;
    
        /**
         * Creates a new InvalidAccessTokenException with the specified type and message.
         *
         * @param type the type of the invalid access token
         * @param message the detailed error message
         */
        public InvalidAccessTokenException(final String type, final String message) {
            super(message);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 1.6K bytes
    - Viewed (0)
Back to top