Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 451 for true (0.12 sec)

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

        private final int size;
    
        ImmutableArrayMap(int size) {
          this.size = size;
        }
    
        abstract ImmutableMap<K, Integer> keyToIndex();
    
        // True if getValue never returns null.
        private boolean isFull() {
          return size == keyToIndex().size();
        }
    
        K getKey(int index) {
          return keyToIndex().keySet().asList().get(index);
        }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 10K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/math/LongMath.java

          return false;
        }
        if (n < 17 * 17) {
          return true;
        }
    
        for (long[] baseSet : millerRabinBaseSets) {
          if (n <= baseSet[0]) {
            for (int i = 1; i < baseSet.length; i++) {
              if (!MillerRabinTester.test(baseSet[i], n)) {
                return false;
              }
            }
            return true;
          }
        }
        throw new AssertionError();
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 44.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/HashBiMap.java

          }
        }
        return ABSENT;
      }
    
      @Override
      public boolean containsKey(@CheckForNull Object key) {
        return findEntryByKey(key) != ABSENT;
      }
    
      /**
       * Returns {@code true} if this BiMap contains an entry whose value is equal to {@code value} (or,
       * equivalently, if this inverse view contains a key that is equal to {@code value}).
       *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 06 16:06:58 GMT 2023
    - 36.4K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/Collections2.java

        }
      }
    
      /**
       * Returns {@code true} if the collection {@code self} contains all of the elements in the
       * collection {@code c}.
       *
       * <p>This method iterates over the specified collection {@code c}, checking each element returned
       * by the iterator in turn to see if it is contained in the specified collection {@code self}. If
       * all elements are so contained, {@code true} is returned, otherwise {@code false}.
       *
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/TestThread.java

        checkNotNull(methodName);
        checkNotNull(arguments);
        assertEquals(false, invokeMethod("hasQueuedThread", this));
        sendRequest(methodName, arguments);
        Thread.sleep(DUE_DILIGENCE_MILLIS);
        assertEquals(true, invokeMethod("hasQueuedThread", this));
        assertNull(responseQueue.poll());
      }
    
      /**
       * Causes this thread to call the named method, and asserts that this thread thereby waits on the
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 26 20:07:17 GMT 2023
    - 10.9K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/RateLimiter.java

       *
       * @param timeout the maximum time to wait for the permit. Negative values are treated as zero.
       * @param unit the time unit of the timeout argument
       * @return {@code true} if the permit was acquired, {@code false} otherwise
       * @throws IllegalArgumentException if the requested number of permits is negative or zero
       */
      @SuppressWarnings("GoodTime") // should accept a java.time.Duration
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 04 09:45:04 GMT 2023
    - 18.2K bytes
    - Viewed (0)
  7. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

          remove(key);
          return true;
        }
        return false;
      }
    
      @Override
      public boolean replace(K key, V oldValue, V newValue) {
        if (oldValue.equals(get(key))) {
          alertListenerIfPresent(key, oldValue, RemovalCause.REPLACED);
          put(key, newValue);
          return true;
        }
        return false;
      }
    
      @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 21.6K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/DiscreteDomain.java

      }
    
      private static final class IntegerDomain extends DiscreteDomain<Integer> implements Serializable {
        private static final IntegerDomain INSTANCE = new IntegerDomain();
    
        IntegerDomain() {
          super(true);
        }
    
        @Override
        @CheckForNull
        public Integer next(Integer value) {
          int i = value;
          return (i == Integer.MAX_VALUE) ? null : i + 1;
        }
    
        @Override
        @CheckForNull
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 10.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/LinkedHashMultimap.java

     * "https://github.com/google/guava/wiki/NewCollectionTypesExplained#multimap">{@code Multimap}</a>.
     *
     * @author Jared Levy
     * @author Louis Wasserman
     * @since 2.0
     */
    @GwtCompatible(serializable = true, emulated = true)
    @ElementTypesAreNonnullByDefault
    public final class LinkedHashMultimap<K extends @Nullable Object, V extends @Nullable Object>
        extends LinkedHashMultimapGwtSerializationDependencies<K, V> {
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  10. guava-testlib/test/com/google/common/testing/NullPointerTesterTest.java

        @SuppressWarnings("EqualsHashCode")
        @Override
        public boolean equals(@Nullable Object o) {
          return true;
        }
      }
    
      static class DoesNotOverrideEquals {
        public boolean equals(Object a, Object b) {
          return true;
        }
      }
    
      public void testEqualsMethod() {
        shouldPass(new OverridesEquals());
        shouldFail(new DoesNotOverrideEquals());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 47.9K bytes
    - Viewed (0)
Back to top