Class ByteBasedPNameFactory


  • public final class ByteBasedPNameFactory
    extends java.lang.Object
    Simple factory that can instantiate appropriate PName instances, given input data to use for construction. The main reason for a factory class here is just to insulate calling code from having to know details of concrete implementations.
    • Field Detail

      • DO_INTERN

        private static final boolean DO_INTERN
        Can be set to false for debugging (for example, to test memory usage)
        See Also:
        Constant Field Values
    • Constructor Detail

      • ByteBasedPNameFactory

        private ByteBasedPNameFactory()
    • Method Detail

      • constructPName

        public ByteBasedPName constructPName​(int hash,
                                             java.lang.String pname,
                                             int colonIx,
                                             int quad1,
                                             int quad2)
      • constructPName

        public ByteBasedPName constructPName​(int hash,
                                             java.lang.String pname,
                                             int colonIx,
                                             int[] quads,
                                             int qlen)