Home / Function/ normalizeAndValidate() — netty Function Reference

normalizeAndValidate() — netty Function Reference

Architecture documentation for the normalizeAndValidate() function in DateFormatter.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  5bf46b9f_aa97_c8fd_4a69_642490a1b201["normalizeAndValidate()"]
  868307e6_8dd7_9eb3_bb13_ca685c4d59cf["DateFormatter"]
  5bf46b9f_aa97_c8fd_4a69_642490a1b201 -->|defined in| 868307e6_8dd7_9eb3_bb13_ca685c4d59cf
  c0c8c303_9c6b_ff59_6738_58d3bb356d4c["Date()"]
  c0c8c303_9c6b_ff59_6738_58d3bb356d4c -->|calls| 5bf46b9f_aa97_c8fd_4a69_642490a1b201
  style 5bf46b9f_aa97_c8fd_4a69_642490a1b201 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-base/src/main/java/io/netty/handler/codec/DateFormatter.java lines 395–413

    private boolean normalizeAndValidate() {
        if (dayOfMonth < 1
                || dayOfMonth > 31
                || hours > 23
                || minutes > 59
                || seconds > 59) {
            return false;
        }

        if (year >= 70 && year <= 99) {
            year += 1900;
        } else if (year >= 0 && year < 70) {
            year += 2000;
        } else if (year < 1601) {
            // invalid value
            return false;
        }
        return true;
    }

Domain

Subdomains

Called By

Frequently Asked Questions

What does normalizeAndValidate() do?
normalizeAndValidate() is a function in the netty codebase, defined in codec-base/src/main/java/io/netty/handler/codec/DateFormatter.java.
Where is normalizeAndValidate() defined?
normalizeAndValidate() is defined in codec-base/src/main/java/io/netty/handler/codec/DateFormatter.java at line 395.
What calls normalizeAndValidate()?
normalizeAndValidate() is called by 1 function(s): Date.

Analyze Your Own Codebase

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

Try Supermodel Free