Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 231 for iterating (0.24 sec)

  1. guava-tests/test/com/google/common/util/concurrent/AtomicLongMapTest.java

        assertEquals(ITERATIONS / 2, map.size());
        assertEquals(nonZeroKeys, map.asMap().keySet());
      }
    
      public void testClear() {
        AtomicLongMap<Object> map = AtomicLongMap.create();
        for (int i = 0; i < ITERATIONS; i++) {
          map.put(new Object(), i);
        }
        assertEquals(ITERATIONS, map.size());
    
        map.clear();
        assertEquals(0, map.size());
        assertTrue(map.isEmpty());
      }
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 17.4K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/util/concurrent/AtomicLongMapTest.java

        assertEquals(ITERATIONS / 2, map.size());
        assertEquals(nonZeroKeys, map.asMap().keySet());
      }
    
      public void testClear() {
        AtomicLongMap<Object> map = AtomicLongMap.create();
        for (int i = 0; i < ITERATIONS; i++) {
          map.put(new Object(), i);
        }
        assertEquals(ITERATIONS, map.size());
    
        map.clear();
        assertEquals(0, map.size());
        assertTrue(map.isEmpty());
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 17.4K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/SampleElements.java

        public Chars() {
          // elements aren't sorted, to better test SortedSet iteration ordering
          super('b', 'a', 'c', 'd', 'e');
        }
      }
    
      public static class Enums extends SampleElements<AnEnum> {
        public Enums() {
          // elements aren't sorted, to better test SortedSet iteration ordering
          super(AnEnum.B, AnEnum.A, AnEnum.C, AnEnum.D, AnEnum.E);
        }
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  4. android/guava-testlib/src/com/google/common/collect/testing/SampleElements.java

        public Chars() {
          // elements aren't sorted, to better test SortedSet iteration ordering
          super('b', 'a', 'c', 'd', 'e');
        }
      }
    
      public static class Enums extends SampleElements<AnEnum> {
        public Enums() {
          // elements aren't sorted, to better test SortedSet iteration ordering
          super(AnEnum.B, AnEnum.A, AnEnum.C, AnEnum.D, AnEnum.E);
        }
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 4.1K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/BiMap.java

      V forcePut(@ParametricNullness K key, @ParametricNullness V value);
    
      // Bulk Operations
    
      /**
       * {@inheritDoc}
       *
       * <p><b>Warning:</b> the results of calling this method may vary depending on the iteration order
       * of {@code map}.
       *
       * @throws IllegalArgumentException if an attempt to {@code put} any entry fails. Note that some
       *     map entries may have been added to the bimap before the exception was thrown.
       */
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sat Jun 17 14:40:53 GMT 2023
    - 4.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/LinkedListMultimap.java

     * }</pre>
     *
     * ... the iteration order for {@link #keys()} is {@code [key1, key2, key1]}, and similarly for
     * {@link #entries()}. Unlike {@link LinkedHashMultimap}, the iteration order is kept consistent
     * between keys, entries and values. For example, calling:
     *
     * <pre>{@code
     * multimap.remove(key1, foo);
     * }</pre>
     *
     * <p>changes the entries iteration order to {@code [key2=bar, key1=baz]} and the key iteration
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 27.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/HashMultisetTest.java

        assertEquals(2, copy.size());
        assertSame(copy, copy.iterator().next().member);
      }
    
      /*
       * The behavior of toString() and iteration is tested by LinkedHashMultiset,
       * which shares a lot of code with HashMultiset and has deterministic
       * iteration order.
       */
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/TopKSelector.java

          } else if (pivotNewIndex < k) {
            left = Math.max(pivotNewIndex, left + 1);
            minThresholdPosition = pivotNewIndex;
          } else {
            break;
          }
          iterations++;
          if (iterations >= maxIterations) {
            @SuppressWarnings("nullness") // safe because we pass sort() a range that contains real Ts
            T[] castBuffer = (T[]) buffer;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/math/package-info.java

     * or implied. See the License for the specific language governing permissions and limitations under
     * the License.
     */
    
    /**
     * Arithmetic functions operating on primitive values and on {@link java.math.BigInteger} and {@link
     * java.math.BigDecimal} instances.
     *
     * <p>This package is a part of the open-source <a href="https://github.com/google/guava">Guava</a>
     * library.
     *
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Jun 23 19:57:03 GMT 2023
    - 1.2K bytes
    - Viewed (0)
  10. doc/next/6-stdlib/99-minor/path/filepath/57151.md

    The new [Localize] function safely converts a slash-separated
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Apr 12 20:57:18 GMT 2024
    - 98 bytes
    - Viewed (0)
Back to top