Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 31 for copyOfRange (0.3 sec)

  1. android/guava/src/com/google/common/primitives/Doubles.java

       * {@code array}, or {@code -1} if there is no such occurrence.
       *
       * <p>More formally, returns the lowest index {@code i} such that {@code Arrays.copyOfRange(array,
       * i, i + target.length)} contains exactly the same elements as {@code target}.
       *
       * <p>Note that this always returns {@code -1} when {@code target} contains {@code NaN}.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 29 15:43:06 GMT 2024
    - 27.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/PreconditionsTest.java

        } else if (params.length == 2) {
          assertThat(throwable).hasMessageThat().isEmpty();
        } else {
          assertThat(throwable)
              .hasMessageThat()
              .isEqualTo(Strings.lenientFormat("", Arrays.copyOfRange(params, 2, params.length)));
        }
      }
    
      /**
       * Returns an array containing parameters for invoking a checkArgument, checkNotNull or checkState
       * method reflectively
       *
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 19.8K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/primitives/ImmutableLongArray.java

        return indexOf(target) >= 0;
      }
    
      /** Returns a new, mutable copy of this array's values, as a primitive {@code long[]}. */
      public long[] toArray() {
        return Arrays.copyOfRange(array, start, end);
      }
    
      /**
       * Returns a new immutable array containing the values in the specified range.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 18.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/primitives/Longs.java

       * {@code array}, or {@code -1} if there is no such occurrence.
       *
       * <p>More formally, returns the lowest index {@code i} such that {@code Arrays.copyOfRange(array,
       * i, i + target.length)} contains exactly the same elements as {@code target}.
       *
       * @param array the array to search for the sequence {@code target}
    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)
  5. android/guava/src/com/google/common/primitives/Ints.java

       * {@code array}, or {@code -1} if there is no such occurrence.
       *
       * <p>More formally, returns the lowest index {@code i} such that {@code Arrays.copyOfRange(array,
       * i, i + target.length)} contains exactly the same elements as {@code target}.
       *
       * @param array the array to search for the sequence {@code target}
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 15 16:12:13 GMT 2024
    - 29.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/reflect/Invokable.java

            if (types.length == rawParamTypes.length
                && rawParamTypes[0] == getDeclaringClass().getEnclosingClass()) {
              // first parameter is the hidden 'this'
              return Arrays.copyOfRange(types, 1, types.length);
            }
          }
          return types;
        }
    
        @Override
        Type[] getGenericExceptionTypes() {
          return constructor.getGenericExceptionTypes();
        }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 18.6K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/primitives/ImmutableIntArray.java

      public boolean contains(int target) {
        return indexOf(target) >= 0;
      }
    
      /** Returns a new, mutable copy of this array's values, as a primitive {@code int[]}. */
      public int[] toArray() {
        return Arrays.copyOfRange(array, start, end);
      }
    
      /**
       * Returns a new immutable array containing the values in the specified range.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 18.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/primitives/ImmutableDoubleArray.java

        return indexOf(target) >= 0;
      }
    
      /** Returns a new, mutable copy of this array's values, as a primitive {@code double[]}. */
      public double[] toArray() {
        return Arrays.copyOfRange(array, start, end);
      }
    
      /**
       * Returns a new immutable array containing the values in the specified range.
       *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 19.6K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/io/ByteSource.java

          return length;
        }
    
        @Override
        public Optional<Long> sizeIfKnown() {
          return Optional.of((long) length);
        }
    
        @Override
        public byte[] read() {
          return Arrays.copyOfRange(bytes, offset, offset + length);
        }
    
        @SuppressWarnings("CheckReturnValue") // it doesn't matter what processBytes returns here
        @Override
        @ParametricNullness
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed May 17 14:35:11 GMT 2023
    - 26.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/CycleDetectingLockFactory.java

              setStackTrace(EMPTY_STACK_TRACE);
              break;
            }
            if (!EXCLUDED_CLASS_NAMES.contains(origStackTrace[i].getClassName())) {
              setStackTrace(Arrays.copyOfRange(origStackTrace, i, n));
              break;
            }
          }
        }
      }
    
      /**
       * Represents a detected cycle in lock acquisition ordering. The exception includes a causal chain
    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)
Back to top