public interface IModifiable<I,V,R>
| Modifier and Type | Method and Description |
|---|---|
io.vavr.control.Try<R> |
add(V value)
Adds an item to the collection.
|
io.vavr.control.Try<R> |
insert(I index,
V value)
Inserts an item into the collection.
|
io.vavr.control.Try<R> |
remove(I index)
Removes an item from the collection.
|
io.vavr.control.Try<R> |
replace(I index,
V value)
Replaces an item in the collection.
|
io.vavr.control.Try<R> add(V value)
value - The item to add.io.vavr.control.Try<R> replace(I index, V value)
index - The index to replace the item at.value - The new item to use.io.vavr.control.Try<R> insert(I index, V value)
index - The index to insert the item at.value - The item to insert.Copyright © 2017. All rights reserved.