Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 803 for instanceOf (0.2 sec)

  1. android/guava/src/com/google/common/graph/DirectedGraphConnections.java

          @Override
          public boolean equals(@CheckForNull Object that) {
            if (that instanceof Pred) {
              return this.node.equals(((Pred<?>) that).node);
            } else {
              return false;
            }
          }
    
          @Override
          public int hashCode() {
            // Adding the class hashCode to avoid a clash with Succ instances.
            return Pred.class.hashCode() + node.hashCode();
          }
        }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 18K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/reflect/TypeResolver.java

        checkNotNull(type);
        if (type instanceof TypeVariable) {
          return typeTable.resolve((TypeVariable<?>) type);
        } else if (type instanceof ParameterizedType) {
          return resolveParameterizedType((ParameterizedType) type);
        } else if (type instanceof GenericArrayType) {
          return resolveGenericArrayType((GenericArrayType) type);
        } else if (type instanceof WildcardType) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 24.2K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/base/PredicatesTest.java

            .addEqualityGroup(Predicates.instanceOf(Number.class))
            .addEqualityGroup(Predicates.instanceOf(Float.class))
            .testEquals();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // Predicates.instanceOf, SerializableTester
      public void testIsInstanceOf_serialization() {
        checkSerialization(Predicates.instanceOf(Integer.class));
      }
    
      @J2ktIncompatible
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 32.4K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/base/PredicatesTest.java

            .addEqualityGroup(Predicates.instanceOf(Number.class))
            .addEqualityGroup(Predicates.instanceOf(Float.class))
            .testEquals();
      }
    
      @J2ktIncompatible
      @GwtIncompatible // Predicates.instanceOf, SerializableTester
      public void testIsInstanceOf_serialization() {
        checkSerialization(Predicates.instanceOf(Integer.class));
      }
    
      @J2ktIncompatible
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 32.4K bytes
    - Viewed (0)
  5. guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java

        @Override
        public boolean equals(@Nullable Object obj) {
          return obj instanceof ConstructorParameterSingleValue;
        }
    
        @Override
        public int hashCode() {
          return 1;
        }
    
        public static class Singleton {
          public static final Singleton INSTANCE = new Singleton();
    
          private Singleton() {}
        }
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Nov 16 15:12:31 GMT 2023
    - 36.3K bytes
    - Viewed (0)
  6. guava/src/com/google/common/base/MoreObjects.java

          // Put types estimated to be the most frequent first.
          if (value instanceof CharSequence) {
            return ((CharSequence) value).length() == 0;
          } else if (value instanceof Collection) {
            return ((Collection<?>) value).isEmpty();
          } else if (value instanceof Map) {
            return ((Map<?, ?>) value).isEmpty();
          } else if (value instanceof java.util.Optional) {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Oct 13 14:11:58 GMT 2023
    - 15.9K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/base/Predicates.java

       * example, {@code instanceOf(ArrayList.class)} will yield different results for the two equal
       * instances {@code Lists.newArrayList(1)} and {@code Arrays.asList(1)}.
       */
      @GwtIncompatible // Class.isInstance
      public static <T extends @Nullable Object> Predicate<T> instanceOf(Class<?> clazz) {
        return new InstanceOfPredicate<>(clazz);
      }
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/SynchronizedNavigableMapTest.java

        assertTrue(descendingKeySet instanceof SynchronizedNavigableSet);
        assertSame(mutex, ((SynchronizedNavigableSet<String>) descendingKeySet).mutex);
      }
    
      public void testDescendingMap() {
        NavigableMap<String, Integer> map = create();
        NavigableMap<String, Integer> descendingMap = map.descendingMap();
        assertTrue(descendingMap instanceof SynchronizedNavigableMap);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 12.2K bytes
    - Viewed (0)
  9. guava/src/com/google/common/base/Predicates.java

       * example, {@code instanceOf(ArrayList.class)} will yield different results for the two equal
       * instances {@code Lists.newArrayList(1)} and {@code Arrays.asList(1)}.
       */
      @GwtIncompatible // Class.isInstance
      public static <T extends @Nullable Object> Predicate<T> instanceOf(Class<?> clazz) {
        return new InstanceOfPredicate<>(clazz);
      }
    
      /**
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.1K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/ImmutableIntArray.java

        }
    
        @Override
        public int indexOf(@CheckForNull Object target) {
          return target instanceof Integer ? parent.indexOf((Integer) target) : -1;
        }
    
        @Override
        public int lastIndexOf(@CheckForNull Object target) {
          return target instanceof Integer ? parent.lastIndexOf((Integer) target) : -1;
        }
    
        @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 16:34:24 GMT 2023
    - 18.9K bytes
    - Viewed (0)
Back to top