Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for complementOf (0.25 sec)

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

      }
    
      @J2ktIncompatible
      @GwtIncompatible // complementOf
      public void testComplementOfEnumSet() {
        Set<SomeEnum> units = EnumSet.of(SomeEnum.B, SomeEnum.D);
        EnumSet<SomeEnum> otherUnits = Sets.complementOf(units);
        verifySetContents(otherUnits, EnumSet.of(SomeEnum.A, SomeEnum.C));
      }
    
      @J2ktIncompatible
      @GwtIncompatible // complementOf
      public void testComplementOfEnumSetWithType() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 45.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/math/BigIntegerMathTest.java

          assertThrows(IllegalArgumentException.class, () -> BigIntegerMath.binomial(n, n + 1));
        }
      }
    
      @J2ktIncompatible
      @GwtIncompatible // EnumSet.complementOf
      private static final class RoundToDoubleTester {
        private final BigInteger input;
        private final Map<RoundingMode, Double> expectedValues = new EnumMap<>(RoundingMode.class);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/math/BigDecimalMathTest.java

          unnecessaryShouldThrow = true;
          return this;
        }
    
        void test() {
          assertThat(expectedValues.keySet())
              .containsAtLeastElementsIn(EnumSet.complementOf(EnumSet.of(UNNECESSARY)));
          for (Map.Entry<RoundingMode, Double> entry : expectedValues.entrySet()) {
            RoundingMode mode = entry.getKey();
            Double expectation = entry.getValue();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Jul 14 14:44:08 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/math/LongMathTest.java

        -(1L << 54) - 4,
        Long.MIN_VALUE + 2,
        Long.MIN_VALUE + 1,
        Long.MIN_VALUE
      };
    
      @J2ktIncompatible // EnumSet.complementOf
      @GwtIncompatible
      public void testRoundToDoubleAgainstBigInteger() {
        for (RoundingMode roundingMode : EnumSet.complementOf(EnumSet.of(UNNECESSARY))) {
          for (long candidate : roundToDoubleTestCandidates) {
            assertThat(LongMath.roundToDouble(candidate, roundingMode))
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 31.4K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/TreeRangeSet.java

        } else {
          rangesByLowerBound.put(range.lowerBound, range);
        }
      }
    
      @LazyInit private transient @Nullable RangeSet<C> complement;
    
      @Override
      public RangeSet<C> complement() {
        RangeSet<C> result = complement;
        return (result == null) ? complement = new Complement() : result;
      }
    
      @VisibleForTesting
      static final class RangesByUpperBound<C extends Comparable<?>>
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 32.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ImmutableRangeSetTest.java

          }
    
          ImmutableRangeSet<Integer> built = builder.build();
          assertEquals(mutable, built);
          assertEquals(ImmutableRangeSet.copyOf(mutable), built);
          assertEquals(mutable.complement(), built.complement());
    
          for (int i = 0; i <= 11; i++) {
            assertEquals(mutable.contains(i), built.contains(i));
          }
    
          SerializableTester.reserializeAndAssert(built);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Jan 25 16:19:30 UTC 2025
    - 21.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableRangeSet.java

        this(ranges, /* complement= */ null);
      }
    
      private ImmutableRangeSet(
          ImmutableList<Range<C>> ranges, @Nullable ImmutableRangeSet<C> complement) {
        this.ranges = ranges;
        this.complement = complement;
      }
    
      private final transient ImmutableList<Range<C>> ranges;
      private final transient @Nullable ImmutableRangeSet<C> complement;
    
      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 27.4K bytes
    - Viewed (0)
  8. docs/changelogs/changelog_4x.md

        above. See [Jetty's overview][jetty_8_252] of the API change and its consequences.
    
     *  New: `MultipartReader` is a streaming decoder for [MIME multipart (RFC 2045)][rfc_2045]
        messages. It complements `MultipartBody` which is our streaming encoder.
    
        ```kotlin
        val response: Response = call.execute()
        val multipartReader = MultipartReader(response.body!!)
    
        multipartReader.use {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Apr 17 13:25:31 UTC 2024
    - 25.2K bytes
    - Viewed (0)
Back to top