- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for enclosesAll (0.13 sec)
-
android/guava/src/com/google/common/collect/AbstractRangeSet.java
} @Override public void clear() { remove(Range.<C>all()); } @Override public boolean enclosesAll(RangeSet<C> other) { return enclosesAll(other.asRanges()); } @Override public boolean enclosesAll(Iterable<Range<C>> ranges) { for (Range<C> range : ranges) { if (!encloses(range)) { return false; } } return true;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Feb 22 21:19:52 UTC 2024 - 2.9K bytes - Viewed (0) -
guava/src/com/google/common/collect/RangeSet.java
* other} is empty. * * <p>This is equivalent to checking if this range set {@link #encloses} each of the ranges in * {@code other}. */ boolean enclosesAll(RangeSet<C> other); /** * Returns {@code true} if for each range in {@code other} there exists a member range in this * range set which {@linkplain Range#encloses encloses} it. Returns {@code true} if {@code other}
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Feb 22 21:19:52 UTC 2024 - 10.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/TreeRangeSetTest.java
expectEnclose, rangeSet.encloses(query)); assertEquals( rangeSet + " was incorrect on enclosesAll([" + query + "])", expectEnclose, rangeSet.enclosesAll(ImmutableList.of(query))); } } public void testAllSingleRangesComplementAgainstRemove() { for (Range<Integer> range : QUERY_RANGES) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 24.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ImmutableRangeSetTest.java
assertFalse(rangeSet.contains(0)); assertFalse(rangeSet.intersects(Range.singleton(0))); assertFalse(rangeSet.encloses(Range.singleton(0))); assertTrue(rangeSet.enclosesAll(rangeSet)); assertTrue(rangeSet.isEmpty()); } public void testAll() { ImmutableRangeSet<Integer> rangeSet = ImmutableRangeSet.all();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 02 18:21:29 UTC 2024 - 21.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/RangeTest.java
public void testEncloseAll() { assertEquals(Range.closed(0, 0), Range.encloseAll(asList(0))); assertEquals(Range.closed(-3, 5), Range.encloseAll(asList(5, -3))); assertEquals(Range.closed(-3, 5), Range.encloseAll(asList(1, 2, 2, 2, 5, -3, 0, -1))); } public void testEncloseAll_empty() { assertThrows(NoSuchElementException.class, () -> Range.encloseAll(ImmutableSet.<Integer>of())); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 23.9K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 15.6K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 15.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Range.java
* @throws NoSuchElementException if {@code values} is empty * @throws NullPointerException if any of {@code values} is null * @since 14.0 */ public static <C extends Comparable<?>> Range<C> encloseAll(Iterable<C> values) { checkNotNull(values); if (values instanceof SortedSet) { SortedSet<C> set = (SortedSet<C>) values; Comparator<?> comparator = set.comparator();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 16 17:21:56 UTC 2024 - 27.8K bytes - Viewed (0) -
guava/src/com/google/common/collect/Range.java
* @throws NoSuchElementException if {@code values} is empty * @throws NullPointerException if any of {@code values} is null * @since 14.0 */ public static <C extends Comparable<?>> Range<C> encloseAll(Iterable<C> values) { checkNotNull(values); if (values instanceof SortedSet) { SortedSet<C> set = (SortedSet<C>) values; Comparator<?> comparator = set.comparator();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 16 17:21:56 UTC 2024 - 27.8K bytes - Viewed (0)