Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for closed (0.15 sec)

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

        assertEquals(set, Sets.subSet(set, Range.closed(0, 12)));
        assertEquals(ImmutableSortedSet.of(2, 4), Sets.subSet(set, Range.closed(0, 4)));
        assertEquals(ImmutableSortedSet.of(2, 4, 6), Sets.subSet(set, Range.closed(2, 6)));
        assertEquals(ImmutableSortedSet.of(4, 6), Sets.subSet(set, Range.closed(3, 7)));
        assertEquals(empty, Sets.subSet(set, Range.closed(20, 30)));
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 49.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

        }
      }
    
      // Avoid infinite recursion if a closeable's close() method throws RejectedExecutionException and
      // is closed using the direct executor.
      public void testCloseThrowsRejectedExecutionException() throws Exception {
        doThrow(new RejectedExecutionException()).when(mockCloseable).close();
        ClosingFuture<Closeable> closingFuture =
            ClosingFuture.submit(
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 75.3K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

        }
      }
    
      // Avoid infinite recursion if a closeable's close() method throws RejectedExecutionException and
      // is closed using the direct executor.
      public void testCloseThrowsRejectedExecutionException() throws Exception {
        doThrow(new RejectedExecutionException()).when(mockCloseable).close();
        ClosingFuture<Closeable> closingFuture =
            ClosingFuture.submit(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 74.7K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/MapsTest.java

        assertEquals(map, Maps.subMap(map, Range.closed(0, 12)));
        assertEquals(ImmutableSortedMap.of(2, 0, 4, 0), Maps.subMap(map, Range.closed(0, 4)));
        assertEquals(ImmutableSortedMap.of(2, 0, 4, 0, 6, 0), Maps.subMap(map, Range.closed(2, 6)));
        assertEquals(ImmutableSortedMap.of(4, 0, 6, 0), Maps.subMap(map, Range.closed(3, 7)));
        assertEquals(empty, Maps.subMap(map, Range.closed(20, 30)));
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 67.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/MapsTest.java

        assertEquals(map, Maps.subMap(map, Range.closed(0, 12)));
        assertEquals(ImmutableSortedMap.of(2, 0, 4, 0), Maps.subMap(map, Range.closed(0, 4)));
        assertEquals(ImmutableSortedMap.of(2, 0, 4, 0, 6, 0), Maps.subMap(map, Range.closed(2, 6)));
        assertEquals(ImmutableSortedMap.of(4, 0, 6, 0), Maps.subMap(map, Range.closed(3, 7)));
        assertEquals(empty, Maps.subMap(map, Range.closed(20, 30)));
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 64.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Sets.java

              range.lowerBoundType() == BoundType.CLOSED,
              range.upperEndpoint(),
              range.upperBoundType() == BoundType.CLOSED);
        } else if (range.hasLowerBound()) {
          return set.tailSet(range.lowerEndpoint(), range.lowerBoundType() == BoundType.CLOSED);
        } else if (range.hasUpperBound()) {
          return set.headSet(range.upperEndpoint(), range.upperBoundType() == BoundType.CLOSED);
        }
        return checkNotNull(set);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/AbstractFuture.java

              // Any Exception is either a RuntimeException or sneaky checked exception.
              //
              // addListener has thrown an exception! SetFuture.run can't throw any exceptions so this
              // must have been caused by addListener itself. The most likely explanation is a
              // misconfigured mock. Try to switch to Failure.
              Failure failure;
              try {
                failure = new Failure(t);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 22 21:17:24 GMT 2024
    - 63K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/MapMakerInternalMap.java

              unlock();
            }
          }
        }
    
        /**
         * Removes an entry from within a table. All entries following the removed node can stay, but
         * all preceding ones need to be cloned.
         *
         * <p>This method does not decrement count for the removed entry, but does decrement count for
         * all partially collected entries which are skipped. As such callers which are modifying count
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 91.9K bytes
    - Viewed (0)
Back to top