Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 481 - 490 of 1,610 for instanceof (0.06 seconds)

  1. guava-testlib/src/com/google/common/testing/EqualsTester.java

              item.hashCode(),
              item.hashCode());
          if (!(item instanceof String)) {
            assertTrue(
                item + " must not be Object#equals to its Object#toString representation",
                !item.equals(item.toString()));
          }
        }
      }
    
      /**
       * Class used to test whether equals() correctly handles an instance of an incompatible class.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 6.1K bytes
    - Click Count (0)
  2. guava/src/com/google/common/collect/Tables.java

        // needed for serialization
        AbstractCell() {}
    
        @Override
        public boolean equals(@Nullable Object obj) {
          if (obj == this) {
            return true;
          }
          if (obj instanceof Cell) {
            Cell<?, ?, ?> other = (Cell<?, ?, ?>) obj;
            return Objects.equals(getRowKey(), other.getRowKey())
                && Objects.equals(getColumnKey(), other.getColumnKey())
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 25.3K bytes
    - Click Count (0)
  3. android/guava-testlib/src/com/google/common/testing/EqualsTester.java

              item.hashCode(),
              item.hashCode());
          if (!(item instanceof String)) {
            assertTrue(
                item + " must not be Object#equals to its Object#toString representation",
                !item.equals(item.toString()));
          }
        }
      }
    
      /**
       * Class used to test whether equals() correctly handles an instance of an incompatible class.
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 6.1K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/util/concurrent/AggregateFuture.java

            }
          }
        }
    
        /*
         * TODO(cpovirk): Should whenAllComplete().call*() log errors, too? Currently, it doesn't call
         * handleException() at all.
         */
        if (throwable instanceof Error) {
          /*
           * TODO(cpovirk): Do we really want to log this if we called setException(throwable) and it
           * returned true? This was intentional (CL 46470009), but it seems odd compared to how we
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 16K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/collect/ImmutableBiMap.java

       *     key
       * @throws NullPointerException if any key or value in {@code map} is null
       */
      public static <K, V> ImmutableBiMap<K, V> copyOf(Map<? extends K, ? extends V> map) {
        if (map instanceof ImmutableBiMap) {
          @SuppressWarnings("unchecked") // safe since map is not writable
          ImmutableBiMap<K, V> bimap = (ImmutableBiMap<K, V>) map;
          // TODO(lowasser): if we need to make a copy of a BiMap because the
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 22.2K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/graph/StandardNetwork.java

        // methods that access the same node(s) repeatedly, such as Graphs.removeEdgesConnecting().
        this.nodeConnections =
            (nodeConnections instanceof TreeMap)
                ? new MapRetrievalCache<N, NetworkConnections<N, E>>(nodeConnections)
                : new MapIteratorCache<N, NetworkConnections<N, E>>(nodeConnections);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Apr 02 14:49:41 GMT 2026
    - 6.9K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/collect/ImmutableClassToInstanceMap.java

       * @throws NullPointerException if any key or value in {@code map} is null
       * @throws ClassCastException if any value is not an instance of the type specified by its key
       */
      public static <B, S extends B> ImmutableClassToInstanceMap<B> copyOf(
          Map<? extends Class<? extends S>, ? extends S> map) {
        if (map instanceof ImmutableClassToInstanceMap) {
          @SuppressWarnings("rawtypes") // JDT-based J2KT Java frontend does not permit the direct cast
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 21:07:18 GMT 2025
    - 7K bytes
    - Click Count (0)
  8. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        Iterator<Integer> source = asList(1, 2, 3).iterator();
        Iterator<List<Integer>> partitions = Iterators.partition(source, 2);
        assertTrue(partitions.next() instanceof RandomAccess);
        assertTrue(partitions.next() instanceof RandomAccess);
      }
    
      public void testPaddedPartition_badSize() {
        Iterator<Integer> source = singletonIterator(1);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Fri Mar 13 13:01:07 GMT 2026
    - 57.3K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/script/groovy/GroovyEngine.java

                if (runtime != null) {
                    final Object job = runtime.getParameterMap().get(Constants.SCHEDULED_JOB);
                    if (job instanceof ScheduledJob) {
                        return (ScheduledJob) job;
                    }
                }
            } catch (final Exception e) {
                if (logger.isDebugEnabled()) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 14:36:23 GMT 2026
    - 11.9K bytes
    - Click Count (0)
  10. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableBiMap.java

        }
    
        @Override
        ImmutableBiMap<K, V> buildJdkBacked() {
          return build();
        }
      }
    
      public static <K, V> ImmutableBiMap<K, V> copyOf(Map<? extends K, ? extends V> map) {
        if (map instanceof ImmutableBiMap) {
          @SuppressWarnings("unchecked") // safe since map is not writable
          ImmutableBiMap<K, V> bimap = (ImmutableBiMap<K, V>) map;
          return bimap;
        }
    
        if (map.isEmpty()) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Aug 06 18:32:41 GMT 2025
    - 7.1K bytes
    - Click Count (0)
Back to Top