Class Bit
└
Value
└
Object
Implemented Interfaces:
- Source Code:
- View Source
Initializer Summary
Inherited Fields:
Instance Method Summary
-- equals operator --= (other :):Bit Bit - Returns
trueif these objects are equal. -- not equal operator --!= (other :):Bit Bit - Returns
trueif these objects are not equal. -- not operator --! ():Bit - Returns the logical inverse of this
Bit, so!trueisfalseand!falseistrue. -- logical or operator --| (other :):Bit Bit - Returns the logical OR of two
Bits. -- logical and operator --& (other :):Bit Bit - Returns the logical AND of two
Bits. -- logical exclusive or operator --~ (other :):Bit Bit - Returns the logical XOR of two
Bits. choose<T> (ifTrue :,T ifFalse :):T T - Returns
ifTrueorifFalsebased on the value of thisBit. format (fmt :):String String - Chooses one of two strings based on the value of this
Bit.
Initializers
init
(value :builtin_bit
):Bit
- Parameters:
-
- value of typevalue builtin_bit
Instance Methods
Returns true if these objects are equal.
- Parameters:
-
- value of typeother Bit
- Overrides:
- frost.core.Equatable.=
Returns true if these objects are not equal.
- Parameters:
-
- value of typeother Bit
- Overrides:
- frost.core.Equatable.!=
-- not operator --
function !
():Bit
Returns the logical inverse of this Bit, so !true is false and !false is true.
Returns the logical OR of two Bits.
- Parameters:
-
- value of typeother Bit
Returns the logical AND of two Bits.
- Parameters:
-
- value of typeother Bit
Returns the logical XOR of two Bits.
- Parameters:
-
- value of typeother Bit
Chooses one of two strings based on the value of this Bit. The format string must be of the
form trueString|falseString, and the result will be trueString if this Bit is true,
otherwise falseString. If multiple '|' characters occur in the format string, only the first
one is significant and the others are part of the false string.
- Parameters:
-
- value of typefmt String
- Overrides:
- frost.core.Formattable.format