Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 27 for shortcut (0.22 sec)

  1. android/guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java

      }
    
      public void testCopyOf_shortcut_empty() {
        Collection<String> c = ImmutableMultiset.of();
        assertSame(c, ImmutableMultiset.copyOf(c));
      }
    
      public void testCopyOf_shortcut_singleton() {
        Collection<String> c = ImmutableMultiset.of("a");
        assertSame(c, ImmutableMultiset.copyOf(c));
      }
    
      public void testCopyOf_shortcut_immutableMultiset() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 21K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/collect/ImmutableListTest.java

      }
    
      public void testCopyOf_shortcut_empty() {
        Collection<String> c = ImmutableList.of();
        assertSame(c, ImmutableList.copyOf(c));
      }
    
      public void testCopyOf_shortcut_singleton() {
        Collection<String> c = ImmutableList.of("a");
        assertSame(c, ImmutableList.copyOf(c));
      }
    
      public void testCopyOf_shortcut_immutableList() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 23.3K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

        Set<String> unused = copyOf(iterable);
        assertEquals(1, iterable.count);
      }
    
      public void testCopyOf_shortcut_empty() {
        Collection<String> c = of();
        assertEquals(Collections.<String>emptySet(), copyOf(c));
        assertSame(c, copyOf(c));
      }
    
      public void testCopyOf_shortcut_singleton() {
        Collection<String> c = of("a");
        assertEquals(Collections.singleton("a"), copyOf(c));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

        Set<String> unused = copyOf(iterable);
        assertEquals(1, iterable.count);
      }
    
      public void testCopyOf_shortcut_empty() {
        Collection<String> c = of();
        assertEquals(Collections.<String>emptySet(), copyOf(c));
        assertSame(c, copyOf(c));
      }
    
      public void testCopyOf_shortcut_singleton() {
        Collection<String> c = of("a");
        assertEquals(Collections.singleton("a"), copyOf(c));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Lists.java

        Collections.addAll(list, elements);
        return list;
      }
    
      /**
       * Creates a <i>mutable</i> {@code ArrayList} instance containing the given elements; a very thin
       * shortcut for creating an empty list then calling {@link Iterables#addAll}.
       *
       * <p><b>Note:</b> if mutability is not required and the elements are non-null, use {@link
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 29 16:48:36 GMT 2024
    - 41.5K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/response-model.md

    They take a `set` of `str` with the name of the attributes to include (omitting the rest) or to exclude (including the rest).
    
    This can be used as a quick shortcut if you have only one Pydantic model and want to remove some data from the output.
    
    !!! tip
        But it is still recommended to use the ideas above, using multiple classes, instead of these parameters.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 17.9K bytes
    - Viewed (0)
  7. docs/en/docs/python-types.md

    Using `Optional[str]` instead of just `str` will let the editor help you detecting errors where you could be assuming that a value is always a `str`, when it could actually be `None` too.
    
    `Optional[Something]` is actually a shortcut for `Union[Something, None]`, they are equivalent.
    
    This also means that in Python 3.10, you can use `Something | None`:
    
    === "Python 3.10+"
    
        ```Python hl_lines="1"
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 17K bytes
    - Viewed (0)
  8. cmd/erasure-server-pool.go

    		Limit:       maxKeysPlusOne(maxKeys, marker != ""),
    		Marker:      marker,
    		InclDeleted: true,
    		AskDisks:    globalAPIConfig.getListQuorum(),
    		Versioned:   true,
    	}
    
    	// Shortcut for APN/1.0 Veeam/1.0 Backup/10.0
    	// It requests unique blocks with a specific prefix.
    	// We skip scanning the parent directory for
    	// more objects matching the prefix.
    	ri := logger.GetReqInfo(ctx)
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 20:08:20 GMT 2024
    - 80.5K bytes
    - Viewed (0)
  9. cmd/xl-storage-format-v2.go

    	for {
    		// Step 1 create slice with all top versions.
    		tops = tops[:0]
    		var topSig xlMetaV2VersionHeader
    		consistent := true // Are all signatures consistent (shortcut)
    		for _, vers := range versions {
    			if len(vers) == 0 {
    				consistent = false
    				continue
    			}
    			ver := vers[0]
    			if len(tops) == 0 {
    				consistent = true
    				topSig = ver.header
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Apr 23 05:07:37 GMT 2024
    - 63.6K bytes
    - Viewed (1)
  10. common-protos/k8s.io/api/flowcontrol/v1beta2/generated.proto

      // pair) is hashed and the hash value is used to shuffle the list
      // of queues and deal a hand of the size specified here.  The
      // request is put into one of the shortest queues in that hand.
      // `handSize` must be no larger than `queues`, and should be
      // significantly smaller (so that a few heavy flows do not
      // saturate most of the queues).  See the user-facing
    Plain Text
    - Registered: Wed May 08 22:53:08 GMT 2024
    - Last Modified: Mon Mar 11 18:43:24 GMT 2024
    - 19.4K bytes
    - Viewed (0)
Back to top