Package net.imglib2.img.sparse
Class ByteNtree
- java.lang.Object
-
- net.imglib2.img.sparse.ByteNtree
-
- All Implemented Interfaces:
ByteAccess,DataAccess,NtreeAccess<java.lang.Byte,ByteNtree>
public final class ByteNtree extends java.lang.Object implements ByteAccess, NtreeAccess<java.lang.Byte,ByteNtree>
ByteAccess based on aNtree<Byte>.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ByteNtreecreateInstance(long[] pos)Ntree<java.lang.Byte>getCurrentStorageNtree()bytegetValue(int index)voidsetValue(int index, byte 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.Byte> data
-
-
Constructor Detail
-
ByteNtree
public ByteNtree(long[] dimensions, long[] position, byte value)
-
ByteNtree
private ByteNtree(Ntree<java.lang.Byte> data, long[] position)
-
-
Method Detail
-
getValue
public byte getValue(int index)
- Specified by:
getValuein interfaceByteAccess
-
setValue
public void setValue(int index, byte value)- Specified by:
setValuein interfaceByteAccess
-
getCurrentStorageNtree
public Ntree<java.lang.Byte> getCurrentStorageNtree()
- Specified by:
getCurrentStorageNtreein interfaceNtreeAccess<java.lang.Byte,ByteNtree>
-
createInstance
public ByteNtree createInstance(long[] pos)
- Specified by:
createInstancein interfaceNtreeAccess<java.lang.Byte,ByteNtree>
-
-