Class Name1


  • public final class Name1
    extends Name
    Specialized implementation of PName: can be used for short Strings that consists of at most 4 bytes. Usually this means short ascii-only names.

    The reason for such specialized classes is mostly space efficiency; and to a lesser degree performance. Both are achieved for short Strings by avoiding another level of indirection (via quad arrays)

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static Name1 EMPTY  
      private int q  
    • Constructor Summary

      Constructors 
      Constructor Description
      Name1​(java.lang.String name, int hash, int quad)  
    • Field Detail

      • EMPTY

        private static final Name1 EMPTY
      • q

        private final int q
    • Constructor Detail

      • Name1

        Name1​(java.lang.String name,
              int hash,
              int quad)
    • Method Detail

      • getEmptyName

        public static Name1 getEmptyName()
      • equals

        public boolean equals​(int quad)
        Specified by:
        equals in class Name
      • equals

        public boolean equals​(int quad1,
                              int quad2)
        Specified by:
        equals in class Name
      • equals

        public boolean equals​(int q1,
                              int q2,
                              int q3)
        Specified by:
        equals in class Name
      • equals

        public boolean equals​(int[] quads,
                              int qlen)
        Specified by:
        equals in class Name