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 TypeMethodDescriptionvoid
and
(boolean b) void
int
copy()
Creates a newType
variable which can only store one value.boolean
get()
int
int
long
double
double
void
not()
void
or
(boolean b) void
void
set
(boolean value) void
Sets the value of anotherType
.void
void
setInteger
(int f) void
setInteger
(long f) boolean
void
xor
(boolean b) void
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
-
Constructor Details
-
BoolType
public BoolType() -
BoolType
public BoolType(boolean value) -
BoolType
public BoolType(T type)
-
-
Method Details
-
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
-
copy
Description copied from interface:Type
-
set
Description copied from interface:Type
Sets the value of anotherType
. -
compareTo
- Specified by:
compareTo
in interfaceComparable<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
- Specified by:
and
in interfaceBooleanType<BoolType>
-
or
- Specified by:
or
in interfaceBooleanType<BoolType>
-
xor
- 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
- 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
- Specified by:
setBigInteger
in interfaceIntegerType<BoolType>
-
valueEquals
- Specified by:
valueEquals
in interfaceValueEquals<BoolType>
-