add Sparse2DLongArray

This commit is contained in:
2019-12-26 15:44:58 +01:00
parent ec7a03f068
commit c6f5a3d2fe
7 changed files with 940 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
package org.lucares.collections;
/**
* Consumer for iterating over {@link Sparse2DLongArray}s.
*/
public interface TripleLongConsumer {
/**
* Performs this operation on the given arguments
* @param x the index in the x-dimension
* @param y the index in the y-dimension
* @param value the value at {@code x}×{@code y}
*/
public void apply(long x, long y, long value);
}