Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 152 for arbitrary (0.04 sec)

  1. android/guava-testlib/src/com/google/common/testing/NullPointerTester.java

        if (defaultValue != null) {
          return defaultValue;
        }
        @SuppressWarnings("unchecked") // All arbitrary instances are generics-safe
        T arbitrary = (T) ArbitraryInstances.get(type.getRawType());
        if (arbitrary != null) {
          return arbitrary;
        }
        if (type.getRawType() == Class.class) {
          // If parameter is Class<? extends Foo>, we return Foo.class
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 24.9K bytes
    - Viewed (0)
  2. src/test/java/jcifs/pac/PacSignatureTest.java

            // Prepare data
            ByteArrayOutputStream baos = new ByteArrayOutputStream();
            int defaultType = 99;
            writeLittleEndianInt(baos, defaultType);
            byte[] checksum = new byte[10]; // Arbitrary length
            for (int i = 0; i < checksum.length; i++) {
                checksum[i] = (byte) i;
            }
            baos.write(checksum);
            byte[] data = baos.toByteArray();
    
            // Create PacSignature
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/SneakyThrows.java

      /**
       * Throws {@code t} as if it were an unchecked {@link Throwable}.
       *
       * <p>This method is useful primarily when we make a reflective call to a method with no {@code
       * throws} clause: Java forces us to handle an arbitrary {@link Throwable} from that method,
       * rather than just the {@link RuntimeException} or {@link Error} that should be possible. (And in
       * fact the static type of {@link Throwable} is occasionally justified even for a method with no
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Dec 30 18:44:22 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/util/concurrent/SneakyThrows.java

      /**
       * Throws {@code t} as if it were an unchecked {@link Throwable}.
       *
       * <p>This method is useful primarily when we make a reflective call to a method with no {@code
       * throws} clause: Java forces us to handle an arbitrary {@link Throwable} from that method,
       * rather than just the {@link RuntimeException} or {@link Error} that should be possible. (And in
       * fact the static type of {@link Throwable} is occasionally justified even for a method with no
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Dec 30 18:44:22 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/AbstractMultimapAsMapImplementsMapTest.java

    import com.google.common.collect.testing.MapInterfaceTest;
    import java.util.Collection;
    import java.util.Map;
    import org.jspecify.annotations.NullMarked;
    
    /**
     * Test {@link Multimap#asMap()} for an arbitrary multimap with {@link MapInterfaceTest}.
     *
     * @author George van den Driessche
     * @author Jared Levy
     */
    @GwtCompatible
    @NullMarked
    public abstract class AbstractMultimapAsMapImplementsMapTest
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 18 14:47:20 UTC 2025
    - 3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/hash/SneakyThrows.java

      /**
       * Throws {@code t} as if it were an unchecked {@link Throwable}.
       *
       * <p>This method is useful primarily when we make a reflective call to a method with no {@code
       * throws} clause: Java forces us to handle an arbitrary {@link Throwable} from that method,
       * rather than just the {@link RuntimeException} or {@link Error} that should be possible. (And in
       * fact the static type of {@link Throwable} is occasionally justified even for a method with no
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Dec 30 18:44:22 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  7. guava/src/com/google/common/base/SneakyThrows.java

      /**
       * Throws {@code t} as if it were an unchecked {@link Throwable}.
       *
       * <p>This method is useful primarily when we make a reflective call to a method with no {@code
       * throws} clause: Java forces us to handle an arbitrary {@link Throwable} from that method,
       * rather than just the {@link RuntimeException} or {@link Error} that should be possible. (And in
       * fact the static type of {@link Throwable} is occasionally justified even for a method with no
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Feb 03 21:52:39 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  8. mockwebserver/src/test/java/mockwebserver3/MockResponseSniTest.kt

          assertThat(recordedRequest.handshakeServerNames).containsExactly("cash.app")
        }
      }
    
      /**
       * Connect to [hostnameOrIpAddress] and return what was received. To fake an arbitrary hostname we
       * tell MockWebServer to act as a proxy.
       */
      private fun requestToHostnameViaProxy(hostnameOrIpAddress: String): RecordedRequest {
        val heldCertificate =
          HeldCertificate
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 6.3K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

        return (Class<? extends T>) implementations.get(type);
      }
    
      private static final Logger logger = Logger.getLogger(ArbitraryInstances.class.getName());
    
      /**
       * Returns an arbitrary instance for {@code type}, or {@code null} if no arbitrary instance can be
       * determined.
       */
      public static <T> @Nullable T get(Class<T> type) {
        T defaultValue = DEFAULTS.getInstance(type);
        if (defaultValue != null) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 21.4K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/NtTransQuerySecurityDescTest.java

        }
    
        @ParameterizedTest
        @CsvSource({ "0, 0", // all zeros
                "-1, 2147483647", // negative fid, max positive security
                "12345, 999" // arbitrary numbers
        })
        void toString_includesCorrectHexValues(int fid, int securityInformation) {
            NtTransQuerySecurityDesc cmd = new NtTransQuerySecurityDesc(fid, securityInformation);
            String result = cmd.toString();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.6K bytes
    - Viewed (0)
Back to top