Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for Murray (0.18 sec)

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

        private final T[] array;
    
        ArrayItr(T[] array, int position) {
          super(array.length, position);
          this.array = array;
        }
    
        @Override
        @ParametricNullness
        protected T get(int index) {
          return array[index];
        }
      }
    
      /**
       * Returns an iterator containing only {@code value}.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 51.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java

        private int[] counts;
    
        /*
         * The number of used positions in the elements array.  We deduplicate periodically, so this
         * may fluctuate up and down.
         */
        private int length;
    
        // True if we just called build() and the elements array is being used by a created ISM, meaning
        // we shouldn't modify that array further.
        private boolean forceCopyElements;
    
        /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 35.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Preconditions.java

       */
    
      /**
       * Ensures that {@code index} specifies a valid <i>element</i> in an array, list or string of size
       * {@code size}. An element index may range from zero, inclusive, to {@code size}, exclusive.
       *
       * @param index a user-supplied index identifying an element of an array, list or string
       * @param size the size of that array, list or string
       * @return the value of {@code index}
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Apr 11 11:52:14 GMT 2024
    - 52.9K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/reflect/Types.java

        // TODO(user): This is not the most efficient way to handle generic
        // arrays, but is there another way to extract the array class in a
        // non-hacky way (i.e. using String value class names- "[L...")?
        return Array.newInstance(componentType, 0).getClass();
      }
    
      // TODO(benyu): Once behavior is the same for all Java versions we support, delete this.
      enum JavaVersion {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

        }
        if (type.isArray()) {
          TypeToken<?> componentType = requireNonNull(type.getComponentType());
          Object array = Array.newInstance(componentType.getRawType(), 1);
          Array.set(array, 0, generate(componentType));
          return array;
        }
        Method emptyGenerate = EMPTY_GENERATORS.get(rawType);
        if (emptyGenerate != null) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 28K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/Iterables.java

      static <T extends @Nullable Object> T[] toArray(Iterable<? extends T> iterable, T[] array) {
        Collection<? extends T> collection = castOrCopyToCollection(iterable);
        return collection.toArray(array);
      }
    
      /**
       * Copies an iterable's elements into an array.
       *
       * @param iterable the iterable to copy
       * @return a newly-allocated array into which all the elements of the iterable have been copied
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

          if (!original.isPartialView()) {
            return original;
          }
        }
        @SuppressWarnings("unchecked") // elements only contains E's; it's safe.
        E[] array = (E[]) Iterables.toArray(elements);
        return construct(comparator, array.length, array);
      }
    
      /**
       * Returns an immutable sorted set containing the given elements sorted by the given {@code
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 36.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/hash/Hashing.java

      }
    
      /**
       * Returns a hash function implementing the Message Authentication Code (MAC) algorithm, using the
       * MD5 (128 hash bits) hash function and a {@link SecretKeySpec} created from the given byte array
       * and the MD5 algorithm.
       *
       * <p>If you are designing a new system that needs HMAC, prefer {@link #hmacSha256} or other
       * future-proof algorithms <a
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 09 00:37:15 GMT 2024
    - 29.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ImmutableSortedMap.java

          Iterable<? extends Entry<? extends K, ? extends V>> entries) {
        // "adding" type params to an array of a raw type should be safe as
        // long as no one can ever cast that same array instance back to a
        // raw type.
        @SuppressWarnings("unchecked")
        Entry<K, V>[] entryArray = (Entry[]) Iterables.toArray(entries, EMPTY_ENTRY_ARRAY);
        return fromEntries(comparator, sameComparator, entryArray, entryArray.length);
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 53.2K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableMap.java

          }
          /*
           * If entries is full, then this implementation may end up using the entries array
           * directly and writing over the entry objects with non-terminal entries, but this is
           * safe; if this Builder is used further, it will grow the entries array (so it can't
           * affect the original array), and future build() calls will always copy any entry
           * objects that cannot be safely reused.
           */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 41.7K bytes
    - Viewed (0)
Back to top