All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.almondtools.util.collections.Arrays Maven / Gradle / Ivy

Go to download

Regular expression matchers, searcher, lexers based on deterministic finite automata

There is a newer version: 0.3.3
Show newest version
package com.almondtools.util.collections;

import java.util.ArrayList;
import java.util.List;

public class Arrays {

	private List base;

	private Arrays(List base) {
		this.base = base;
	}

	public static  Arrays init(int size) {
		return new Arrays(new ArrayList(size));
	}

	public Arrays add(T item) {
		base.add(item);
		return this;
	}

	public Arrays addAll(List items) {
		base.addAll(items);
		return this;
	}

	@SuppressWarnings("unchecked")
	public T[] build() {
		return (T[]) base.toArray();
	}

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy