Package net.imglib2.img.sparse
Class LongNtree
- java.lang.Object
-
- net.imglib2.img.sparse.LongNtree
-
- All Implemented Interfaces:
DataAccess,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>.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LongNtreecreateInstance(long[] pos)Ntree<java.lang.Long>getCurrentStorageNtree()longgetValue(int index)voidsetValue(int index, long value)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.imglib2.img.sparse.NtreeAccess
createView
-
-
-
-
Field Detail
-
position
private final long[] position
-
data
private final Ntree<java.lang.Long> data
-
-
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:
getValuein interfaceLongAccess
-
setValue
public void setValue(int index, long value)- Specified by:
setValuein interfaceLongAccess
-
getCurrentStorageNtree
public Ntree<java.lang.Long> getCurrentStorageNtree()
- Specified by:
getCurrentStorageNtreein interfaceNtreeAccess<java.lang.Long,LongNtree>
-
createInstance
public LongNtree createInstance(long[] pos)
- Specified by:
createInstancein interfaceNtreeAccess<java.lang.Long,LongNtree>
-
-