Home / Function/ compare() — netty Function Reference

compare() — netty Function Reference

Architecture documentation for the compare() function in SpdySession.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  38b1a1dc_d75e_1e38_b090_dbef1bdd2fef["compare()"]
  aa01612f_c7e1_25db_3b11_9fb5294d3c31["StreamComparator"]
  38b1a1dc_d75e_1e38_b090_dbef1bdd2fef -->|defined in| aa01612f_c7e1_25db_3b11_9fb5294d3c31
  af17e567_3cb5_599f_3773_8a9cc1a1ee53["getPriority()"]
  38b1a1dc_d75e_1e38_b090_dbef1bdd2fef -->|calls| af17e567_3cb5_599f_3773_8a9cc1a1ee53
  style 38b1a1dc_d75e_1e38_b090_dbef1bdd2fef fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/main/java/io/netty/handler/codec/spdy/SpdySession.java lines 329–340

        @Override
        public int compare(Integer id1, Integer id2) {
            StreamState state1 = activeStreams.get(id1);
            StreamState state2 = activeStreams.get(id2);

            int result = state1.getPriority() - state2.getPriority();
            if (result != 0) {
                return result;
            }

            return id1 - id2;
        }

Domain

Subdomains

Frequently Asked Questions

What does compare() do?
compare() is a function in the netty codebase, defined in codec-http/src/main/java/io/netty/handler/codec/spdy/SpdySession.java.
Where is compare() defined?
compare() is defined in codec-http/src/main/java/io/netty/handler/codec/spdy/SpdySession.java at line 329.
What does compare() call?
compare() calls 1 function(s): getPriority.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free