Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 589 for because (0.21 sec)

  1. android/guava/src/com/google/common/collect/TreeMultiset.java

            case -2:
              // requireNonNull is safe because right must exist in order to get a negative factor.
              requireNonNull(right);
              if (right.balanceFactor() > 0) {
                right = right.rotateRight();
              }
              return rotateLeft();
            case 2:
              // requireNonNull is safe because left must exist in order to get a positive factor.
              requireNonNull(left);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 34.2K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/EquivalenceTest.java

       * `new Integer` (as we do) instead of `Integer.valueOf`. However, under J2KT, `new Integer`
       * gets translated back to `Integer.valueOf` because that is the only thing J2KT can support. And
       * anyway, it's nice to avoid `Integer.valueOf` because the Android toolchain optimizes multiple
       * `Integer.valueOf` calls into one! So we stick with the deprecated `Integer` constructor.
       */
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/graph/StandardMutableValueGraph.java

            connections.removePredecessor(node);
            --edgeCount;
          }
        }
    
        for (N successor : ImmutableList.copyOf(connections.successors())) {
          // requireNonNull is safe because the node is a successor.
          requireNonNull(nodeConnections.getWithoutCaching(successor)).removePredecessor(node);
          requireNonNull(connections.removeSuccessor(successor));
          --edgeCount;
        }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Sat Oct 21 01:50:30 GMT 2023
    - 6.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/io/CharSequenceReader.java

       *   even back to `this.seq`. However, that may suggest that we're defending against concurrent
       *   mutation, which is not an actual risk because we use `synchronized`.
       * - Make `remaining` require a non-null `seq` argument. But this is a bit weird because the
       *   method, while it would avoid the instance field `seq` would still access the instance field
       *   `pos`.
       */
    
      @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 28 20:13:02 GMT 2023
    - 4.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/base/Suppliers.java

              if (!initialized) {
                T t = delegate.get();
                value = t;
                initialized = true;
                return t;
              }
            }
          }
          // This is safe because we checked `initialized`.
          return uncheckedCastNullableTToT(value);
        }
    
        @Override
        public String toString() {
          return "Suppliers.memoize("
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/LinkedListMultimap.java

          if (node.previousSibling == null) {
            // requireNonNull is safe because we checked that not *both* siblings were null.
            keyList.head = requireNonNull(node.nextSibling);
          } else {
            node.previousSibling.nextSibling = node.nextSibling;
          }
    
          if (node.nextSibling == null) {
            // requireNonNull is safe because we checked that not *both* siblings were null.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 27.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

         * message}.
         */
        @Override
        public String getMessage() {
          // requireNonNull is safe because ExampleStackTrace sets a non-null message.
          StringBuilder message = new StringBuilder(requireNonNull(super.getMessage()));
          for (Throwable t = conflictingStackTrace; t != null; t = t.getCause()) {
            message.append(", ").append(t.getMessage());
          }
          return message.toString();
        }
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Dec 15 19:31:54 GMT 2023
    - 35.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/reflect/TypeResolver.java

             * don't _want_ our new TypeVariable to be equal to the JDK TypeVariable because it has
             * _different bounds_ than the JDK TypeVariable. And it wouldn't make sense for our new
             * TypeVariable to be equal to any _other_ JDK TypeVariable, either, because any other JDK
             * TypeVariable must have a different declaration or name. The only TypeVariable that our
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 24.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ExplicitOrdering.java

      }
    
      ExplicitOrdering(ImmutableMap<T, Integer> rankMap) {
        this.rankMap = rankMap;
      }
    
      @Override
      public int compare(T left, T right) {
        return rank(left) - rank(right); // safe because both are nonnegative
      }
    
      private int rank(T value) {
        Integer rank = rankMap.get(value);
        if (rank == null) {
          throw new IncomparableValueException(value);
        }
        return rank;
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sun Jun 20 14:22:42 GMT 2021
    - 2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/cache/RemovalCause.java

       * ConcurrentMap#replace(Object, Object, Object)}.
       */
      REPLACED {
        @Override
        boolean wasEvicted() {
          return false;
        }
      },
    
      /**
       * The entry was removed automatically because its key or value was garbage-collected. This can
       * occur when using {@link CacheBuilder#weakKeys}, {@link CacheBuilder#weakValues}, or {@link
       * CacheBuilder#softValues}.
       */
      COLLECTED {
        @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 15 18:00:07 GMT 2021
    - 2.7K bytes
    - Viewed (0)
Back to top