Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 139 for ample (0.01 sec)

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

    import java.util.Iterator;
    import java.util.List;
    import java.util.Map.Entry;
    import org.jspecify.annotations.NullMarked;
    import org.jspecify.annotations.Nullable;
    
    /**
     * A container class for the five sample elements we need for testing.
     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible
    @NullMarked
    public class SampleElements<E extends @Nullable Object> implements Iterable<E> {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ImmutableListTest.java

      }
    
      public void testCopyOf_concurrentlyMutating() {
        List<String> sample = Lists.newArrayList("a", "b", "c");
        for (int delta : new int[] {-1, 0, 1}) {
          for (int i = 0; i < sample.size(); i++) {
            Collection<String> misleading = misleadingSizeCollection(delta);
            List<String> expected = sample.subList(0, i);
            misleading.addAll(expected);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 23.6K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

       */
      private @Nullable Object generate(TypeToken<?> type) {
        Class<?> rawType = type.getRawType();
        List<Object> samples = sampleInstances.get(rawType);
        Object sample = pickInstance(samples, null);
        if (sample != null) {
          return sample;
        }
        if (rawType.isEnum()) {
          return pickInstance(rawType.getEnumConstants(), null);
        }
        if (type.isArray()) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 28.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb1/smb1/SmbComNegotiateResponseTest.java

            serverData = transport.new ServerData();
            response = new SmbComNegotiateResponse(serverData);
        }
    
        @Test
        void testReadParameterWordsWireFormat() {
            // Prepare a byte array with sample parameter words
            ByteBuffer buffer = ByteBuffer.allocate(34);
            buffer.order(ByteOrder.LITTLE_ENDIAN);
            buffer.putShort((short) 0); // dialectIndex
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 9.2K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb/SmbNamedPipe.java

     * is desired.
     *
     * <table border="1">
     * <caption>SmbNamedPipe Constructor Examples</caption>
     * <tr >
     * <td colspan="2"><b><code>SmbNamedPipe</code> Constructor Examples</b></td>
     * <tr>
     * <td ><b>Code Sample</b></td>
     * <td><b>Description</b></td>
     * </tr>
     * <tr>
     * <td >
     *
     * <pre>
     * new SmbNamedPipe("smb://server/IPC$/PIPE/foo", SmbNamedPipe.PIPE_TYPE_RDWR | SmbNamedPipe.PIPE_TYPE_CALL, context);
     * </pre>
     *
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.2K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/ImmutableListMultimap.java

       * href="ImmutableMultimap.html#iteration">grouped by key</a>.
       *
       * <p>Example:
       *
       * {@snippet :
       * static final Multimap<Character, String> FIRST_LETTER_MULTIMAP =
       *     Stream.of("banana", "apple", "carrot", "asparagus", "cherry")
       *         .collect(toImmutableListMultimap(str -> str.charAt(0), str -> str.substring(1)));
       *
       * // is equivalent to
       *
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

       */
      private @Nullable Object generate(TypeToken<?> type) {
        Class<?> rawType = type.getRawType();
        List<Object> samples = sampleInstances.get(rawType);
        Object sample = pickInstance(samples, null);
        if (sample != null) {
          return sample;
        }
        if (rawType.isEnum()) {
          return pickInstance(rawType.getEnumConstants(), null);
        }
        if (type.isArray()) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 28.7K bytes
    - Viewed (0)
  8. src/test/java/jcifs/pac/kerberos/KerberosEncDataTest.java

         * @throws UnknownHostException if the IP address is not found
         */
        @Test
        void testConstructor() throws IOException, PACDecodingException, UnknownHostException {
            // Build a sample Kerberos EncData structure
            ASN1EncodableVector vector = new ASN1EncodableVector();
            vector.add(new DERTaggedObject(2, new DERGeneralString("TEST.REALM")));
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/CertificatePinnerKotlinTest.kt

        val certificatePinner =
          CertificatePinner
            .Builder()
            .add("**.example.com", certA1Sha256Pin)
            .build()
    
        assertThat(certificatePinner.findMatchingPins("xample.com")).isEmpty()
        assertThat(certificatePinner.findMatchingPins("dexample.com")).isEmpty()
        assertThat(certificatePinner.findMatchingPins("barnexample.com")).isEmpty()
      }
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 8.2K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

       *
       * <ul>
       *   <li>The non-private constructor or non-private static factory method with the most parameters
       *       is used to construct the sample instances. In case of tie, the candidate constructors or
       *       factories are tried one after another until one can be used to construct sample
       *       instances.
       *   <li>For the constructor or static factory method used to construct instances, it's checked
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 32.5K bytes
    - Viewed (0)
Back to top