Class BoolType
- All Implemented Interfaces:
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>
A
BooleanType wrapping a single primitive boolean variable.-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionBoolType()BoolType(boolean value) <T extends BooleanType<T>>BoolType(T type) -
Method Summary
Modifier and TypeMethodDescriptionvoidand(boolean b) voidintcopy()Creates a newTypevariable which can only store one value.booleanbooleanget()intintlongdoubledoubleinthashCode()voidnot()voidor(boolean b) voidvoidset(boolean value) voidSets the value of anotherType.voidvoidsetInteger(int f) voidsetInteger(long f) booleanvoidxor(boolean b) voidMethods inherited from class AbstractIntegerType
dec, getMinIncrement, getRealDouble, getRealFloat, inc, setOne, setReal, setReal, setZero, toStringMethods inherited from class AbstractRealType
add, div, getImaginaryDouble, getImaginaryFloat, getPhaseDouble, getPhaseFloat, getPowerDouble, getPowerFloat, mul, mul, mul, pow, pow, setImaginary, setImaginary, subMethods inherited from class AbstractComplexType
complexConjugate, setComplexNumber, setComplexNumberMethods inherited from interface ComplexType
complexConjugate, getImaginaryDouble, getImaginaryFloat, getPhaseDouble, getPhaseFloat, getPowerDouble, getPowerFloat, getRealDouble, getRealFloat, setComplexNumber, setComplexNumber, setImaginary, setImaginary, setReal, setRealMethods inherited from interface MulFloatingPoint
mul, mulMethods inherited from interface PowFloatingPoint
powMethods inherited from interface RealType
dec, getMinIncrement, inc
-
Field Details
-
value
boolean value
-
-
Constructor Details
-
BoolType
public BoolType() -
BoolType
public BoolType(boolean value) -
BoolType
-
-
Method Details
-
createVariable
-
copy
-
set
-
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>
-
compareTo
- Specified by:
compareToin interfaceComparable<BoolType>- Overrides:
compareToin classAbstractIntegerType<BoolType>
-
valueEquals
- Specified by:
valueEqualsin interfaceValueEquals<BoolType>- Overrides:
valueEqualsin classAbstractIntegerType<BoolType>
-
equals
- Overrides:
equalsin classAbstractIntegerType<BoolType>
-
hashCode
public int hashCode()- Overrides:
hashCodein classAbstractIntegerType<BoolType>
-