Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 264 for Collector (0.09 sec)

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

      private final BiPredicate<? super R, ? super R> equivalence;
    
      private CollectorTester(
          Collector<T, A, R> collector, BiPredicate<? super R, ? super R> equivalence) {
        this.collector = checkNotNull(collector);
        this.equivalence = checkNotNull(equivalence);
      }
    
      /**
       * Different orderings for combining the elements of an input array, which must all produce the
       * same result.
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 17:40:56 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  2. compat/maven-model-builder/src/test/java/org/apache/maven/model/interpolation/AbstractModelInterpolatorTest.java

            context.put("project.baseUri", "myBaseUri");
        }
    
        protected void assertProblemFree(SimpleProblemCollector collector) {
            assertEquals(0, collector.getErrors().size(), "Expected no errors");
            assertEquals(0, collector.getWarnings().size(), "Expected no warnings");
            assertEquals(0, collector.getFatals().size(), "Expected no fatals");
        }
    
        protected void assertCollectorState(
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 22.2K bytes
    - Viewed (0)
  3. cmd/metrics-v3.go

    		}
    	}
    
    	// Prepare to register the collectors. Other than `MetricGroup` collectors,
    	// we also have standard collectors like `GoCollector`.
    
    	// Create all Non-`MetricGroup` collectors here.
    	collectors := map[collectorPath]prometheus.Collector{
    		debugGoCollectorPath: collectors.NewGoCollector(),
    	}
    
    	// Add all `MetricGroup` collectors to the map.
    	for _, mg := range allMetricGroups {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Aug 02 00:55:27 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/MoreCollectors.java

       * collector without breaking j2cl?
       */
      private static final Collector<Object, ?, Optional<Object>> TO_OPTIONAL =
          Collector.of(
              ToOptionalState::new,
              ToOptionalState::add,
              ToOptionalState::combine,
              ToOptionalState::getOptional,
              Collector.Characteristics.UNORDERED);
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 21:21:17 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/CollectCollectors.java

      @SuppressWarnings({"rawtypes", "unchecked"})
      static <E> Collector<E, ?, ImmutableList<E>> toImmutableList() {
        return (Collector) TO_IMMUTABLE_LIST;
      }
    
      // Sets
    
      @SuppressWarnings({"rawtypes", "unchecked"})
      static <E> Collector<E, ?, ImmutableSet<E>> toImmutableSet() {
        return (Collector) TO_IMMUTABLE_SET;
      }
    
      static <E> Collector<E, ?, ImmutableSortedSet<E>> toImmutableSortedSet(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  6. compat/maven-builder-support/src/test/java/org/apache/maven/building/DefaultProblemCollectorTest.java

            collector.setSource("SOURCE_PROBLEM2");
            collector.add(null, "PROBLEM2", -1, -1, null);
    
            collector.setSource("SOURCE_PROBLEM3");
            collector.add(null, "PROBLEM3", -1, -1, null);
    
            assertEquals("", collector.getProblems().get(0).getSource());
            assertEquals("SOURCE_PROBLEM2", collector.getProblems().get(1).getSource());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  7. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultTransformerContextBuilder.java

         */
        @Override
        public TransformerContext initialize(ModelBuildingRequest request, ModelProblemCollector collector) {
            // We must assume the TransformerContext was created using this.newTransformerContextBuilder()
            DefaultModelProblemCollector problems = (DefaultModelProblemCollector) collector;
            return new TransformerContext() {
    
                @Override
                public Path locate(Path path) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  8. src/main/java/jcifs/spnego/NegTokenTarg.java

            this.mechanism = mechanism;
        }
    
    
        @Override
        public byte[] toByteArray () {
            try {
                ByteArrayOutputStream collector = new ByteArrayOutputStream();
                ASN1OutputStream der = ASN1OutputStream.create(collector, ASN1Encoding.DER);
                ASN1EncodableVector fields = new ASN1EncodableVector();
                int res = getResult();
                if ( res != UNSPECIFIED_RESULT ) {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Mon Jan 04 04:18:31 UTC 2021
    - 5.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/io/ResourcesTest.java

            new LineProcessor<List<String>>() {
              List<String> collector = new ArrayList<>();
    
              @Override
              public boolean processLine(String line) {
                collector.add(whitespace().trimFrom(line));
                return true;
              }
    
              @Override
              public List<String> getResult() {
                return collector;
              }
            };
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/testing/GcFinalization.java

        return max(10L, Runtime.getRuntime().totalMemory() / (32L * 1024L * 1024L));
      }
    
      /**
       * Waits until the given future {@linkplain Future#isDone is done}, invoking the garbage collector
       * as necessary to try to ensure that this will happen.
       *
       * @throws RuntimeException if timed out or interrupted while waiting
       */
      @SuppressWarnings("removal") // b/260137033
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 11.6K bytes
    - Viewed (0)
Back to top