Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 461 for Murray (0.16 sec)

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

          ImmutableList<Cell<R, C, V>> cellList,
          ImmutableSet<R> rowSpace,
          ImmutableSet<C> columnSpace) {
        @SuppressWarnings("unchecked")
        @Nullable
        V[][] array = (@Nullable V[][]) new Object[rowSpace.size()][columnSpace.size()];
        this.values = array;
        this.rowKeyToIndex = Maps.indexMap(rowSpace);
        this.columnKeyToIndex = Maps.indexMap(columnSpace);
        rowCounts = new int[rowKeyToIndex.size()];
    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. guava/src/com/google/common/base/SmallCharMatcher.java

      // of dependencies.
    
      // Represents how tightly we can pack things, as a maximum.
      private static final double DESIRED_LOAD_FACTOR = 0.5;
    
      /**
       * Returns an array size suitable for the backing array of a hash table that uses open addressing
       * with linear probing in its implementation. The returned size is the smallest power of two that
       * can hold setSize elements with the desired load factor.
       */
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 4.5K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/collect/ForwardingNavigableSetTest.java

          return standardRetainAll(collection);
        }
    
        @Override
        public Object[] toArray() {
          return standardToArray();
        }
    
        @Override
        public <T> T[] toArray(T[] array) {
          return standardToArray(array);
        }
    
        @Override
        public String toString() {
          return standardToString();
        }
    
        @Override
        public SortedSet<T> subSet(T fromElement, T toElement) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 6.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-testlib/src/com/google/common/collect/testing/testers/ListAddAllAtIndexTester.java

        assertTrue("addAll(n, containsNull) should return true", getList().addAll(0, containsNull));
        /*
         * We need (E) to force interpretation of null as the single element of a
         * varargs array, not the array itself
         */
        expectAdded(0, (E) null);
      }
    
      @ListFeature.Require(SUPPORTS_ADD_WITH_INDEX)
      @CollectionFeature.Require(absent = ALLOWS_NULL_VALUES)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 6.5K bytes
    - Viewed (1)
  7. android/guava-tests/test/com/google/common/io/CharSequenceReaderTest.java

        }
        assertFullyRead(reader);
    
        // read all to one array
        reader = new CharSequenceReader(charSequence);
        char[] buf = new char[expected.length()];
        assertEquals(expected.length() == 0 ? -1 : expected.length(), reader.read(buf));
        assertEquals(expected, new String(buf));
        assertFullyRead(reader);
    
        // read in chunks to fixed array
        reader = new CharSequenceReader(charSequence);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 6.5K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/base/PredicatesTest.java

      }
    
      public void testAnd_arrayDefensivelyCopied() {
        @SuppressWarnings("unchecked") // generic arrays
        Predicate<Object>[] array = (Predicate<Object>[]) new Predicate<?>[] {Predicates.alwaysFalse()};
        Predicate<Object> predicate = Predicates.and(array);
        assertFalse(predicate.apply(1));
        array[0] = Predicates.alwaysTrue();
        assertFalse(predicate.apply(1));
      }
    
      public void testAnd_listDefensivelyCopied() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 32.4K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/hash/FarmHashFingerprint64Test.java

      }
    
      /** Convenience method to compute a fingerprint on a full bytes array. */
      private static long fingerprint(byte[] bytes) {
        return fingerprint(bytes, bytes.length);
      }
    
      /** Convenience method to compute a fingerprint on a subset of a byte array. */
      private static long fingerprint(byte[] bytes, int length) {
        return HASH_FN.hashBytes(bytes, 0, length).asLong();
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Jun 26 15:56:47 GMT 2017
    - 6.2K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/math/PairedStatsTest.java

      }
    
      public void testToByteArrayAndFromByteArrayRoundTrip() {
        for (PairedStats pairedStats : ALL_PAIRED_STATS) {
          byte[] pairedStatsByteArray = pairedStats.toByteArray();
    
          // Round trip to byte array and back
          assertThat(PairedStats.fromByteArray(pairedStatsByteArray)).isEqualTo(pairedStats);
        }
      }
    
      public void testFromByteArray_withNullInputThrowsNullPointerException() {
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 14K bytes
    - Viewed (0)
Back to top