Package net.imglib2.img.sparse
Class LongNtree
- java.lang.Object
-
- net.imglib2.img.sparse.LongNtree
-
- All Implemented Interfaces:
LongAccess
,NtreeAccess<java.lang.Long,LongNtree>
public final class LongNtree extends java.lang.Object implements LongAccess, NtreeAccess<java.lang.Long,LongNtree>
LongAccess based on aNtree
<Longeger>
.- Author:
- Tobias Pietzsch
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LongNtree
createInstance(long[] pos)
Ntree<java.lang.Long>
getCurrentStorageNtree()
long
getValue(int index)
void
setValue(int index, long value)
-
-
-
Constructor Detail
-
LongNtree
public LongNtree(long[] dimensions, long[] position, long value)
Standard constructor called by factory- Parameters:
dimensions
- The dimensions of the treevalue
- Uniform value of created nodes of the tree
-
LongNtree
public LongNtree(Ntree<java.lang.Long> data, long[] position)
-
-
Method Detail
-
getValue
public long getValue(int index)
- Specified by:
getValue
in interfaceLongAccess
-
setValue
public void setValue(int index, long value)
- Specified by:
setValue
in interfaceLongAccess
-
getCurrentStorageNtree
public Ntree<java.lang.Long> getCurrentStorageNtree()
- Specified by:
getCurrentStorageNtree
in interfaceNtreeAccess<java.lang.Long,LongNtree>
-
createInstance
public LongNtree createInstance(long[] pos)
- Specified by:
createInstance
in interfaceNtreeAccess<java.lang.Long,LongNtree>
-
-