![JAR search and dependency download from the Maven repository](/logo.png)
org.jhotdraw8.icollection.impl.vector.NodeModifier Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.jhotdraw8.icollection Show documentation
Show all versions of org.jhotdraw8.icollection Show documentation
JHotDraw8 Immutable Collections
The newest version!
/*
* @(#)NodeModifier.java
* Copyright © 2023 The authors and contributors of JHotDraw. MIT License.
*/
package org.jhotdraw8.icollection.impl.vector;
import static org.jhotdraw8.icollection.impl.vector.ArrayType.obj;
/**
* NodeModifier.
*
* References:
*
* This class has been derived from 'vavr' BitMappedTrie.java.
*
* - Vector.java. Copyright 2023 (c) vavr. MIT License.
* - github.com
*
*/
@FunctionalInterface
interface NodeModifier {
Object apply(Object array, int index);
NodeModifier COPY_NODE = (o, i) -> obj().copy(o, i + 1);
NodeModifier IDENTITY = (o, i) -> o;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy