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