Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 42 for modifiable (0.27 sec)

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

        }
      }
    
      private <T extends @Nullable Object> void actsLikeIteratorHelper(final List<T> list) {
        // Check with modifiable copies of the list
        new PeekingIteratorTester<T>(list).test();
    
        // Check with unmodifiable lists
        new IteratorTester<T>(
            list.size() * 2 + 2, UNMODIFIABLE, list, IteratorTester.KnownOrder.KNOWN_ORDER) {
          @Override
          protected Iterator<T> newTargetIterator() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/PeekingIteratorTest.java

        }
      }
    
      private <T extends @Nullable Object> void actsLikeIteratorHelper(final List<T> list) {
        // Check with modifiable copies of the list
        new PeekingIteratorTester<T>(list).test();
    
        // Check with unmodifiable lists
        new IteratorTester<T>(
            list.size() * 2 + 2, UNMODIFIABLE, list, IteratorTester.KnownOrder.KNOWN_ORDER) {
          @Override
          protected Iterator<T> newTargetIterator() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/MultimapsTest.java

        assertUnmodifiableIterableInTandem(
            unmodifiable.asMap().entrySet(), multimap.asMap().entrySet());
    
        assertEquals(multimap.toString(), unmodifiable.toString());
        assertEquals(multimap.hashCode(), unmodifiable.hashCode());
        assertEquals(multimap, unmodifiable);
    
        assertThat(unmodifiable.asMap().get("bar")).containsExactly(5, -1);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 39.1K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/IterablesTest.java

        }
      }
    
      public void testSkip_allOfMutableList_modifiable() {
        List<String> list = newArrayList("a", "b");
        Iterator<String> iterator = skip(list, 2).iterator();
        try {
          iterator.remove();
          fail("Expected IllegalStateException");
        } catch (IllegalStateException expected) {
        }
      }
    
      public void testSkip_allOfImmutableList_modifiable() {
        List<String> list = ImmutableList.of("a", "b");
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 46K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        protected EmptyIteratorTester() {
          super(3, MODIFIABLE, Collections.<Integer>emptySet(), IteratorTester.KnownOrder.KNOWN_ORDER);
        }
      }
    
      @GwtIncompatible // Only used by @GwtIncompatible code
      private abstract static class SingletonIteratorTester extends IteratorTester<Integer> {
        protected SingletonIteratorTester() {
          super(3, MODIFIABLE, singleton(1), IteratorTester.KnownOrder.KNOWN_ORDER);
        }
      }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 56.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/MultimapsTest.java

        assertUnmodifiableIterableInTandem(
            unmodifiable.asMap().entrySet(), multimap.asMap().entrySet());
    
        assertEquals(multimap.toString(), unmodifiable.toString());
        assertEquals(multimap.hashCode(), unmodifiable.hashCode());
        assertEquals(multimap, unmodifiable);
    
        assertThat(unmodifiable.asMap().get("bar")).containsExactly(5, -1);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 42.2K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/IterablesTest.java

        }
      }
    
      public void testSkip_allOfMutableList_modifiable() {
        List<String> list = newArrayList("a", "b");
        Iterator<String> iterator = skip(list, 2).iterator();
        try {
          iterator.remove();
          fail("Expected IllegalStateException");
        } catch (IllegalStateException expected) {
        }
      }
    
      public void testSkip_allOfImmutableList_modifiable() {
        List<String> list = ImmutableList.of("a", "b");
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 47.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/IteratorsTest.java

        protected EmptyIteratorTester() {
          super(3, MODIFIABLE, Collections.<Integer>emptySet(), IteratorTester.KnownOrder.KNOWN_ORDER);
        }
      }
    
      @GwtIncompatible // Only used by @GwtIncompatible code
      private abstract static class SingletonIteratorTester extends IteratorTester<Integer> {
        protected SingletonIteratorTester() {
          super(3, MODIFIABLE, singleton(1), IteratorTester.KnownOrder.KNOWN_ORDER);
        }
      }
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 55.7K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/ArrayListMultimap.java

     * value and the old value.
     *
     * <p>Keys and values may be null. All optional multimap methods are supported, and all returned
     * views are modifiable.
     *
     * <p>The lists returned by {@link #get}, {@link #removeAll}, and {@link #replaceValues} all
     * implement {@link java.util.RandomAccess}.
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 6.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/TreeMultimap.java

     *
     * <p>Null keys and values are permitted (provided, of course, that the respective comparators
     * support them). All optional multimap methods are supported, and all returned views are
     * modifiable.
     *
     * <p>This class is not threadsafe when any concurrent operations update the multimap. Concurrent
     * read operations will work correctly. To allow concurrent update operations, wrap your multimap
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Sat Mar 09 00:21:17 GMT 2024
    - 8.7K bytes
    - Viewed (0)
Back to top