Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jugid/tarray
Copy of ArrayList from Java
https://github.com/jugid/tarray
Last synced: about 1 month ago
JSON representation
Copy of ArrayList from Java
- Host: GitHub
- URL: https://github.com/jugid/tarray
- Owner: JuGid
- Created: 2021-10-27T23:47:48.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2021-10-27T23:54:17.000Z (about 3 years ago)
- Last Synced: 2023-10-20T20:52:14.052Z (about 1 year ago)
- Language: PHP
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tarray
This is a copy of the ArrayList implementation in Java.
It can be used as an Iterable (foreach...).# Available methods
```
public function add(mixed $element) : void;
public function addArray(array $elements) : void;
public function addMultiple(mixed ...$elements) : void;
public function clear() : bool;
public function contains(mixed $element) : bool;
public function count() : int;
public function export(int $fromIndex, int $toIndex) : Tarray;
public function forEach(callable $callable, bool $returnCopy = false) : self|Tarray;
public function get(int $index) : mixed;
public function getAcceptedType() : string;
public function indexOf(mixed $element) : int;
public function isEmpty() : bool;
public function lastIndex() : int;
public function remove(mixed $element) : bool;
public function removeAll(mixed ...$elements) : bool;
public function removeAt(int $index) : bool;
public function set(int $index, mixed $element) : bool;
public function toArray() : array;
```# Licence
I don't care, do whatever you want