Class BasePairBitType
- All Implemented Interfaces:
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 the
BasePairBitType.Base enumeration.-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final NativeTypeFactory<BasePairBitType, LongAccess> Fields inherited from class AbstractBitType
dataAccess, i, img, nBits -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyteintvoidcopy()Creates a newTypevariable which can only store one value.Creates a newNativeTypewhich stores in the same physical array.get()voidSets the value of anotherType.voidset(BasePairBitType.Base base) toString()booleanMethods inherited from class AbstractBit64Type
getBits, setBitsMethods inherited from class AbstractBitType
getEntitiesPerPixel, index, updateContainerMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface NativeType
decIndex, decIndex, getIndex, incIndex, incIndex, updateIndex
-
Field Details
-
NBITS
private static final int NBITS- See Also:
-
typeFactory
-
-
Constructor Details
-
BasePairBitType
-
BasePairBitType
-
BasePairBitType
public BasePairBitType()
-
-
Method Details
-
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
- Specified by:
getNativeTypeFactoryin interfaceNativeType<BasePairBitType>- Specified by:
getNativeTypeFactoryin classAbstractBitType<BasePairBitType>
-
set
- Specified by:
setin interfaceBasePairType<BasePairBitType>
-
get
- Specified by:
getin interfaceBasePairType<BasePairBitType>
-
compareTo
- Specified by:
compareToin interfaceComparable<BasePairBitType>
-
complement
public void complement()- Specified by:
complementin interfaceBasePairType<BasePairBitType>
-
baseToValue
public byte baseToValue()- Specified by:
baseToValuein interfaceBasePairType<BasePairBitType>
-
set
Description copied from interface:TypeSets the value of anotherType.- Specified by:
setin interfaceType<BasePairBitType>- Parameters:
c- the new value
-
createVariable
Description copied from interface:TypeCreates a newTypevariable which can only store one value.- Specified by:
createVariablein interfaceType<BasePairBitType>- Returns:
- a new
Typevariable
-
copy
Description copied from interface:Type- Specified by:
copyin interfaceType<BasePairBitType>- Returns:
- a new
Typevariable
-
toString
-
valueEquals
- Specified by:
valueEqualsin interfaceValueEquals<BasePairBitType>
-