Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 51 - 60 of 1,460 for instanceOf (0.05 seconds)

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

       * called on the {@code TypeVariable} instance has the same name as one of the public methods of
       * {@link TypeVariableImpl}, the proxy calls the same method on its instance of {@code
       * TypeVariableImpl}. Otherwise it throws {@link UnsupportedOperationException}; this should only
       * apply to {@code getAnnotatedBounds()}. This does mean that users on Java who obtain an instance
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Oct 31 19:34:24 GMT 2025
    - 24.3K bytes
    - Click Count (0)
  2. compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/filter/TypeArtifactFilter.java

            hash = hash * 31 + type.hashCode();
            return hash;
        }
    
        @Override
        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
    
            if (obj instanceof TypeArtifactFilter other) {
                return type.equals(other.type);
            } else {
                return false;
            }
        }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 1.6K bytes
    - Click Count (0)
  3. impl/maven-core/src/main/java/org/apache/maven/execution/scope/internal/MojoExecutionScope.java

            // the same instance can be provided multiple times under different Key's
            // deduplicate instances to avoid redundant beforeXXX/afterXXX callbacks
            IdentityHashMap<WeakMojoExecutionListener, Object> listeners = new IdentityHashMap<>();
            for (Object provided : getScopeState().provided()) {
                if (provided instanceof WeakMojoExecutionListener weakMojoExecutionListener) {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  4. guava-tests/test/com/google/common/collect/LenientSerializableTester.java

        assertEquals(original, copy);
        assertTrue(copy instanceof ImmutableSet);
        return copy;
      }
    
      @CanIgnoreReturnValue
      @GwtIncompatible // SerializableTester
      static <E> Multiset<E> reserializeAndAssertLenient(Multiset<E> original) {
        Multiset<E> copy = reserialize(original);
        assertEquals(original, copy);
        assertTrue(copy instanceof ImmutableMultiset);
        return copy;
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 2.6K bytes
    - Click Count (0)
  5. compat/maven-settings-builder/src/main/java/org/apache/maven/settings/building/DefaultSettingsProblemCollector.java

            this.source = source;
        }
    
        @Override
        public void add(SettingsProblem.Severity severity, String message, int line, int column, Exception cause) {
            if (line <= 0 && column <= 0 && cause instanceof SettingsParseException e) {
                line = e.getLineNumber();
                column = e.getColumnNumber();
            }
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jan 10 08:42:00 GMT 2025
    - 2K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/primitives/ImmutableLongArray.java

          return indexOf(target) >= 0;
        }
    
        @Override
        public int indexOf(@Nullable Object target) {
          return target instanceof Long ? parent.indexOf((Long) target) : -1;
        }
    
        @Override
        public int lastIndexOf(@Nullable Object target) {
          return target instanceof Long ? parent.lastIndexOf((Long) target) : -1;
        }
    
        @Override
        public List<Long> subList(int fromIndex, int toIndex) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Dec 12 14:49:24 GMT 2025
    - 22K bytes
    - Click Count (0)
  7. guava/src/com/google/common/primitives/ImmutableIntArray.java

          return indexOf(target) >= 0;
        }
    
        @Override
        public int indexOf(@Nullable Object target) {
          return target instanceof Integer ? parent.indexOf((Integer) target) : -1;
        }
    
        @Override
        public int lastIndexOf(@Nullable Object target) {
          return target instanceof Integer ? parent.lastIndexOf((Integer) target) : -1;
        }
    
        @Override
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Fri Dec 12 14:49:24 GMT 2025
    - 21.5K bytes
    - Click Count (0)
  8. impl/maven-core/src/main/java/org/apache/maven/internal/impl/EventSpyImpl.java

    @Singleton
    public class EventSpyImpl implements EventSpy {
        @Override
        public void init(Context context) throws Exception {}
    
        @Override
        public void onEvent(Object arg) throws Exception {
            if (arg instanceof ExecutionEvent ee) {
                InternalMavenSession session =
                        InternalMavenSession.from(ee.getSession().getSession());
                EventType eventType = convert(ee.getType());
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Nov 29 20:53:26 GMT 2024
    - 2.2K bytes
    - Click Count (0)
  9. impl/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/AndArtifactFilter.java

            return hash;
        }
    
        @Override
        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
    
            if (obj instanceof AndArtifactFilter other) {
                return filters.equals(other.filters);
            } else {
                return false;
            }
        }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 2.3K bytes
    - Click Count (0)
  10. android/guava-testlib/test/com/google/common/testing/SerializableTesterTest.java

          return (other instanceof ClassWhichIsAlwaysEqualButHasDifferentHashcodes);
        }
      }
    
      private static class ObjectWhichIsEqualButChangesClass implements Serializable {
        private static final long serialVersionUID = 1L;
    
        @Override
        public boolean equals(@Nullable Object other) {
          return (other instanceof ObjectWhichIsEqualButChangesClass || other instanceof OtherForm);
        }
    
        @Override
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Feb 13 17:34:21 GMT 2025
    - 4K bytes
    - Click Count (0)
Back to Top