Home / Function/ next() — netty Function Reference

next() — netty Function Reference

Architecture documentation for the next() function in ThreadLocalRandom.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  bbbaa728_e140_8728_d47e_e3846f949988["next()"]
  cad32658_3724_a99b_a2c9_78d6688e22b6["ThreadLocalRandom"]
  bbbaa728_e140_8728_d47e_e3846f949988 -->|defined in| cad32658_3724_a99b_a2c9_78d6688e22b6
  b776a5b2_2836_d36a_601c_20ffeadcb95d["nextLong()"]
  b776a5b2_2836_d36a_601c_20ffeadcb95d -->|calls| bbbaa728_e140_8728_d47e_e3846f949988
  style bbbaa728_e140_8728_d47e_e3846f949988 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

common/src/main/java/io/netty/util/internal/ThreadLocalRandom.java lines 285–289

    @Override
    protected int next(int bits) {
        rnd = (rnd * multiplier + addend) & mask;
        return (int) (rnd >>> (48 - bits));
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does next() do?
next() is a function in the netty codebase, defined in common/src/main/java/io/netty/util/internal/ThreadLocalRandom.java.
Where is next() defined?
next() is defined in common/src/main/java/io/netty/util/internal/ThreadLocalRandom.java at line 285.
What calls next()?
next() is called by 1 function(s): nextLong.

Analyze Your Own Codebase

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

Try Supermodel Free