Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 171 - 180 of 2,116 for Set (0.02 seconds)

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

                  @Override
                  public SortedSet<String> create(String[] elements) {
                    SortedSet<String> set = new TreeSet<>(arbitraryNullFriendlyComparator());
                    Collections.addAll(set, elements);
                    return set;
                  }
                })
            .named("TreeSet, with comparator")
            .withFeatures(
                SetFeature.GENERAL_PURPOSE,
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Feb 19 21:24:11 GMT 2025
    - 19.8K bytes
    - Click Count (0)
  2. docs_src/body_nested_models/tutorial004_py310.py

    app = FastAPI()
    
    
    class Image(BaseModel):
        url: str
        name: str
    
    
    class Item(BaseModel):
        name: str
        description: str | None = None
        price: float
        tax: float | None = None
        tags: set[str] = set()
        image: Image | None = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Item):
        results = {"item_id": item_id, "item": item}
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed May 11 17:29:02 GMT 2022
    - 455 bytes
    - Click Count (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/BiMapTestSuiteBuilder.java

                  .withTearDown(parentBuilder.getTearDown())
                  .createTestSuite());
        }
    
        return derived;
      }
    
      private static Set<Feature<?>> computeInverseFeatures(Set<Feature<?>> mapFeatures) {
        Set<Feature<?>> inverseFeatures = new HashSet<>(mapFeatures);
    
        boolean nullKeys = inverseFeatures.remove(MapFeature.ALLOWS_NULL_KEYS);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Oct 30 16:15:19 GMT 2024
    - 6.8K bytes
    - Click Count (0)
  4. internal/bucket/lifecycle/filter.go

    )
    
    var errInvalidFilter = Errorf("Filter must have exactly one of Prefix, Tag, or And specified")
    
    // Filter - a filter for a lifecycle configuration Rule.
    type Filter struct {
    	XMLName xml.Name `xml:"Filter"`
    	set     bool
    
    	Prefix Prefix
    
    	ObjectSizeGreaterThan int64 `xml:"ObjectSizeGreaterThan,omitempty"`
    	ObjectSizeLessThan    int64 `xml:"ObjectSizeLessThan,omitempty"`
    
    	And    And
    	andSet bool
    
    	Tag    Tag
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Wed Sep 04 17:01:26 GMT 2024
    - 6.2K bytes
    - Click Count (0)
  5. impl/maven-core/src/main/java/org/apache/maven/extension/internal/CoreExtensionEntry.java

     * Maven core itself or a Maven core extension.
     *
     * @since 3.3.0
     */
    public class CoreExtensionEntry {
        private final ClassRealm realm;
    
        private final Set<String> artifacts;
    
        private final Set<String> packages;
    
        private final String key;
    
        private final XmlNode configuration;
    
        public CoreExtensionEntry(
                ClassRealm realm,
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sat Apr 05 11:52:05 GMT 2025
    - 4.7K bytes
    - Click Count (0)
  6. cmd/metrics-v3-system-cpu.go

    	if cpuMetrics.LoadStat != nil {
    		m.Set(sysCPULoad, cpuMetrics.LoadStat.Load1)
    		perc := cpuMetrics.LoadStat.Load1 * 100 / float64(cpuMetrics.CPUCount)
    		m.Set(sysCPULoadPerc, math.Round(perc*100)/100)
    	}
    
    	ts := cpuMetrics.TimesStat
    	if ts != nil {
    		tot := ts.User + ts.System + ts.Idle + ts.Iowait + ts.Nice + ts.Steal
    		cpuUserVal := math.Round(ts.User/tot*100*100) / 100
    		m.Set(sysCPUUser, cpuUserVal)
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Thu Jun 20 17:55:03 GMT 2024
    - 3K bytes
    - Click Count (0)
  7. guava-testlib/src/com/google/common/collect/testing/features/SetFeature.java

    import java.util.Set;
    
    /**
     * Optional features of classes derived from {@code Set}.
     *
     * @author George van den Driessche
     */
    @SuppressWarnings("rawtypes") // maybe avoidable if we rework the whole package?
    @GwtCompatible
    public enum SetFeature implements Feature<Set> {
      GENERAL_PURPOSE(CollectionFeature.GENERAL_PURPOSE);
    
      private final Set<Feature<? super Set>> implied;
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Jan 30 16:59:10 GMT 2025
    - 1.6K bytes
    - Click Count (0)
  8. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/concurrent/BuildPlanLogger.java

            HashSet<BuildStep> preds = new HashSet<>();
            nonEmptyPredecessors(step, preds, new HashSet<>());
            return preds.stream();
        }
    
        private void nonEmptyPredecessors(BuildStep step, Set<BuildStep> preds, Set<BuildStep> visited) {
            if (visited.add(step)) {
                step.predecessors.forEach(ch -> {
                    if (ch.executions().findAny().isPresent()) {
                        preds.add(ch);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Sun Mar 30 23:08:36 GMT 2025
    - 7.1K bytes
    - Click Count (0)
  9. internal/event/targetidset_test.go

    			t.Fatalf("test %v: result: expected: %v, got: %v", i+1, testCase.set, result)
    		}
    
    		result.add(testCase.targetIDToAdd)
    		if reflect.DeepEqual(result, testCase.set) {
    			t.Fatalf("test %v: result: expected: not equal, got: equal", i+1)
    		}
    	}
    }
    
    func TestTargetIDSetUnion(t *testing.T) {
    	testCases := []struct {
    		set            TargetIDSet
    		setToAdd       TargetIDSet
    		expectedResult TargetIDSet
    	}{
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 3.9K bytes
    - Click Count (0)
  10. guava/src/com/google/common/collect/ForwardingSetMultimap.java

    import com.google.common.annotations.GwtCompatible;
    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.util.Map.Entry;
    import java.util.Set;
    import org.jspecify.annotations.Nullable;
    
    /**
     * A set multimap which forwards all its method calls to another set multimap. Subclasses should
     * override one or more methods to modify the behavior of the backing multimap as desired per the <a
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 2.2K bytes
    - Click Count (0)
Back to Top