Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for checkCast (0.25 sec)

  1. guava-testlib/src/com/google/common/collect/testing/Platform.java

     */
    @GwtCompatible
    final class Platform {
      static <T> T[] clone(T[] array) {
        return array.clone();
      }
    
      // Class.cast is not supported in GWT.  This method is a no-op in GWT.
      static void checkCast(Class<?> clazz, Object obj) {
        Object unused = clazz.cast(obj);
      }
    
      static String format(String template, Object... args) {
        return String.format(Locale.ROOT, template, args);
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Aug 04 01:39:13 GMT 2022
    - 1.3K bytes
    - Viewed (0)
  2. .idea/dictionaries/dzharkov.xml

    <component name="ProjectDictionaryState">
      <dictionary name="dzharkov">
        <words>
          <w>checkcast</w>
          <w>coroutine</w>
          <w>experimentalities</w>
          <w>experimentality</w>
          <w>insn</w>
          <w>liveness</w>
          <w>parameterless</w>
        </words>
      </dictionary>
    XML
    - Registered: Fri May 03 08:18:13 GMT 2024
    - Last Modified: Wed Sep 12 06:48:13 GMT 2018
    - 300 bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/Platform.java

     */
    @GwtCompatible
    final class Platform {
      static <T> T[] clone(T[] array) {
        return array.clone();
      }
    
      // Class.cast is not supported in GWT.  This method is a no-op in GWT.
      static void checkCast(Class<?> clazz, Object obj) {
        Object unused = clazz.cast(obj);
      }
    
      static String format(String template, Object... args) {
        return String.format(Locale.ROOT, template, args);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Aug 04 01:39:13 GMT 2022
    - 1.3K bytes
    - Viewed (0)
  4. guava-gwt/test-super/com/google/common/collect/testing/super/com/google/common/collect/testing/Platform.java

     *
     * <p><strong>This .java file should never be consumed by javac.</strong>
     *
     * @author Hayward Chan
     */
    final class Platform {
      // Class.cast is not supported in GWT.
      static void checkCast(Class<?> clazz, Object obj) {}
    
      static <T> T[] clone(T[] array) {
        return (T[]) Arrays.copyOfRange(array, 0, array.length);
      }
    
      // TODO: Consolidate different copies in one single place.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 2.1K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/MinimalCollection.java

      @Override
      public boolean contains(@Nullable Object object) {
        if (!allowNulls) {
          // behave badly
          if (object == null) {
            throw new NullPointerException();
          }
        }
        Platform.checkCast(type, object); // behave badly
        return Arrays.asList(contents).contains(object);
      }
    
      @Override
      public boolean containsAll(Collection<?> collection) {
        if (!allowNulls) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/MinimalCollection.java

      @Override
      public boolean contains(@Nullable Object object) {
        if (!allowNulls) {
          // behave badly
          if (object == null) {
            throw new NullPointerException();
          }
        }
        Platform.checkCast(type, object); // behave badly
        return Arrays.asList(contents).contains(object);
      }
    
      @Override
      public boolean containsAll(Collection<?> collection) {
        if (!allowNulls) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  7. .github/PULL_REQUEST_TEMPLATE.md

    - [ ] New feature (non-breaking change which adds functionality)
    - [ ] Optimization (provides speedup with no functional changes)
    - [ ] Breaking change (fix or feature that would cause existing functionality to change)
    
    ## Checklist:
    - [ ] Fixes a regression (If yes, please add `commit-id` or `PR #` here)
    - [ ] Unit tests added/updated
    - [ ] Internal documentation updated
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Nov 14 17:29:11 GMT 2023
    - 1K bytes
    - Viewed (0)
  8. .github/PULL_REQUEST_TEMPLATE.md

    <!--- The issue this PR addresses -->
    <!-- Fixes #? -->
    
    ### Context
    <!--- Why do you believe many users will benefit from this change? -->
    <!--- Link to relevant issues or forum discussions here -->
    
    ### Contributor Checklist
    - [ ] [Review Contribution Guidelines](https://github.com/gradle/gradle/blob/master/CONTRIBUTING.md).
    Plain Text
    - Registered: Wed May 01 11:36:15 GMT 2024
    - Last Modified: Tue Feb 13 22:36:19 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  9. .github/ISSUE_TEMPLATE/bug_report.yaml

          multiple: true
          options:
            - Android
            - GWT
            - Java 8
            - Java 11
            - Java 17
    
      - type: checkboxes
        attributes:
          label: Checklist
          options:
            - label: >
                I agree to follow the
                [code of conduct](https://github.com/google/.github/blob/master/CODE_OF_CONDUCT.md).
    Others
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 27 19:53:41 GMT 2023
    - 2.2K bytes
    - Viewed (0)
  10. .github/ISSUE_TEMPLATE/feature_addition_request.yaml

            - com.google.common.primitives
            - com.google.common.reflect
            - com.google.common.testing
            - com.google.common.util.concurrent
    
      - type: checkboxes
        attributes:
          label: Checklist
          options:
            - label: >
                I agree to follow the
                [code of conduct](https://github.com/google/.github/blob/master/CODE_OF_CONDUCT.md).
              required: true
            - label: >
    Others
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Nov 17 18:47:47 GMT 2023
    - 5.8K bytes
    - Viewed (0)
Back to top