Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for getUpperBounds (0.05 sec)

  1. android/guava/src/com/google/common/reflect/Types.java

        @Override
        public Type[] getUpperBounds() {
          return toArray(upperBounds);
        }
    
        @Override
        public boolean equals(@Nullable Object obj) {
          if (obj instanceof WildcardType) {
            WildcardType that = (WildcardType) obj;
            return lowerBounds.equals(Arrays.asList(that.getLowerBounds()))
                && upperBounds.equals(Arrays.asList(that.getUpperBounds()));
          }
          return false;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Oct 31 19:34:24 UTC 2025
    - 24.3K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/reflect/TypeResolver.java

              return; // okay to say <?> is anything
            }
            WildcardType toWildcardType = (WildcardType) to;
            Type[] fromUpperBounds = fromWildcardType.getUpperBounds();
            Type[] toUpperBounds = toWildcardType.getUpperBounds();
            Type[] fromLowerBounds = fromWildcardType.getLowerBounds();
            Type[] toLowerBounds = toWildcardType.getLowerBounds();
            checkArgument(
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 23 22:30:05 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  3. guava/src/com/google/common/reflect/TypeResolver.java

              return; // okay to say <?> is anything
            }
            WildcardType toWildcardType = (WildcardType) to;
            Type[] fromUpperBounds = fromWildcardType.getUpperBounds();
            Type[] toUpperBounds = toWildcardType.getUpperBounds();
            Type[] fromLowerBounds = fromWildcardType.getLowerBounds();
            Type[] toLowerBounds = toWildcardType.getLowerBounds();
            checkArgument(
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Sep 23 22:30:05 UTC 2025
    - 25.3K bytes
    - Viewed (0)
  4. guava/src/com/google/common/reflect/Types.java

        @Override
        public Type[] getUpperBounds() {
          return toArray(upperBounds);
        }
    
        @Override
        public boolean equals(@Nullable Object obj) {
          if (obj instanceof WildcardType) {
            WildcardType that = (WildcardType) obj;
            return lowerBounds.equals(Arrays.asList(that.getLowerBounds()))
                && upperBounds.equals(Arrays.asList(that.getUpperBounds()));
          }
          return false;
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Fri Oct 31 19:34:24 UTC 2025
    - 24.3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/reflect/TypesTest.java

        assertThat(actual.getLowerBounds())
            .asList()
            .containsExactlyElementsIn(asList(expected.getLowerBounds()))
            .inOrder();
        assertThat(actual.getUpperBounds())
            .asList()
            .containsExactlyElementsIn(asList(expected.getUpperBounds()))
            .inOrder();
      }
    
      private static class WithTypeVariable {
    
        @SuppressWarnings("unused")
        <T> void withoutBound(List<T> list) {}
    
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Tue Feb 11 19:03:19 UTC 2025
    - 15.4K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/lang/GenericsUtil.java

            return switch (type) {
            case Class<?> clazz -> clazz;
            case ParameterizedType paramType -> getRawClass(paramType.getRawType());
            case WildcardType wildcard -> getRawClass(wildcard.getUpperBounds()[0]);
            case GenericArrayType arrayType -> {
                Class<?> rawClass = getRawClass(arrayType.getGenericComponentType());
                yield Array.newInstance(rawClass, 0).getClass();
            }
    Registered: Sat Dec 20 08:55:33 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 23.4K bytes
    - Viewed (0)
Back to top