Package net.imglib2.type.logic
Class BoolType
- All Implemented Interfaces:
Comparable<BoolType>,BooleanType<BoolType>,ComplexType<BoolType>,IntegerType<BoolType>,NumericType<BoolType>,RealType<BoolType>,Add<BoolType>,Div<BoolType>,Mul<BoolType>,MulFloatingPoint,SetOne,SetZero,Sub<BoolType>,ValueEquals<BoolType>,Type<BoolType>
A
BooleanType wrapping a single primitive boolean variable.- Author:
- Tobias Pietzsch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidand(boolean b) voidintcopy()Creates a newTypevariable which can only store one value.booleanget()intintlongdoubledoublevoidnot()voidor(boolean b) voidvoidset(boolean value) voidSets the value of anotherType.voidvoidsetInteger(int f) voidsetInteger(long f) booleanvoidxor(boolean b) voidMethods inherited from class net.imglib2.type.numeric.integer.AbstractIntegerType
dec, getMinIncrement, getRealDouble, getRealFloat, hashCode, inc, setOne, setReal, setReal, setZero, toStringMethods inherited from class net.imglib2.type.numeric.real.AbstractRealType
add, div, equals, getImaginaryDouble, getImaginaryFloat, getPhaseDouble, getPhaseFloat, getPowerDouble, getPowerFloat, mul, mul, mul, setImaginary, setImaginary, subMethods inherited from class net.imglib2.type.numeric.complex.AbstractComplexType
complexConjugate, setComplexNumber, setComplexNumberMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.imglib2.type.numeric.ComplexType
complexConjugate, getImaginaryDouble, getImaginaryFloat, getPhaseDouble, getPhaseFloat, getPowerDouble, getPowerFloat, getRealDouble, getRealFloat, setComplexNumber, setComplexNumber, setImaginary, setImaginary, setReal, setRealMethods inherited from interface net.imglib2.type.operators.MulFloatingPoint
mul, mulMethods inherited from interface net.imglib2.type.numeric.RealType
dec, getMinIncrement, inc
-
Constructor Details
-
BoolType
public BoolType() -
BoolType
public BoolType(boolean value) -
BoolType
public BoolType(T type)
-
-
Method Details
-
createVariable
Description copied from interface:TypeCreates a newTypevariable which can only store one value.- Specified by:
createVariablein interfaceType<BoolType>- Returns:
- a new
Typevariable
-
copy
Description copied from interface:Type -
set
Description copied from interface:TypeSets the value of anotherType. -
compareTo
- Specified by:
compareToin interfaceComparable<BoolType>- Overrides:
compareToin classAbstractIntegerType<BoolType>
-
get
public boolean get()- Specified by:
getin interfaceBooleanType<BoolType>
-
set
public void set(boolean value) - Specified by:
setin interfaceBooleanType<BoolType>
-
and
public void and(boolean b) -
or
public void or(boolean b) -
xor
public void xor(boolean b) -
and
- Specified by:
andin interfaceBooleanType<BoolType>
-
or
- Specified by:
orin interfaceBooleanType<BoolType>
-
xor
- Specified by:
xorin interfaceBooleanType<BoolType>
-
not
public void not()- Specified by:
notin interfaceBooleanType<BoolType>
-
getMaxValue
public double getMaxValue()- Specified by:
getMaxValuein interfaceRealType<BoolType>
-
getMinValue
public double getMinValue()- Specified by:
getMinValuein interfaceRealType<BoolType>
-
getBitsPerPixel
public int getBitsPerPixel()- Specified by:
getBitsPerPixelin interfaceRealType<BoolType>
-
getInteger
public int getInteger()- Specified by:
getIntegerin interfaceIntegerType<BoolType>
-
getIntegerLong
public long getIntegerLong()- Specified by:
getIntegerLongin interfaceIntegerType<BoolType>
-
getBigInteger
- Specified by:
getBigIntegerin interfaceIntegerType<BoolType>
-
setInteger
public void setInteger(int f) - Specified by:
setIntegerin interfaceIntegerType<BoolType>
-
setInteger
public void setInteger(long f) - Specified by:
setIntegerin interfaceIntegerType<BoolType>
-
setBigInteger
- Specified by:
setBigIntegerin interfaceIntegerType<BoolType>
-
valueEquals
- Specified by:
valueEqualsin interfaceValueEquals<BoolType>
-