Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 241 - 250 of 1,460 for instanceOf (0.08 seconds)

  1. guava-testlib/test/com/google/common/testing/anotherpackage/ForwardingWrapperTesterTest.java

                return new ForwardingRunnable(runnable) {
    
                  @SuppressWarnings("EqualsHashCode")
                  @Override
                  public boolean equals(@Nullable Object o) {
                    if (o instanceof ForwardingRunnable) {
                      ForwardingRunnable that = (ForwardingRunnable) o;
                      return runnable.equals(that.runnable);
                    }
                    return false;
                  }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Mon Jul 14 14:44:08 GMT 2025
    - 15.7K bytes
    - Click Count (0)
  2. guava/src/com/google/common/primitives/Doubles.java

          // Overridden to prevent a ton of boxing
          return (target instanceof Double)
              && Doubles.indexOf(array, (Double) target, start, end) != -1;
        }
    
        @Override
        public int indexOf(@Nullable Object target) {
          // Overridden to prevent a ton of boxing
          if (target instanceof Double) {
            int i = Doubles.indexOf(array, (Double) target, start, end);
            if (i >= 0) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Wed Oct 22 18:14:49 GMT 2025
    - 27.6K bytes
    - Click Count (0)
  3. 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)
  4. android/guava/src/com/google/common/base/Equivalence.java

       * identically to this equivalence.
       *
       * <p><b>Warning: do not depend</b> on the behavior of this method.
       *
       * <p>Historically, {@code Equivalence} instances in this library have implemented this method to
       * recognize certain cases where distinct {@code Equivalence} instances would in fact behave
       * identically. However, as code migrates to {@code java.util.function}, that behavior will
       * disappear. It is best not to depend on it.
       */
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Jul 10 01:47:55 GMT 2025
    - 14.5K bytes
    - Click Count (0)
  5. guava/src/com/google/common/graph/AbstractGraph.java

      /** Constructor for use by subclasses. */
      public AbstractGraph() {}
    
      @Override
      public final boolean equals(@Nullable Object obj) {
        if (obj == this) {
          return true;
        }
        if (!(obj instanceof Graph)) {
          return false;
        }
        Graph<?> other = (Graph<?>) obj;
    
        return isDirected() == other.isDirected()
            && nodes().equals(other.nodes())
            && edges().equals(other.edges());
      }
    
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 1.8K bytes
    - Click Count (0)
  6. guava/src/com/google/common/collect/ImmutableList.java

        @Override
        public Builder<E> addAll(Iterable<? extends E> elements) {
          checkNotNull(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: Mon Nov 17 22:50:48 GMT 2025
    - 30.6K bytes
    - Click Count (0)
  7. android/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)
  8. api/maven-api-core/src/main/java/org/apache/maven/api/services/ToolchainsBuilderRequest.java

                    return Optional.ofNullable(userToolchainsSource);
                }
    
                @Override
                public boolean equals(Object o) {
                    return o instanceof DefaultToolchainsBuilderRequest that
                            && Objects.equals(installationToolchainsSource, that.installationToolchainsSource)
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Feb 07 00:45:02 GMT 2025
    - 6.3K bytes
    - Click Count (0)
  9. impl/maven-cli/src/main/java/org/apache/maven/cling/event/ExecutionEventLogger.java

                    logReactorSummary(event.getSession());
                }
    
                ILoggerFactory iLoggerFactory = LoggerFactory.getILoggerFactory();
    
                if (iLoggerFactory instanceof org.apache.maven.logging.api.LogLevelRecorder recorder
                        && recorder.hasReachedMaxLevel()) {
                    event.getSession()
                            .getResult()
                            .addException(
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Dec 13 15:40:45 GMT 2024
    - 17.5K bytes
    - Click Count (0)
  10. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/FileModelSource.java

            return getFile().toURI();
        }
    
        @Override
        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
    
            if (!(obj instanceof FileModelSource)) {
                return false;
            }
            FileModelSource other = (FileModelSource) obj;
            return getFile().equals(other.getFile());
        }
    
        @Override
        public int hashCode() {
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Apr 14 13:42:17 GMT 2025
    - 2.8K bytes
    - Click Count (0)
Back to Top