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

com.github.krukow.clj_ds.TransientVector Maven / Gradle / Ivy

The newest version!
package com.github.krukow.clj_ds;

public interface TransientVector extends TransientCollection, Indexed {

	/**
	 * @return A new {@link TransientVector} consisting of the elements of the
	 *         current {@link TransientVector} followed by the value val. (no
	 *         guarantees are made on the current collection).
	 */
	TransientVector plus(E val);

	/**
	 * @return A new {@link TransientVector} consisting of the elements of
	 *         current {@link TransientSet} where the element at index i has
	 *         been replaced by the value val (no guarantees are made on the
	 *         current collection).
	 * @throw {@link IndexOutOfBoundsException} if the index i is greater that
	 *        the current maximum index.
	 */
	TransientVector plusN(int i, E val);

	/**
	 * @return A new {@link TransientVector} consisting of the elements of the
	 *         current collection together with its last element (no guarantees
	 *         are made on the current collection).
	 */
	TransientVector minus();

	TransientVector pop();

	PersistentVector persist();

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy