Package net.imglib2.type.logic
Class BoolType
- java.lang.Object
-
- net.imglib2.type.numeric.complex.AbstractComplexType<T>
-
- net.imglib2.type.numeric.real.AbstractRealType<T>
-
- net.imglib2.type.numeric.integer.AbstractIntegerType<BoolType>
-
- net.imglib2.type.logic.BoolType
-
- All Implemented Interfaces:
java.lang.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>
public class BoolType extends AbstractIntegerType<BoolType> implements BooleanType<BoolType>
ABooleanType
wrapping a single primitiveboolean
variable.- Author:
- Tobias Pietzsch
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
and(boolean b)
void
and(BoolType c)
int
compareTo(BoolType o)
BoolType
copy()
BoolType
createVariable()
Creates a newType
variable which can only store one value.boolean
get()
java.math.BigInteger
getBigInteger()
int
getBitsPerPixel()
int
getInteger()
long
getIntegerLong()
double
getMaxValue()
double
getMinValue()
void
not()
void
or(boolean b)
void
or(BoolType c)
void
set(boolean value)
void
set(BoolType c)
Sets the value of anotherType
.void
setBigInteger(java.math.BigInteger b)
void
setInteger(int f)
void
setInteger(long f)
boolean
valueEquals(BoolType t)
void
xor(boolean b)
void
xor(BoolType c)
-
Methods inherited from class net.imglib2.type.numeric.integer.AbstractIntegerType
dec, getMinIncrement, getRealDouble, getRealFloat, hashCode, inc, setOne, setReal, setReal, setZero, toString
-
Methods inherited from class net.imglib2.type.numeric.real.AbstractRealType
add, div, equals, getImaginaryDouble, getImaginaryFloat, getPhaseDouble, getPhaseFloat, getPowerDouble, getPowerFloat, mul, mul, mul, setImaginary, setImaginary, sub
-
Methods inherited from class net.imglib2.type.numeric.complex.AbstractComplexType
complexConjugate, setComplexNumber, setComplexNumber
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface net.imglib2.type.numeric.ComplexType
complexConjugate, getImaginaryDouble, getImaginaryFloat, getPhaseDouble, getPhaseFloat, getPowerDouble, getPowerFloat, getRealDouble, getRealFloat, setComplexNumber, setComplexNumber, setImaginary, setImaginary, setReal, setReal
-
Methods inherited from interface net.imglib2.type.operators.MulFloatingPoint
mul, mul
-
Methods inherited from interface net.imglib2.type.numeric.RealType
dec, getMinIncrement, inc
-
-
-
-
Method Detail
-
createVariable
public BoolType createVariable()
Description copied from interface:Type
Creates a newType
variable which can only store one value.- Specified by:
createVariable
in interfaceType<BoolType>
- Returns:
- a new
Type
variable
-
set
public void set(BoolType c)
Description copied from interface:Type
Sets the value of anotherType
.
-
compareTo
public int compareTo(BoolType o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<BoolType>
- Overrides:
compareTo
in classAbstractIntegerType<BoolType>
-
get
public boolean get()
- Specified by:
get
in interfaceBooleanType<BoolType>
-
set
public void set(boolean value)
- Specified by:
set
in interfaceBooleanType<BoolType>
-
and
public void and(boolean b)
-
or
public void or(boolean b)
-
xor
public void xor(boolean b)
-
and
public void and(BoolType c)
- Specified by:
and
in interfaceBooleanType<BoolType>
-
or
public void or(BoolType c)
- Specified by:
or
in interfaceBooleanType<BoolType>
-
xor
public void xor(BoolType c)
- Specified by:
xor
in interfaceBooleanType<BoolType>
-
not
public void not()
- Specified by:
not
in interfaceBooleanType<BoolType>
-
getMaxValue
public double getMaxValue()
- Specified by:
getMaxValue
in interfaceRealType<BoolType>
-
getMinValue
public double getMinValue()
- Specified by:
getMinValue
in interfaceRealType<BoolType>
-
getBitsPerPixel
public int getBitsPerPixel()
- Specified by:
getBitsPerPixel
in interfaceRealType<BoolType>
-
getInteger
public int getInteger()
- Specified by:
getInteger
in interfaceIntegerType<BoolType>
-
getIntegerLong
public long getIntegerLong()
- Specified by:
getIntegerLong
in interfaceIntegerType<BoolType>
-
getBigInteger
public java.math.BigInteger getBigInteger()
- Specified by:
getBigInteger
in interfaceIntegerType<BoolType>
-
setInteger
public void setInteger(int f)
- Specified by:
setInteger
in interfaceIntegerType<BoolType>
-
setInteger
public void setInteger(long f)
- Specified by:
setInteger
in interfaceIntegerType<BoolType>
-
setBigInteger
public void setBigInteger(java.math.BigInteger b)
- Specified by:
setBigInteger
in interfaceIntegerType<BoolType>
-
valueEquals
public boolean valueEquals(BoolType t)
- Specified by:
valueEquals
in interfaceValueEquals<BoolType>
-
-