Package net.imglib2.type.label
Class BasePairBitType
- java.lang.Object
-
- net.imglib2.type.AbstractBitType<T>
-
- net.imglib2.type.AbstractBit64Type<BasePairBitType>
-
- net.imglib2.type.label.BasePairBitType
-
- All Implemented Interfaces:
java.lang.Comparable<BasePairBitType>,BasePairType<BasePairBitType>,NativeType<BasePairBitType>,ValueEquals<BasePairBitType>,Type<BasePairBitType>
public class BasePairBitType extends AbstractBit64Type<BasePairBitType> implements BasePairType<BasePairBitType>
Representation of base pairs using 3 bits per entry, supported characters: gap, N, A, T, G, C, U Bases are handled using theBasePairBitType.Baseenumeration.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBasePairBitType.Base
-
Field Summary
Fields Modifier and Type Field Description private static intNBITSprivate static NativeTypeFactory<BasePairBitType,LongAccess>typeFactory-
Fields inherited from class net.imglib2.type.AbstractBitType
dataAccess, i, img, nBits
-
-
Constructor Summary
Constructors Constructor Description BasePairBitType()BasePairBitType(NativeImg<?,? extends LongAccess> bitStorage)BasePairBitType(BasePairBitType.Base value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description bytebaseToValue()intcompareTo(BasePairBitType c)voidcomplement()BasePairBitTypecopy()BasePairBitTypecreateVariable()Creates a newTypevariable which can only store one value.BasePairBitTypeduplicateTypeOnSameNativeImg()Creates a newNativeTypewhich stores in the same physical array.BasePairBitType.Baseget()NativeTypeFactory<BasePairBitType,LongAccess>getNativeTypeFactory()voidset(BasePairBitType c)Sets the value of anotherType.voidset(BasePairBitType.Base base)java.lang.StringtoString()booleanvalueEquals(BasePairBitType t)-
Methods inherited from class net.imglib2.type.AbstractBit64Type
getBits, setBits
-
Methods inherited from class net.imglib2.type.AbstractBitType
getEntitiesPerPixel, index, updateContainer
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.imglib2.type.NativeType
decIndex, decIndex, getIndex, incIndex, incIndex, updateIndex
-
-
-
-
Field Detail
-
NBITS
private static final int NBITS
- See Also:
- Constant Field Values
-
typeFactory
private static final NativeTypeFactory<BasePairBitType,LongAccess> typeFactory
-
-
Constructor Detail
-
BasePairBitType
public BasePairBitType(NativeImg<?,? extends LongAccess> bitStorage)
-
BasePairBitType
public BasePairBitType(BasePairBitType.Base value)
-
BasePairBitType
public BasePairBitType()
-
-
Method Detail
-
duplicateTypeOnSameNativeImg
public BasePairBitType duplicateTypeOnSameNativeImg()
Description copied from interface:NativeTypeCreates a newNativeTypewhich stores in the same physical array. This is only used internally.- Specified by:
duplicateTypeOnSameNativeImgin interfaceNativeType<BasePairBitType>- Returns:
- a new
NativeTypeinstance working on the sameNativeImg
-
getNativeTypeFactory
public NativeTypeFactory<BasePairBitType,LongAccess> getNativeTypeFactory()
- Specified by:
getNativeTypeFactoryin interfaceNativeType<BasePairBitType>- Specified by:
getNativeTypeFactoryin classAbstractBitType<BasePairBitType>
-
set
public void set(BasePairBitType.Base base)
- Specified by:
setin interfaceBasePairType<BasePairBitType>
-
get
public BasePairBitType.Base get()
- Specified by:
getin interfaceBasePairType<BasePairBitType>
-
compareTo
public int compareTo(BasePairBitType c)
- Specified by:
compareToin interfacejava.lang.Comparable<BasePairBitType>
-
complement
public void complement()
- Specified by:
complementin interfaceBasePairType<BasePairBitType>
-
baseToValue
public byte baseToValue()
- Specified by:
baseToValuein interfaceBasePairType<BasePairBitType>
-
set
public void set(BasePairBitType c)
Description copied from interface:TypeSets the value of anotherType.- Specified by:
setin interfaceType<BasePairBitType>- Parameters:
c- the new value
-
createVariable
public BasePairBitType createVariable()
Description copied from interface:TypeCreates a newTypevariable which can only store one value.- Specified by:
createVariablein interfaceType<BasePairBitType>- Returns:
- a new
Typevariable
-
copy
public BasePairBitType copy()
Description copied from interface:Type- Specified by:
copyin interfaceType<BasePairBitType>- Returns:
- a new
Typevariable
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
valueEquals
public boolean valueEquals(BasePairBitType t)
- Specified by:
valueEqualsin interfaceValueEquals<BasePairBitType>
-
-