Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 211 - 220 of 1,460 for instanceOf (0.05 seconds)

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

      public int hashCode() { // delegate to 's'
        return s.hashCode();
      }
    
      @Override
      public boolean equals(@Nullable Object other) {
        if (other == null) {
          return false;
        } else if (other instanceof BaseComparable) {
          return s.equals(((BaseComparable) other).s);
        } else {
          return false;
        }
      }
    
      @Override
      public int compareTo(BaseComparable o) {
        return s.compareTo(o.s);
      }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Thu Feb 13 17:34:21 GMT 2025
    - 1.6K bytes
    - Click Count (0)
  2. impl/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/ScopeArtifactFilter.java

            return hash;
        }
    
        @Override
        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
    
            if (obj instanceof ScopeArtifactFilter other) {
                return Objects.equals(scope, other.scope);
            } else {
                return false;
            }
        }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jan 10 08:42:00 GMT 2025
    - 1.7K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/collect/AbstractTable.java

      abstract Iterator<Table.Cell<R, C, V>> cellIterator();
    
      @WeakOuter
      private final class CellSet extends AbstractSet<Cell<R, C, V>> {
        @Override
        public boolean contains(@Nullable Object o) {
          if (o instanceof Cell) {
            Cell<?, ?, ?> cell = (Cell<?, ?, ?>) o;
            Map<C, V> row = safeGet(rowMap(), cell.getRowKey());
            return row != null
                && Collections2.safeContains(
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Aug 09 01:14:59 GMT 2025
    - 6K bytes
    - Click Count (0)
  4. compat/maven-model/src/main/java/org/apache/maven/model/InputLocation.java

         *
         * @param key the key to look up
         * @return the InputLocation for the specified key, or null if not found
         */
        @Override
        public InputLocation getLocation(Object key) {
            if (key instanceof String string) {
                switch (string) {
                    case "": {
                        return this.location;
                    }
                    default: {
                        return getOtherLocation(key);
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Mon Sep 29 14:45:25 GMT 2025
    - 13.5K bytes
    - Click Count (0)
  5. impl/maven-core/src/main/java/org/apache/maven/artifact/resolver/filter/CumulativeScopeArtifactFilter.java

            return hash;
        }
    
        @Override
        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
    
            if (obj instanceof CumulativeScopeArtifactFilter that) {
                return scopes.equals(that.scopes);
            } else {
                return false;
            }
        }
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jan 10 08:42:00 GMT 2025
    - 3K bytes
    - Click Count (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/MinimalSet.java

        super(type, true, contents);
      }
    
      /*
       * equals() and hashCode() are more specific in the Set contract.
       */
    
      @Override
      public boolean equals(@Nullable Object object) {
        if (object instanceof Set) {
          Set<?> that = (Set<?>) object;
          return (this.size() == that.size()) && this.containsAll(that);
        }
        return false;
      }
    
      @Override
      public int hashCode() {
        int hashCodeSum = 0;
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 2.8K bytes
    - Click Count (0)
  7. guava-testlib/src/com/google/common/collect/testing/MinimalSet.java

        super(type, true, contents);
      }
    
      /*
       * equals() and hashCode() are more specific in the Set contract.
       */
    
      @Override
      public boolean equals(@Nullable Object object) {
        if (object instanceof Set) {
          Set<?> that = (Set<?>) object;
          return (this.size() == that.size()) && this.containsAll(that);
        }
        return false;
      }
    
      @Override
      public int hashCode() {
        int hashCodeSum = 0;
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 2.8K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/primitives/Ints.java

          // Overridden to prevent a ton of boxing
          return (target instanceof Integer) && Ints.indexOf(array, (Integer) target, start, end) != -1;
        }
    
        @Override
        public int indexOf(@Nullable Object target) {
          // Overridden to prevent a ton of boxing
          if (target instanceof Integer) {
            int i = Ints.indexOf(array, (Integer) 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
    - 31.3K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/UntrustedInputFutureTest.java

    @NullUnmarked
    public class UntrustedInputFutureTest extends AbstractAbstractFutureTest {
      @Override
      AbstractFuture<Integer> newDelegate() {
        AbstractFuture<Integer> future = new AbstractFuture<Integer>() {};
        assertFalse(future instanceof TrustedFuture); // sanity check
        return future;
      }
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sat Jan 18 02:54:30 GMT 2025
    - 1.2K bytes
    - Click Count (0)
  10. impl/maven-core/src/main/java/org/apache/maven/project/ReactorModelPool.java

                hashCode = hash;
            }
    
            @Override
            public boolean equals(Object obj) {
                if (this == obj) {
                    return true;
                }
    
                if (!(obj instanceof CacheKey)) {
                    return false;
                }
    
                CacheKey that = (CacheKey) obj;
    
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jan 10 07:09:12 GMT 2025
    - 2.9K bytes
    - Click Count (0)
Back to Top