Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 311 - 320 of 1,460 for instanceOf (0.05 seconds)

  1. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/VersionsMetadataGenerator.java

             */
            for (Iterator<? extends Metadata> it = metadatas.iterator(); it.hasNext(); ) {
                Metadata metadata = it.next();
                if (metadata instanceof VersionsMetadata versionsMetadata) {
                    it.remove();
                    processedVersions.put(versionsMetadata.getKey(), versionsMetadata);
                }
            }
        }
    
        @Override
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jan 10 08:42:00 GMT 2025
    - 4K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/collect/EmptyContiguousSet.java

        return ImmutableList.of();
      }
    
      @Override
      public String toString() {
        return "[]";
      }
    
      @Override
      public boolean equals(@Nullable Object object) {
        if (object instanceof Set) {
          Set<?> that = (Set<?>) object;
          return that.isEmpty();
        }
        return false;
      }
    
      @GwtIncompatible // not used in GWT
      @Override
      boolean isHashCodeFast() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 4.1K bytes
    - Click Count (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java

        TestContainerGenerator<Map<K, V>, Entry<K, V>> generator = mapGenerator.getInnerGenerator();
        if (generator instanceof TestSortedMapGenerator
            && ((TestSortedMapGenerator<K, V>) generator).create().keySet() instanceof SortedSet) {
          return new MapSortedKeySetGenerator<>(mapGenerator);
        } else {
          return new MapKeySetGenerator<>(mapGenerator);
        }
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Jan 30 16:59:10 GMT 2025
    - 18.2K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/collect/Range.java

       * @throws NullPointerException if any of {@code values} is null
       * @since 14.0
       */
      public static <C extends Comparable<?>> Range<C> encloseAll(Iterable<C> values) {
        checkNotNull(values);
        if (values instanceof SortedSet) {
          SortedSet<C> set = (SortedSet<C>) values;
          Comparator<?> comparator = set.comparator();
          if (Ordering.<C>natural().equals(comparator) || comparator == null) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Sep 22 18:35:44 GMT 2025
    - 28K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/net/HostSpecifier.java

          return false;
        }
      }
    
      @Override
      public boolean equals(@Nullable Object other) {
        if (this == other) {
          return true;
        }
    
        if (other instanceof HostSpecifier) {
          HostSpecifier that = (HostSpecifier) other;
          return this.canonicalForm.equals(that.canonicalForm);
        }
    
        return false;
      }
    
      @Override
      public int hashCode() {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 6K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/collect/HashBiMap.java

      }
    
      private final class EntrySet extends View<K, V, Entry<K, V>> {
        EntrySet() {
          super(HashBiMap.this);
        }
    
        @Override
        public boolean contains(@Nullable Object o) {
          if (o instanceof Entry) {
            Entry<?, ?> e = (Entry<?, ?>) o;
            Object k = e.getKey();
            Object v = e.getValue();
            int eIndex = findEntryByKey(k);
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Tue Dec 16 14:46:34 GMT 2025
    - 37.1K bytes
    - Click Count (0)
  7. impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/DefaultLifecycleExecutionPlanCalculator.java

                        PluginVersionResolutionException, LifecyclePhaseNotFoundException {
            final List<MojoExecution> mojoExecutions = new ArrayList<>();
    
            for (Task task : tasks) {
                if (task instanceof GoalTask) {
                    String pluginGoal = task.getValue();
    
                    String executionId = "default-cli";
                    int executionIdx = pluginGoal.indexOf('@');
                    if (executionIdx > 0) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Tue Mar 25 09:45:07 GMT 2025
    - 26.7K bytes
    - Click Count (0)
  8. guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/LocalCache.java

        @Override
        public V getValue() {
          return value;
        }
    
        @Override
        public boolean equals(@Nullable Object object) {
          // Cannot use key and value equivalence
          if (object instanceof Entry) {
            Entry<?, ?> that = (Entry<?, ?>) object;
            return key.equals(that.getKey()) && value.equals(that.getValue());
          }
          return false;
        }
    
        @Override
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Aug 11 19:31:30 GMT 2025
    - 21.8K bytes
    - Click Count (0)
  9. impl/maven-core/src/test/java/org/apache/maven/project/AbstractMavenProjectTestCase.java

            try {
                return projectBuilder.build(pom, configuration).getProject();
            } catch (Exception e) {
                Throwable cause = e.getCause();
                if (cause instanceof ModelBuildingException modelBuildingException) {
                    String message = "In: " + pom + "\n\n";
                    for (ModelProblem problem : modelBuildingException.getProblems()) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jan 10 08:42:00 GMT 2025
    - 7.2K bytes
    - Click Count (0)
  10. guava-tests/test/com/google/common/collect/InternersTest.java

        MyInt(int i) {
          this.i = i;
        }
    
        @Override
        public int hashCode() {
          return i;
        }
    
        @Override
        public boolean equals(Object o) {
          return o instanceof MyInt && ((MyInt) o).i == i;
        }
      }
    
      public void testAsFunction_simplistic() {
        String canonical = "a";
        String not = new String("a");
    
        Function<String, String> internerFunction =
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Dec 08 17:02:07 GMT 2025
    - 4.3K bytes
    - Click Count (0)
Back to Top