MCPcopy Create free account
hub / github.com/HtmlUnit/htmlunit / equals

Method equals

src/main/java/org/htmlunit/http/Cookie.java:229–241  ·  view source on GitHub ↗

{@inheritDoc}

(final Object o)

Source from the content-addressed store, hash-verified

227 * {@inheritDoc}
228 */
229 @Override
230 public boolean equals(final Object o) {
231 if (!(o instanceof Cookie other)) {
232 return false;
233 }
234 final String path = getPath() == null ? "/" : getPath();
235 final String otherPath = other.getPath() == null ? "/" : other.getPath();
236 return new EqualsBuilder()
237 .append(getName(), other.getName())
238 .append(getDomain(), other.getDomain())
239 .append(path, otherPath)
240 .isEquals();
241 }
242
243 /**
244 * {@inheritDoc}

Callers 15

validateDomainMethod · 0.45
buildCookieOriginMethod · 0.45
isScriptRunningMethod · 0.45
isArrayMethod · 0.45
makeScriptableForMethod · 0.45
getDefaultValueMethod · 0.45
namedItemMethod · 0.45
jsConstructorMethod · 0.45
setBinaryTypeMethod · 0.45
deleteMethod · 0.45
getMethod · 0.45

Calls 5

getPathMethod · 0.95
getNameMethod · 0.95
getDomainMethod · 0.95
getNameMethod · 0.65
appendMethod · 0.45

Tested by

no test coverage detected