Skip to content
This repository was archived by the owner on Jan 6, 2023. It is now read-only.

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

README.md

SomeUtils/DynamicArray;

package SomeUtils.DynamicArray;

DynamicArray.java

import SomeUtils.DynamicArray.DynamicArray;

Public Methods


public DynamicArray();
public DynamicArray(final T[] newArr);

Create an instance with or without an array preset.


public void set(final int ind, final T value);

Set the value for the specified index.


public T get(final int ind);

Get the value for the specified index.


public T[] toArray();
public T[] getArray();

Get a fixed-length copy of the underlying array.

A much more recommended way of getting the array.


public T[] getRealArray();

Get the actual underlying array.

Not recommended for the length of the array is inflated.