Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 72 for Generic (0.1 seconds)

  1. guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

        private Object proxy;
    
        @SuppressWarnings("unchecked") // proxy for a generic class
        <V> Callable<V> waitFor(Callable<V> callable) {
          return waitFor(callable, Callable.class);
        }
    
        @SuppressWarnings("unchecked") // proxy for a generic class
        <V> ClosingCallable<V> waitFor(ClosingCallable<V> closingCallable) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 63K bytes
    - Click Count (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

        private Object proxy;
    
        @SuppressWarnings("unchecked") // proxy for a generic class
        <V> Callable<V> waitFor(Callable<V> callable) {
          return waitFor(callable, Callable.class);
        }
    
        @SuppressWarnings("unchecked") // proxy for a generic class
        <V> ClosingCallable<V> waitFor(ClosingCallable<V> closingCallable) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 63K bytes
    - Click Count (0)
  3. src/test/java/org/codelibs/fess/exception/UserRoleLoginExceptionTest.java

    import org.codelibs.fess.unit.UnitFessTestCase;
    import org.junit.jupiter.api.Test;
    
    public class UserRoleLoginExceptionTest extends UnitFessTestCase {
    
        // Mock subclass of RootAction for testing generic type safety
        private static class TestAction extends RootAction {
            // Test subclass
        }
    
        // Another mock subclass for testing
        private static class AdminAction extends RootAction {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 11K bytes
    - Click Count (0)
  4. ci/official/containers/ml_build/builder.devtoolset/build_devtoolset.sh

      ;;
    esac
    
    # Put the current kernel headers from ubuntu in place.
    ln -s "/usr/include/linux" "/${TARGET}/usr/include/linux"
    ln -s "/usr/include/asm-generic" "/${TARGET}/usr/include/asm-generic"
    ln -s "/usr/include/x86_64-linux-gnu/asm" "/${TARGET}/usr/include/asm"
    
    # Symlinks in the binary distribution are set up for installation in /usr, we
    # need to fix up all the links to stay within /${TARGET}.
    Created: Tue Apr 07 12:39:13 GMT 2026
    - Last Modified: Fri Jan 16 21:51:13 GMT 2026
    - 8K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/reflect/TypeToken.java

        } else {
          return null;
        }
      }
    
      /**
       * Returns the type token representing the generic type declaration of {@code cls}. For example:
       * {@code TypeToken.getGenericType(Iterable.class)} returns {@code Iterable<T>}.
       *
       * <p>If {@code cls} isn't parameterized and isn't a generic array, the type token of the class is
       * returned.
       */
      @VisibleForTesting
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jan 29 22:14:05 GMT 2026
    - 53.8K bytes
    - Click Count (0)
  6. docs/en/docs/python-types.md

    def some_function(data: Any):
        print(data)
    ```
    
    ### Generic types { #generic-types }
    
    Some types can take "type parameters" in square brackets, to define their internal types, for example a "list of strings" would be declared `list[str]`.
    
    These types that can take type parameters are called **Generic types** or **Generics**.
    
    You can use the same builtin types as generics (with square brackets and types inside):
    
    * `list`
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 11K bytes
    - Click Count (0)
  7. src/test/java/org/codelibs/fess/job/AggregateLogJobTest.java

                    case 4:
                        throw new NullPointerException("Null pointer");
                    default:
                        throw new RuntimeException("Generic error");
                    }
                }
            };
            ComponentUtil.register(mockSearchLogHelper, "searchLogHelper");
    
            // First execution - success
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Wed Jan 14 14:29:07 GMT 2026
    - 12.3K bytes
    - Click Count (0)
  8. docs/zh-hant/docs/python-types.md

    ```python
    from typing import Any
    
    
    def some_function(data: Any):
        print(data)
    ```
    
    ### 泛型(Generic types) { #generic-types }
    
    有些型別可以在方括號中接收「型別參數」,以定義其內部元素的型別,例如「字串的 list」可以宣告為 `list[str]`。
    
    這些能接收型別參數的型別稱為「泛型(Generic types)」或「Generics」。
    
    你可以將相同的內建型別用作泛型(使用方括號並在裡面放型別):
    
    * `list`
    * `tuple`
    * `set`
    * `dict`
    
    #### List { #list }
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 10.7K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/validation/FessActionValidatorTest.java

                fail("Constructor with RequestManager, UserMessagesCreator, and Class[] parameters should exist");
            }
        }
    
        @Test
        public void test_classStructure() {
            // Verify the class is generic
            final java.lang.reflect.TypeVariable<?>[] typeParameters = FessActionValidator.class.getTypeParameters();
            assertEquals("Should have one type parameter", 1, typeParameters.length);
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 2.8K bytes
    - Click Count (0)
  10. docs/en/docs/tutorial/response-status-code.md

    * **`400 - 499`** are for "Client error" responses. These are the second type you would probably use the most.
        * An example is `404`, for a "Not Found" response.
        * For generic errors from the client, you can just use `400`.
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 3.9K bytes
    - Click Count (0)
Back to Top