Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 1,166 for Equals (0.21 sec)

  1. android/guava-testlib/src/com/google/common/testing/ClassSanityTester.java

              }
            }
          }
          return this;
        }
    
        /**
         * Tests {@link Object#equals} and {@link Object#hashCode} against the return values of the
         * static methods, by asserting that when equal parameters are passed to the same static method,
         * the return value should also be equal; and vice versa.
         *
         * <p>Test fails if default value cannot be determined for a constructor or factory method
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 08 17:31:55 GMT 2024
    - 33K bytes
    - Viewed (0)
  2. maven-artifact/src/test/java/org/apache/maven/artifact/versioning/ComparableVersionTest.java

                // 2.0.X == 2-X == 2.0.0.X for any string x
                checkVersionsEqual("2-" + x, "2.0." + x); // previously ordered, now equals
                checkVersionsEqual("2-" + x, "2.0.0." + x); // previously ordered, now equals
                checkVersionsEqual("2.0." + x, "2.0.0." + x); // previously ordered, now equals
            }
        }
    
        @Test
        public void testMng7714() {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Tue Jan 09 06:39:47 GMT 2024
    - 14K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ForwardingMapEntry.java

        return delegate().setValue(value);
      }
    
      @Override
      public boolean equals(@CheckForNull Object object) {
        return delegate().equals(object);
      }
    
      @Override
      public int hashCode() {
        return delegate().hashCode();
      }
    
      /**
       * A sensible definition of {@link #equals(Object)} in terms of {@link #getKey()} and {@link
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Mar 19 19:28:11 GMT 2024
    - 4.4K bytes
    - Viewed (0)
  4. maven-api-impl/src/main/java/org/apache/maven/internal/impl/resolver/artifact/FatArtifactTraverser.java

            requireNonNull(context, "context cannot be null");
            return this;
        }
    
        @Override
        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            } else if (null == obj || !getClass().equals(obj.getClass())) {
                return false;
            }
            return true;
        }
    
        @Override
        public int hashCode() {
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 2.3K bytes
    - Viewed (0)
  5. maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/transform/LatestArtifactTransformation.java

                throws ArtifactResolutionException, ArtifactNotFoundException {
            if (Artifact.LATEST_VERSION.equals(artifact.getVersion())) {
                try {
                    String version = resolveVersion(artifact, request);
                    if (Artifact.LATEST_VERSION.equals(version)) {
                        throw new ArtifactNotFoundException("Unable to determine the latest version", artifact);
                    }
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Sep 06 11:28:54 GMT 2023
    - 2.9K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/dict/protwords/ProtwordsItem.java

        }
    
        @Override
        public boolean equals(final Object obj) {
            if (this == obj) {
                return true;
            }
            if ((obj == null) || (getClass() != obj.getClass())) {
                return false;
            }
            final ProtwordsItem other = (ProtwordsItem) obj;
            if (!input.equals(other.input)) {
                return false;
            }
            return true;
        }
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  7. api/maven-api-core/src/main/java/org/apache/maven/api/SessionData.java

            }
    
            @Override
            public boolean equals(Object o) {
                if (this == o) {
                    return true;
                }
                if (o == null || getClass() != o.getClass()) {
                    return false;
                }
                Key<?> key = (Key<?>) o;
                return Objects.equals(id, key.id) && Objects.equals(type, key.type);
            }
    
            @Override
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Wed Feb 28 23:31:09 GMT 2024
    - 4.7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/hash/HashCodeTest.java

        HashCode hashCodeA = HashCode.fromBytes(bytesA);
        HashCode hashCodeB = HashCode.fromBytes(bytesB);
    
        // They aren't equal...
        assertFalse(hashCodeA.equals(hashCodeB));
    
        // But they still have the same Object#hashCode() value.
        // Technically not a violation of the equals/hashCode contract, but...?
        assertEquals(hashCodeA.hashCode(), hashCodeB.hashCode());
      }
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13.1K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java

          if (m.getName().equals("keySet") && m.getReturnType().equals(SortedSet.class)) {
            return;
          }
        }
        fail("No bridge method found");
      }
    
      @J2ktIncompatible
      @GwtIncompatible // reflection
      public void testAsMapBridgeMethods() {
        for (Method m : TreeMultimap.class.getMethods()) {
          if (m.getName().equals("asMap") && m.getReturnType().equals(SortedMap.class)) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 22.6K bytes
    - Viewed (0)
  10. maven-api-impl/src/main/java/org/apache/maven/internal/impl/model/DefaultRootLocator.java

                if (parser.nextTag() == XMLStreamReader.START_ELEMENT
                        && parser.getLocalName().equals("project")) {
                    for (int i = 0; i < parser.getAttributeCount(); i++) {
                        if ("root".equals(parser.getAttributeLocalName(i))) {
                            return Boolean.parseBoolean(parser.getAttributeValue(i));
                        }
                    }
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 2.5K bytes
    - Viewed (0)
Back to top