/** * Constructor for the <code>Indenter</code> object. This will * create an indent that uses the specified number of spaces to * create each entry pushed on to the stack. This uses a cache * of the specified size, which is used to optimize the object. * * @param format determines the number of spaces per indent * @param size this is the initial size of the indent cache */ private Indenter(Format format, int size) { this.indent = format.getIndent(); this.cache = new Cache(size); }
/** * Constructor for the <code>Indenter</code> object. This will * create an indent that uses the specified number of spaces to * create each entry pushed on to the stack. This uses a cache * of the specified size, which is used to optimize the object. * * @param format determines the number of spaces per indent * @param size this is the initial size of the indent cache */ private Indenter(Format format, int size) { this.indent = format.getIndent(); this.cache = new Cache(size); }
/** * Constructor for the <code>Indenter</code> object. This will * create an indent that uses the specified number of spaces to * create each entry pushed on to the stack. This uses a cache * of the specified size, which is used to optimize the object. * * @param format determines the number of spaces per indent * @param size this is the initial size of the indent cache */ private Indenter(Format format, int size) { this.indent = format.getIndent(); this.cache = new Cache(size); }