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,Pow<BoolType>,PowFloatingPoint,SetOne,SetZero,Sub<BoolType>,ValueEquals<BoolType>,Type<BoolType>
public class BoolType extends AbstractIntegerType<BoolType> implements BooleanType<BoolType>
ABooleanTypewrapping a single primitivebooleanvariable.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) booleanvalue
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidand(boolean b)voidand(BoolType c)intcompareTo(BoolType other)BoolTypecopy()BoolTypecreateVariable()Creates a newTypevariable which can only store one value.booleanequals(java.lang.Object obj)booleanget()java.math.BigIntegergetBigInteger()intgetBitsPerPixel()intgetInteger()longgetIntegerLong()doublegetMaxValue()doublegetMinValue()inthashCode()voidnot()voidor(boolean b)voidor(BoolType c)voidset(boolean value)voidset(BoolType c)Sets the value of anotherType.voidsetBigInteger(java.math.BigInteger b)voidsetInteger(int f)voidsetInteger(long f)booleanvalueEquals(BoolType t)voidxor(boolean b)voidxor(BoolType c)-
Methods inherited from class net.imglib2.type.numeric.integer.AbstractIntegerType
dec, getMinIncrement, getRealDouble, getRealFloat, inc, setOne, setReal, setReal, setZero, toString
-
Methods inherited from class net.imglib2.type.numeric.real.AbstractRealType
add, div, getImaginaryDouble, getImaginaryFloat, getPhaseDouble, getPhaseFloat, getPowerDouble, getPowerFloat, mul, mul, mul, pow, pow, 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.operators.PowFloatingPoint
pow
-
Methods inherited from interface net.imglib2.type.numeric.RealType
dec, getMinIncrement, inc
-
-
-
-
Method Detail
-
createVariable
public BoolType createVariable()
Description copied from interface:TypeCreates a newTypevariable which can only store one value.- Specified by:
createVariablein interfaceType<BoolType>- Returns:
- a new
Typevariable
-
set
public void set(BoolType c)
Description copied from interface:TypeSets the value of anotherType.
-
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
public void and(BoolType c)
- Specified by:
andin interfaceBooleanType<BoolType>
-
or
public void or(BoolType c)
- Specified by:
orin interfaceBooleanType<BoolType>
-
xor
public void xor(BoolType c)
- 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
public java.math.BigInteger 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
public void setBigInteger(java.math.BigInteger b)
- Specified by:
setBigIntegerin interfaceIntegerType<BoolType>
-
compareTo
public int compareTo(BoolType other)
- Specified by:
compareToin interfacejava.lang.Comparable<BoolType>- Overrides:
compareToin classAbstractIntegerType<BoolType>
-
valueEquals
public boolean valueEquals(BoolType t)
- Specified by:
valueEqualsin interfaceValueEquals<BoolType>- Overrides:
valueEqualsin classAbstractIntegerType<BoolType>
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classAbstractIntegerType<BoolType>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractIntegerType<BoolType>
-
-