Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 589 for because (0.21 sec)

  1. android/guava/src/com/google/common/util/concurrent/ExecutionSequencer.java

         *   <li>If this field's value == currentThread, we know that it's up to date, because write
         *       operations in a thread always happen-before subsequent read operations in the same
         *       thread
         *   <li>If this field's value == null because of unsafe publication, we know that it isn't the
         *       object associated with our thread, because if it was the publication wouldn't have been
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 22.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/graph/EndpointPairIterator.java

    abstract class EndpointPairIterator<N> extends AbstractIterator<EndpointPair<N>> {
      private final BaseGraph<N> graph;
      private final Iterator<N> nodeIterator;
    
      @CheckForNull
      N node = null; // null is safe as an initial value because graphs don't allow null nodes
    
      Iterator<N> successorIterator = ImmutableSet.<N>of().iterator();
    
      static <N> EndpointPairIterator<N> of(BaseGraph<N> graph) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Jul 09 17:31:04 GMT 2021
    - 5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ListMultimap.java

      /**
       * {@inheritDoc}
       *
       * <p>Because the values for a given key may have duplicates and follow the insertion ordering,
       * this method returns a {@link List}, instead of the {@link java.util.Collection} specified in
       * the {@link Multimap} interface.
       */
      @Override
      List<V> get(@ParametricNullness K key);
    
      /**
       * {@inheritDoc}
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jan 24 17:47:51 GMT 2022
    - 3.5K bytes
    - Viewed (0)
  4. guava-testlib/test/com/google/common/testing/EqualsTesterTest.java

          tester.testEquals();
        } catch (AssertionFailedError e) {
          assertErrorMessage(e, "bar [group 1, item 2] must be Object#equals to foo [group 1, item 1]");
          return;
        }
        fail("should failed because symmetry is broken");
      }
    
      public void testTransitivityBrokenInEqualityGroup() {
        EqualsTester tester =
            new EqualsTester()
                .addEqualityGroup(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Apr 17 15:49:06 GMT 2023
    - 12.9K bytes
    - Viewed (0)
  5. futures/listenablefuture1/src/com/google/common/util/concurrent/ListenableFuture.java

     * family. <b>Avoid</b> creating a mock or stub {@code Future}. Mock and stub implementations are
     * fragile because they assume that only certain methods will be called and because they often
     * implement subtleties of the API improperly.
     *
     * <p><b>Custom implementation</b>: Avoid implementing {@code ListenableFuture} from scratch. If you
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 26 21:13:41 GMT 2023
    - 8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/net/InetAddressesTest.java

        assertFalse(InetAddresses.isInetAddress("016.016.016.016"));
      }
    
      public void testForStringIPv4Input() throws UnknownHostException {
        String ipStr = "192.168.0.1";
        // Shouldn't hit DNS, because it's an IP string literal.
        InetAddress ipv4Addr = InetAddress.getByName(ipStr);
        assertEquals(ipv4Addr, InetAddresses.forString(ipStr));
        assertTrue(InetAddresses.isInetAddress(ipStr));
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 31.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/TreeBasedTable.java

     *
     * <p>Lookups by row key are often faster than lookups by column key, because the data is stored in
     * a {@code Map<R, Map<C, V>>}. A method call like {@code column(columnKey).get(rowKey)} still runs
     * quickly, since the row key is provided. However, {@code column(columnKey).size()} takes longer,
     * since an iteration across all row keys occurs.
     *
     * <p>Because a {@code TreeBasedTable} has unique sorted values for a given row, both {@code
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 11.4K bytes
    - Viewed (0)
  8. guava-testlib/src/com/google/common/collect/testing/testers/ConcurrentMapReplaceTester.java

          // permitted not to throw because it would be a no-op
        }
        expectUnchanged();
      }
    
      @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_KEY_QUERIES)
      public void testReplace_absentNullKeyUnsupported() {
        try {
          getMap().replace(null, v3());
        } catch (NullPointerException tolerated) {
          // permitted not to throw because it would be a no-op
        }
        expectUnchanged();
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/GeneralRange.java

      boolean isEmpty() {
        // The casts are safe because of the has*Bound() checks.
        return (hasUpperBound() && tooLow(uncheckedCastNullableTToT(getUpperEndpoint())))
            || (hasLowerBound() && tooHigh(uncheckedCastNullableTToT(getLowerEndpoint())));
      }
    
      boolean tooLow(@ParametricNullness T t) {
        if (!hasLowerBound()) {
          return false;
        }
        // The cast is safe because of the hasLowerBound() check.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 10.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/AbstractScheduledService.java

      @WeakOuter
      private final class ServiceDelegate extends AbstractService {
    
        // A handle to the running task so that we can stop it when a shutdown has been requested.
        // These two fields are volatile because their values will be accessed from multiple threads.
        @CheckForNull private volatile Cancellable runningTask;
        @CheckForNull private volatile ScheduledExecutorService executorService;
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Dec 13 19:45:20 GMT 2023
    - 25.8K bytes
    - Viewed (0)
Back to top