Home / Class/ AnotherCharSequence Class — netty Architecture

AnotherCharSequence Class — netty Architecture

Architecture documentation for the AnotherCharSequence class in Utf8EncodingBenchmark.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  f66d8916_a4de_540e_db83_bc4711a95d21["AnotherCharSequence"]
  2b24fd8e_0929_c5f9_e723_89adc6666e12["Utf8EncodingBenchmark.java"]
  f66d8916_a4de_540e_db83_bc4711a95d21 -->|defined in| 2b24fd8e_0929_c5f9_e723_89adc6666e12
  e3dcd755_3549_c07b_1cd3_35d4d7d1f02e["AnotherCharSequence()"]
  f66d8916_a4de_540e_db83_bc4711a95d21 -->|method| e3dcd755_3549_c07b_1cd3_35d4d7d1f02e
  640e9533_bf6a_ebdd_f7f7_e4a05ca30d8a["length()"]
  f66d8916_a4de_540e_db83_bc4711a95d21 -->|method| 640e9533_bf6a_ebdd_f7f7_e4a05ca30d8a
  4af77d59_fc0b_0afa_f4f4_39987c68fe5f["charAt()"]
  f66d8916_a4de_540e_db83_bc4711a95d21 -->|method| 4af77d59_fc0b_0afa_f4f4_39987c68fe5f
  9864d21e_e653_9ed3_41f6_f99f369daa3c["CharSequence()"]
  f66d8916_a4de_540e_db83_bc4711a95d21 -->|method| 9864d21e_e653_9ed3_41f6_f99f369daa3c
  9cb0b7dc_aa53_690d_6839_166f9b481668["String()"]
  f66d8916_a4de_540e_db83_bc4711a95d21 -->|method| 9cb0b7dc_aa53_690d_6839_166f9b481668

Relationship Graph

Source Code

microbench/src/main/java/io/netty/microbench/buffer/Utf8EncodingBenchmark.java lines 41–68

    private static class AnotherCharSequence implements CharSequence {
        private final char[] chars;

        AnotherCharSequence(String chars) {
            this.chars = new char[chars.length()];
            chars.getChars(0, chars.length(), this.chars, 0);
        }

        @Override
        public int length() {
            return chars.length;
        }

        @Override
        public char charAt(int i) {
            return chars[i];
        }

        @Override
        public CharSequence subSequence(int start, int end) {
            throw new UnsupportedOperationException();
        }

        @Override
        public String toString() {
            throw new UnsupportedOperationException();
        }
    }

Frequently Asked Questions

What is the AnotherCharSequence class?
AnotherCharSequence is a class in the netty codebase, defined in microbench/src/main/java/io/netty/microbench/buffer/Utf8EncodingBenchmark.java.
Where is AnotherCharSequence defined?
AnotherCharSequence is defined in microbench/src/main/java/io/netty/microbench/buffer/Utf8EncodingBenchmark.java at line 41.

Analyze Your Own Codebase

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

Try Supermodel Free