Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for anyIterableType (0.11 sec)

  1. android/guava-tests/test/com/google/common/reflect/ImmutableTypeToInstanceMapTest.java

            IllegalArgumentException.class, () -> map.getInstance(this.<Number>anyIterableType()));
      }
    
      public void testPut_containsTypeVariable() {
        ImmutableTypeToInstanceMap.Builder<Iterable<Integer>> builder =
            ImmutableTypeToInstanceMap.builder();
        assertThrows(
            IllegalArgumentException.class,
            () -> builder.put(this.<Integer>anyIterableType(), ImmutableList.of(1)));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/reflect/MutableTypeToInstanceMapTest.java

            IllegalArgumentException.class, () -> map.getInstance(this.<Number>anyIterableType()));
      }
    
      public void testPutInstance_withTypeVariable() {
        assertThrows(
            IllegalArgumentException.class,
            () -> map.putInstance(this.<Integer>anyIterableType(), ImmutableList.of(1)));
      }
    
      private <T> TypeToken<Iterable<T>> anyIterableType() {
        return new TypeToken<Iterable<T>>() {};
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 17:15:24 UTC 2024
    - 7.9K bytes
    - Viewed (0)
Back to top