8000 MutableCharArray · illa4257/i4Platform Wiki · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

MutableCharArray

illa4257 edited this page Mar 3, 2025 · 2 revisions

package illa4257.i4Utils.lists

Class MutableCharArray

Properties

  • final int pageSize

Constructors

  • MutableCharArray()

  • MutableCharArray(int pageSize)

Methods

  • boolean isEmpty()

  • int size()

  • void clear()

  • boolean removeB(int index)

  • void remove(int index)

  • void removeRange(int from, int to)

  • void add(char ch)

  • void add(char ch, int index)

  • void add(char[] charArray)

  • void addDirect(char[] charArray)

  • void add(char[] charArray, int offset, int length)

  • void addDirect(char[] charArray, int offset, int length)

  • void add(char[] charArray, int index)

  • void addDirect(char[] charArray, int index)

  • void add(char[] charArray, int index, int offset, int length)

  • void addDirect(char[] charArray, int index, int offset, int length)

  • Character getChar(int i, Character defaultValue)

  • char getChar(int index)

Retrieves a character at a specific index.

@param index index

@return char

  • char[] getChars()

Returns the text contained in this MutableCharArray.

For stronger security, it is recommended that the returned character array be cleared after use by setting each character to zero.

  • byte[] getBytes(Charset charset)

  • String getString()

Returns the text contained in this MutableCharArray.

Note: Not recommended for sensitive information because you can’t clear String.

For sensitive information, use the {@link #getChars()} method.

@return String

Clone this wiki locally
0