compareTo() — netty Function Reference
Architecture documentation for the compareTo() function in DefaultCookie.java from the netty codebase.
Entity Profile
Dependency Diagram
graph TD 0d35c79f_0cc1_7123_6ea8_6afc4c898aec["compareTo()"] fc5bf564_9f72_12b2_a152_98889e5026ac["DefaultCookie"] 0d35c79f_0cc1_7123_6ea8_6afc4c898aec -->|defined in| fc5bf564_9f72_12b2_a152_98889e5026ac style 0d35c79f_0cc1_7123_6ea8_6afc4c898aec fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
codec-http/src/main/java/io/netty/handler/codec/http/cookie/DefaultCookie.java lines 203–235
@Override
public int compareTo(Cookie c) {
int v = name().compareTo(c.name());
if (v != 0) {
return v;
}
if (path() == null) {
if (c.path() != null) {
return -1;
}
} else if (c.path() == null) {
return 1;
} else {
v = path().compareTo(c.path());
if (v != 0) {
return v;
}
}
if (domain() == null) {
if (c.domain() != null) {
return -1;
}
} else if (c.domain() == null) {
return 1;
} else {
v = domain().compareToIgnoreCase(c.domain());
return v;
}
return 0;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does compareTo() do?
compareTo() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/http/cookie/DefaultCookie.java.
Where is compareTo() defined?
compareTo() is defined in codec-http/src/main/java/io/netty/handler/codec/http/cookie/DefaultCookie.java at line 203.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free