Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 461 for Murray (0.13 sec)

  1. android/guava-tests/test/com/google/common/collect/UnmodifiableIteratorTest.java

      @SuppressWarnings("DoNotCall")
      public void testRemove() {
        final String[] array = {"a", "b", "c"};
    
        Iterator<String> iterator =
            new UnmodifiableIterator<String>() {
              int i;
    
              @Override
              public boolean hasNext() {
                return i < array.length;
              }
    
              @Override
              public String next() {
                if (!hasNext()) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/escape/ArrayBasedUnicodeEscaper.java

    /**
     * A {@link UnicodeEscaper} that uses an array to quickly look up replacement characters for a given
     * code point. An additional safe range is provided that determines whether code points without
     * specific replacements are to be considered safe and left unescaped or should be escaped in a
     * general way.
     *
     * <p>A good example of usage of this class is for HTML escaping where the replacement array
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 8.5K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/TestEnumSetGenerator.java

        return new Enums();
      }
    
      @Override
      public Set<AnEnum> create(Object... elements) {
        AnEnum[] array = new AnEnum[elements.length];
        int i = 0;
        for (Object e : elements) {
          array[i++] = (AnEnum) e;
        }
        return create(array);
      }
    
      protected abstract Set<AnEnum> create(AnEnum[] elements);
    
      @Override
      public AnEnum[] createArray(int length) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 1.7K bytes
    - Viewed (0)
  4. guava-testlib/src/com/google/common/collect/testing/TestUnhashableCollectionGenerator.java

        return new Unhashables();
      }
    
      @Override
      public T create(Object... elements) {
        UnhashableObject[] array = createArray(elements.length);
        int i = 0;
        for (Object e : elements) {
          array[i++] = (UnhashableObject) e;
        }
        return create(array);
      }
    
      /**
       * Creates a new collection containing the given elements; implement this method instead of {@link
       * #create(Object...)}.
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  5. guava-tests/benchmark/com/google/common/hash/HashCodeBenchmark.java

     *
     * <ul>
     *   <li>size: the length of the byte array to hash
     *   <li>whereToDiffer: where in the array the bytes should differ
     *   <li>equalsImpl: which implementation of array equality to use
     * </ul>
     *
     * <p><b>Important note:</b> the primary goal of this benchmark is to ensure that varying {@code
     * whereToDiffer} produces no observable change in performance. We want to make sure that the array
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.9K bytes
    - Viewed (0)
  6. android/guava-tests/benchmark/com/google/common/hash/HashCodeBenchmark.java

     *
     * <ul>
     *   <li>size: the length of the byte array to hash
     *   <li>whereToDiffer: where in the array the bytes should differ
     *   <li>equalsImpl: which implementation of array equality to use
     * </ul>
     *
     * <p><b>Important note:</b> the primary goal of this benchmark is to ensure that varying {@code
     * whereToDiffer} produces no observable change in performance. We want to make sure that the array
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Dec 04 17:37:03 GMT 2017
    - 3.9K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/TestStringSetGenerator.java

        return new Strings();
      }
    
      @Override
      public Set<String> create(Object... elements) {
        String[] array = new String[elements.length];
        int i = 0;
        for (Object e : elements) {
          array[i++] = (String) e;
        }
        return create(array);
      }
    
      protected abstract Set<String> create(String[] elements);
    
      @Override
      public String[] createArray(int length) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/TestIntegerSetGenerator.java

        return new Ints();
      }
    
      @Override
      public Set<Integer> create(Object... elements) {
        Integer[] array = new Integer[elements.length];
        int i = 0;
        for (Object e : elements) {
          array[i++] = (Integer) e;
        }
        return create(array);
      }
    
      protected abstract Set<Integer> create(Integer[] elements);
    
      @Override
      public Integer[] createArray(int length) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 2.1K bytes
    - Viewed (0)
  9. guava/src/com/google/common/base/Strings.java

          throw new ArrayIndexOutOfBoundsException("Required array size too large: " + longSize);
        }
    
        final char[] array = new char[size];
        string.getChars(0, len, array, 0);
        int n;
        for (n = len; n < size - n; n <<= 1) {
          System.arraycopy(array, 0, array, n, n);
        }
        System.arraycopy(array, 0, array, n, size - n);
        return new String(array);
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Sep 17 20:47:03 GMT 2021
    - 12.6K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/AtomicDoubleArrayTest.java

      }
    
      /** constructor creates array of given size with all elements zero */
      public void testConstructor() {
        AtomicDoubleArray aa = new AtomicDoubleArray(SIZE);
        for (int i = 0; i < SIZE; i++) {
          assertBitEquals(0.0, aa.get(i));
        }
      }
    
      /** constructor with null array throws NPE */
      public void testConstructor2NPE() {
        double[] a = null;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 10K bytes
    - Viewed (0)
Back to top