
com.github.krukow.clj_ds.TransientVector Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of clj-ds Show documentation
Show all versions of clj-ds Show documentation
Port of Clojure's data structures to Java
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