Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 35 for checkNotNull (0.07 seconds)

  1. android/guava/src/com/google/common/graph/StandardValueGraph.java

      }
    
      @Override
      public boolean hasEdgeConnecting(N nodeU, N nodeV) {
        return hasEdgeConnectingInternal(checkNotNull(nodeU), checkNotNull(nodeV));
      }
    
      @Override
      public boolean hasEdgeConnecting(EndpointPair<N> endpoints) {
        checkNotNull(endpoints);
        return isOrderingCompatible(endpoints)
            && hasEdgeConnectingInternal(endpoints.nodeU(), endpoints.nodeV());
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Apr 02 14:49:41 GMT 2026
    - 6K bytes
    - Click Count (0)
  2. guava/src/com/google/common/base/Suppliers.java

        final Function<? super F, T> function;
        final Supplier<F> supplier;
    
        SupplierComposition(Function<? super F, T> function, Supplier<F> supplier) {
          this.function = checkNotNull(function);
          this.supplier = checkNotNull(supplier);
        }
    
        @Override
        @ParametricNullness
        public T get() {
          return function.apply(supplier.get());
        }
    
        @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 31 21:24:28 GMT 2026
    - 16.1K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/io/ByteStreams.java

       * @return the number of bytes copied
       * @throws IOException if an I/O error occurs
       */
      @CanIgnoreReturnValue
      public static long copy(InputStream from, OutputStream to) throws IOException {
        checkNotNull(from);
        checkNotNull(to);
        byte[] buf = createBuffer();
        long total = 0;
        while (true) {
          int r = from.read(buf);
          if (r == -1) {
            break;
          }
          to.write(buf, 0, r);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 21:06:42 GMT 2026
    - 31.1K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/primitives/Floats.java

       * @param target the array to search for as a sub-sequence of {@code array}
       */
      public static int indexOf(float[] array, float[] target) {
        checkNotNull(array, "array");
        checkNotNull(target, "target");
        if (target.length == 0) {
          return 0;
        }
    
        outer:
        for (int i = 0; i < array.length - target.length + 1; i++) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 16:38:16 GMT 2026
    - 25.6K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/base/Suppliers.java

        final Function<? super F, T> function;
        final Supplier<F> supplier;
    
        SupplierComposition(Function<? super F, T> function, Supplier<F> supplier) {
          this.function = checkNotNull(function);
          this.supplier = checkNotNull(supplier);
        }
    
        @Override
        @ParametricNullness
        public T get() {
          return function.apply(supplier.get());
        }
    
        @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 31 21:24:28 GMT 2026
    - 16.1K bytes
    - Click Count (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);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 16:38:16 GMT 2026
    - 13.9K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/primitives/Doubles.java

       * @param target the array to search for as a sub-sequence of {@code array}
       */
      public static int indexOf(double[] array, double[] target) {
        checkNotNull(array, "array");
        checkNotNull(target, "target");
        if (target.length == 0) {
          return 0;
        }
    
        outer:
        for (int i = 0; i < array.length - target.length + 1; i++) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 16:38:16 GMT 2026
    - 27.8K bytes
    - Click Count (0)
  8. guava/src/com/google/common/collect/Maps.java

       */
      public static <K extends @Nullable Object, V extends @Nullable Object>
          SortedMapDifference<K, V> difference(
              SortedMap<K, ? extends V> left, Map<? extends K, ? extends V> right) {
        checkNotNull(left);
        checkNotNull(right);
        Comparator<? super K> comparator = orNaturalOrder(left.comparator());
        SortedMap<K, V> onlyOnLeft = newTreeMap(comparator);
        SortedMap<K, V> onlyOnRight = newTreeMap(comparator);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 163.4K bytes
    - Click Count (0)
  9. android/guava/src/com/google/common/collect/Maps.java

       */
      public static <K extends @Nullable Object, V extends @Nullable Object>
          SortedMapDifference<K, V> difference(
              SortedMap<K, ? extends V> left, Map<? extends K, ? extends V> right) {
        checkNotNull(left);
        checkNotNull(right);
        Comparator<? super K> comparator = orNaturalOrder(left.comparator());
        SortedMap<K, V> onlyOnLeft = newTreeMap(comparator);
        SortedMap<K, V> onlyOnRight = newTreeMap(comparator);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Apr 01 17:27:13 GMT 2026
    - 157.6K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/primitives/UnsignedBytes.java

       */
      public static void sort(byte[] array) {
        checkNotNull(array);
        sort(array, 0, array.length);
      }
    
      /**
       * Sorts the array between {@code fromIndex} inclusive and {@code toIndex} exclusive, treating its
       * elements as unsigned bytes.
       *
       * @since 23.1
       */
      public static void sort(byte[] array, int fromIndex, int toIndex) {
        checkNotNull(array);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 16:38:16 GMT 2026
    - 21K bytes
    - Click Count (0)
Back to Top