Package net.imglib2.img.sparse
Class ShortNtree
- java.lang.Object
-
- net.imglib2.img.sparse.ShortNtree
-
- All Implemented Interfaces:
DataAccess,ShortAccess,NtreeAccess<java.lang.Short,ShortNtree>
public final class ShortNtree extends java.lang.Object implements ShortAccess, NtreeAccess<java.lang.Short,ShortNtree>
-
-
Constructor Summary
Constructors Constructor Description ShortNtree(long[] dimensions, long[] position, short value)ShortNtree(Ntree<java.lang.Short> data, long[] position)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ShortNtreecreateInstance(long[] pos)Ntree<java.lang.Short>getCurrentStorageNtree()shortgetValue(int index)voidsetValue(int index, short 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.Short> data
-
-
Constructor Detail
-
ShortNtree
public ShortNtree(long[] dimensions, long[] position, short value)
-
ShortNtree
public ShortNtree(Ntree<java.lang.Short> data, long[] position)
-
-
Method Detail
-
getValue
public short getValue(int index)
- Specified by:
getValuein interfaceShortAccess
-
setValue
public void setValue(int index, short value)- Specified by:
setValuein interfaceShortAccess
-
getCurrentStorageNtree
public Ntree<java.lang.Short> getCurrentStorageNtree()
- Specified by:
getCurrentStorageNtreein interfaceNtreeAccess<java.lang.Short,ShortNtree>
-
createInstance
public ShortNtree createInstance(long[] pos)
- Specified by:
createInstancein interfaceNtreeAccess<java.lang.Short,ShortNtree>
-
-