Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 434 for checkNotNull (0.12 sec)

  1. guava/src/com/google/common/primitives/Chars.java

        for (int i = 0; i < len; i++) {
          // checkNotNull for GWT (do not optimize)
          array[i] = (Character) checkNotNull(boxedArray[i]);
        }
        return array;
      }
    
      /**
       * Sorts the elements of {@code array} in descending order.
       *
       * @since 23.1
       */
      public static void sortDescending(char[] array) {
        checkNotNull(array);
        sortDescending(array, 0, array.length);
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 27 16:47:48 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/cache/RemovalNotification.java

     * or implied. See the License for the specific language governing permissions and limitations under
     * the License.
     */
    
    package com.google.common.cache;
    
    import static com.google.common.base.Preconditions.checkNotNull;
    
    import com.google.common.annotations.GwtCompatible;
    import java.util.AbstractMap.SimpleImmutableEntry;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 01 20:46:24 UTC 2022
    - 2.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/io/TestInputStream.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.io;
    
    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.io.TestOption.CLOSE_THROWS;
    import static com.google.common.io.TestOption.OPEN_THROWS;
    import static com.google.common.io.TestOption.READ_THROWS;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2.5K bytes
    - Viewed (0)
  4. guava/src/com/google/common/graph/AbstractUndirectedNetworkConnections.java

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package com.google.common.graph;
    
    import static com.google.common.base.Preconditions.checkNotNull;
    import static com.google.common.base.Preconditions.checkState;
    import static java.util.Objects.requireNonNull;
    
    import java.util.Collections;
    import java.util.Map;
    import java.util.Set;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 2.7K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/TreeRangeMap.java

       */
      @Override
      public void merge(
          Range<K> range,
          @CheckForNull V value,
          BiFunction<? super V, ? super @Nullable V, ? extends @Nullable V> remappingFunction) {
        checkNotNull(range);
        checkNotNull(remappingFunction);
    
        if (range.isEmpty()) {
          return;
        }
        split(range.lowerBound);
        split(range.upperBound);
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 26.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/primitives/UnsignedInts.java

       */
      public static void sort(int[] array) {
        checkNotNull(array);
        sort(array, 0, array.length);
      }
    
      /**
       * Sorts the array between {@code fromIndex} inclusive and {@code toIndex} exclusive, treating its
       * elements as unsigned 32-bit integers.
       *
       * @since 23.1
       */
      public static void sort(int[] array, int fromIndex, int toIndex) {
        checkNotNull(array);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 21:17:54 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  7. guava/src/com/google/common/primitives/UnsignedInts.java

       */
      public static void sort(int[] array) {
        checkNotNull(array);
        sort(array, 0, array.length);
      }
    
      /**
       * Sorts the array between {@code fromIndex} inclusive and {@code toIndex} exclusive, treating its
       * elements as unsigned 32-bit integers.
       *
       * @since 23.1
       */
      public static void sort(int[] array, int fromIndex, int toIndex) {
        checkNotNull(array);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 21:17:54 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  8. android/guava-tests/benchmark/com/google/common/util/concurrent/ExecutionListBenchmark.java

        boolean executed = false;
    
        public void add(Runnable runnable, Executor executor) {
          Preconditions.checkNotNull(runnable, "Runnable was null.");
          Preconditions.checkNotNull(executor, "Executor was null.");
    
          boolean executeImmediate = false;
    
          synchronized (runnables) {
            if (!executed) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 20.5K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/reflect/TypeResolver.java

       */
      public TypeResolver where(Type formal, Type actual) {
        Map<TypeVariableKey, Type> mappings = Maps.newHashMap();
        populateTypeMappings(mappings, checkNotNull(formal), checkNotNull(actual));
        return where(mappings);
      }
    
      /** Returns a new {@code TypeResolver} with {@code variable} mapping to {@code type}. */
      TypeResolver where(Map<TypeVariableKey, ? extends Type> mappings) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 24.2K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/primitives/ReflectionFreeAssertThrows.java

            /* userPassedSupplier= */ false);
      }
    
      private static <T extends Throwable> T doAssertThrows(
          Class<T> expectedThrowable, ThrowingSupplier supplier, boolean userPassedSupplier) {
        checkNotNull(expectedThrowable);
        checkNotNull(supplier);
        Predicate<Throwable> predicate = INSTANCE_OF.get(expectedThrowable);
        if (predicate == null) {
          throw new IllegalArgumentException(
              expectedThrowable
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 6.3K bytes
    - Viewed (0)
Back to top