Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,614 for that (0.47 sec)

  1. guava/src/com/google/common/base/NullnessCasts.java

       * there's no way to assign a {@code @Nullable T} to a field {@code T foo;} and instruct the
       * analysis that that means "plain {@code T}" rather than the inferred type {@code @Nullable T}.
       * (Even if supported added {@code @NonNull}, that would not help, since the problem case
       * addressed by this method is the case in which {@code T} has parametric nullness -- and thus its
       * value may be legitimately {@code null}.)
       */
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 12 20:58:36 GMT 2021
    - 3.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/Range.java

         * https://stackoverflow.com/a/35754308/28465
         *
         * In that explanation's notation, our `overlap` check would be `x1 < y2 && y1 < x2`. We've
         * flipped one part of the check so that we're using "less than" in both cases (rather than a
         * mix of "less than" and "greater than"). We've also switched to "strictly less than" rather
         * than "less than or equal to" because of *handwave* the difference between "endpoints of
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 27.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/primitives/SignedBytes.java

      /**
       * The largest power of two that can be represented as a signed {@code byte}.
       *
       * @since 10.0
       */
      public static final byte MAX_POWER_OF_TWO = 1 << 6;
    
      /**
       * Returns the {@code byte} value that is equal to {@code value}, if possible.
       *
       * @param value any value in the range of the {@code byte} type
       * @return the {@code byte} value that equals {@code value}
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Apr 22 13:09:25 GMT 2021
    - 7.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/base/Equivalence.java

          if (obj == this) {
            return true;
          }
          if (obj instanceof Wrapper) {
            Wrapper<?> that = (Wrapper<?>) obj; // note: not necessarily a Wrapper<T>
    
            if (this.equivalence.equals(that.equivalence)) {
              /*
               * We'll accept that as sufficient "proof" that either equivalence should be able to
               * handle either reference, so it's safe to circumvent compile-time type checking.
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Equivalence.java

          if (obj == this) {
            return true;
          }
          if (obj instanceof Wrapper) {
            Wrapper<?> that = (Wrapper<?>) obj; // note: not necessarily a Wrapper<T>
    
            if (this.equivalence.equals(that.equivalence)) {
              /*
               * We'll accept that as sufficient "proof" that either equivalence should be able to
               * handle either reference, so it's safe to circumvent compile-time type checking.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 01:41:50 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/eventbus/Dispatcher.java

      /**
       * Returns a dispatcher that queues events that are posted reentrantly on a thread that is already
       * dispatching an event, guaranteeing that all events posted on a single thread are dispatched to
       * all subscribers in the order they are posted.
       *
       * <p>When all subscribers are dispatched to using a <i>direct</i> executor (which dispatches on
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 7.3K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/graph/AbstractStandardDirectedNetworkTest.java

        assertThat(e.getMessage()).contains(ERROR_REUSE_EDGE);
      }
    
      @Test
      public void addEdge_parallelSelfLoopEdge_notAllowed() {
        assume().that(graphIsMutable()).isTrue();
        assume().that(network.allowsSelfLoops()).isTrue();
        assume().that(network.allowsParallelEdges()).isFalse();
    
        addEdge(N1, N1, E11);
        IllegalArgumentException e =
            assertThrows(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 21.6K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/primitives/Shorts.java

            return true;
          }
          if (object instanceof ShortArrayAsList) {
            ShortArrayAsList that = (ShortArrayAsList) object;
            int size = size();
            if (that.size() != size) {
              return false;
            }
            for (int i = 0; i < size; i++) {
              if (array[start + i] != that.array[that.start + i]) {
                return false;
              }
            }
            return true;
          }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 25.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/primitives/Longs.java

            return true;
          }
          if (object instanceof LongArrayAsList) {
            LongArrayAsList that = (LongArrayAsList) object;
            int size = size();
            if (that.size() != size) {
              return false;
            }
            for (int i = 0; i < size; i++) {
              if (array[start + i] != that.array[that.start + i]) {
                return false;
              }
            }
            return true;
          }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 28.7K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/graph/AbstractStandardUndirectedNetworkTest.java

        assertThat(e).hasMessageThat().contains(ERROR_REUSE_EDGE);
      }
    
      @Test
      public void addEdge_parallelSelfLoopEdge_notAllowed() {
        assume().that(graphIsMutable()).isTrue();
        assume().that(network.allowsSelfLoops()).isTrue();
        assume().that(network.allowsParallelEdges()).isFalse();
    
        addEdge(N1, N1, E11);
        IllegalArgumentException e =
            assertThrows(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 19.3K bytes
    - Viewed (0)
Back to top