Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 301 - 310 of 1,460 for instanceOf (0.08 seconds)

  1. android/guava/src/com/google/common/collect/ImmutableMapEntrySet.java

      abstract ImmutableMap<K, V> map();
    
      @Override
      public int size() {
        return map().size();
      }
    
      @Override
      public boolean contains(@Nullable Object object) {
        if (object instanceof Entry) {
          Entry<?, ?> entry = (Entry<?, ?>) object;
          V value = map().get(entry.getKey());
          return value != null && value.equals(entry.getValue());
        }
        return false;
      }
    
      @Override
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 3.7K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/graph/IncidentEdgeSet.java

        } else {
          return graph.adjacentNodes(node).size();
        }
      }
    
      @Override
      public boolean contains(@Nullable Object obj) {
        if (!(obj instanceof EndpointPair)) {
          return false;
        }
        EndpointPair<?> endpointPair = (EndpointPair<?>) obj;
    
        if (graph.isDirected() != endpointPair.isOrdered()) {
          return false;
        }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Oct 07 15:57:03 GMT 2025
    - 3.3K bytes
    - Click Count (0)
  3. guava/src/com/google/common/collect/JdkBackedImmutableMultiset.java

          Entry<E> entry = entriesArray[i];
          int count = entry.getCount();
          size += count;
          E element = checkNotNull(entry.getElement());
          delegateMap.put(element, count);
          if (!(entry instanceof Multisets.ImmutableEntry)) {
            entriesArray[i] = Multisets.immutableEntry(element, count);
          }
        }
        return new JdkBackedImmutableMultiset<>(delegateMap, asImmutableList(entriesArray), size);
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Sep 23 17:50:58 GMT 2025
    - 3.2K bytes
    - Click Count (0)
  4. guava/src/com/google/common/base/Joiner.java

     * methods will throw {@link NullPointerException} if any given element is null.
     *
     * <p><b>Warning: joiner instances are always immutable</b>; a configuration method such as {@code
     * useForNull} has no effect on the instance it is invoked on! You must store and use the new joiner
     * instance returned by the method. This makes joiners thread-safe, and safe to store as {@code
     * static final} constants.
     *
     * {@snippet :
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Apr 14 15:16:19 GMT 2025
    - 21K bytes
    - Click Count (0)
  5. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/docbook/LinkRenderer.java

                    linkElement.appendChild(addType(name, listener));
                }
            });
    
            linkElement.normalize();
            if (linkElement.getChildNodes().getLength() == 1 && linkElement.getFirstChild() instanceof Element) {
                return linkElement.getFirstChild();
            }
            return linkElement;
        }
    
        private Node addType(String className, GenerationListener listener) {
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed May 21 06:20:45 GMT 2025
    - 6.3K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/collect/ImmutableCollection.java

        }
    
        @CanIgnoreReturnValue
        @Override
        public Builder<E> addAll(Iterable<? extends E> elements) {
          if (elements instanceof Collection) {
            Collection<?> collection = (Collection<?>) elements;
            ensureRoomFor(collection.size());
            if (collection instanceof ImmutableCollection) {
              ImmutableCollection<?> immutableCollection = (ImmutableCollection<?>) collection;
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 21.4K bytes
    - Click Count (0)
  7. build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/docbook/ClassDocExtensionsBuilderTest.groovy

            PropertyMetaData property = Mock()
            _ * property.name >> name
            _ * property.ownerClass >> classMetaData
            def type = args.type instanceof TypeMetaData ? args.type : new TypeMetaData(args.type ?: 'org.gradle.Type')
            _ * property.type >> type
            _ * property.signature >> "$name-signature"
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Wed Dec 09 08:14:05 GMT 2020
    - 7.5K bytes
    - Click Count (0)
  8. api/maven-api-core/src/main/java/org/apache/maven/api/services/SettingsBuilderRequest.java

                    return Optional.ofNullable(interpolationSource);
                }
    
                @Override
                public boolean equals(Object o) {
                    return o instanceof DefaultSettingsBuilderRequest that
                            && Objects.equals(installationSettingsSource, that.installationSettingsSource)
                            && Objects.equals(projectSettingsSource, that.projectSettingsSource)
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Feb 07 00:45:02 GMT 2025
    - 9.4K bytes
    - Click Count (0)
  9. guava-testlib/src/com/google/common/collect/testing/testers/CollectionIteratorTester.java

        Iterator<E> iterator = collection.iterator();
        Object element = iterator.next();
        // If it's an Entry, it may become invalid once it's removed from the Map. Copy it.
        if (element instanceof Entry) {
          Entry<?, ?> entry = (Entry<?, ?>) element;
          element = mapEntry(entry.getKey(), entry.getValue());
        }
        assertTrue(collection.contains(element)); // sanity check
        iterator.remove();
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 6.1K bytes
    - Click Count (0)
  10. api/maven-api-core/src/main/java/org/apache/maven/api/services/ProjectBuilderRequest.java

                public List<RemoteRepository> getRepositories() {
                    return repositories;
                }
    
                @Override
                public boolean equals(Object o) {
                    return o instanceof DefaultProjectBuilderRequest that
                            && allowStubModel == that.allowStubModel
                            && recursive == that.recursive
                            && processPlugins == that.processPlugins
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Oct 10 07:30:49 GMT 2025
    - 11.7K bytes
    - Click Count (0)
Back to Top