Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 11 for complementOf (0.1 sec)

  1. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 48.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Sets.java

       *     contains no elements
       */
      @J2ktIncompatible
      @GwtIncompatible // EnumSet.complementOf
      public static <E extends Enum<E>> EnumSet<E> complementOf(Collection<E> collection) {
        if (collection instanceof EnumSet) {
          return EnumSet.complementOf((EnumSet<E>) collection);
        }
        checkArgument(
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 21 14:28:19 UTC 2024
    - 78.8K bytes
    - Viewed (0)
  3. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/TreeRangeSetTest.java

          rangeSet.add(range);
    
          TreeRangeSet<Integer> complement = TreeRangeSet.create();
          complement.add(Range.<Integer>all());
          complement.remove(range);
    
          assertEquals(complement, rangeSet.complement());
          assertThat(rangeSet.complement().asRanges())
              .containsExactlyElementsIn(complement.asRanges())
              .inOrder();
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableRangeSet.java

        }
      }
    
      @Override
      public ImmutableRangeSet<C> complement() {
        ImmutableRangeSet<C> result = complement;
        if (result != null) {
          return result;
        } else if (ranges.isEmpty()) {
          return complement = all();
        } else if (ranges.size() == 1 && ranges.get(0).equals(Range.all())) {
          return complement = of();
        } else {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 27K bytes
    - Viewed (0)
  6. compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/GraphConflictResolutionPolicy.java

     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.repository.metadata;
    
    /**
     *  MetadataGraph edge selection policy. Complements
     *  GraphConflictResolver by being injected into it
     *
     *
     */
    @Deprecated
    public interface GraphConflictResolutionPolicy {
        String ROLE = GraphConflictResolutionPolicy.class.getName();
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/io/MoreFiles.java

    import java.util.Arrays;
    import java.util.Collection;
    import java.util.stream.Stream;
    import javax.annotation.CheckForNull;
    
    /**
     * Static utilities for use with {@link Path} instances, intended to complement {@link Files}.
     *
     * <p>Many methods provided by Guava's {@code Files} class for {@link java.io.File} instances are
     * now available via the JDK's {@link java.nio.file.Files} class for {@code Path} - check the JDK's
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 35K bytes
    - Viewed (0)
  8. guava/src/com/google/common/io/MoreFiles.java

    import java.util.Arrays;
    import java.util.Collection;
    import java.util.stream.Stream;
    import javax.annotation.CheckForNull;
    
    /**
     * Static utilities for use with {@link Path} instances, intended to complement {@link Files}.
     *
     * <p>Many methods provided by Guava's {@code Files} class for {@link java.io.File} instances are
     * now available via the JDK's {@link java.nio.file.Files} class for {@code Path} - check the JDK's
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 16:07:00 UTC 2024
    - 34.5K bytes
    - Viewed (0)
  9. doc/go1.17_spec.html

    byte        alias for uint8
    rune        alias for int32
    </pre>
    
    <p>
    The value of an <i>n</i>-bit integer is <i>n</i> bits wide and represented using
    <a href="https://en.wikipedia.org/wiki/Two's_complement">two's complement arithmetic</a>.
    </p>
    
    <p>
    There is also a set of predeclared numeric types with implementation-specific sizes:
    </p>
    
    <pre class="grammar">
    uint     either 32 or 64 bits
    int      same size as uint
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Thu Oct 10 18:25:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  10. doc/go_spec.html

    byte        alias for uint8
    rune        alias for int32
    </pre>
    
    <p>
    The value of an <i>n</i>-bit integer is <i>n</i> bits wide and represented using
    <a href="https://en.wikipedia.org/wiki/Two's_complement">two's complement arithmetic</a>.
    </p>
    
    <p>
    There is also a set of predeclared integer types with implementation-specific sizes:
    </p>
    
    <pre class="grammar">
    uint     either 32 or 64 bits
    int      same size as uint
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Oct 02 00:58:01 UTC 2024
    - 282.5K bytes
    - Viewed (0)
Back to top