VowedControllerMaid<Box> class
A VowedControllerMaid is a ControllerMaid that vow to secure the box forever. The box will never be take by another box. Any trying will result a BreakingVowException without actually works.
- Inheritance
-
- Object
- ControllerMaid<
Box> - VowedControllerMaid
Properties
- box ↔ Box
-
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
callMeOnTaken(
void request(Box oldBox, Box newBox)) → void -
request
is a function that takes two arguments, the old box and the new box.override -
cancelRequest(
void request(Box oldBox, Box newBox)) → void -
Cancel a previous
request
added by callMeOnTaken.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
serve(
) → Box -
Serve the box that maid is holding.
inherited
-
take(
Box box) → Box -
Take another box then return the old box.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator +(
void request(Box oldBox, Box newBox)) → ControllerMaid< Box> -
C# style operator overloading of callMeOnTaken.
inherited
-
operator -(
void request(Box oldBox, Box newBox)) → ControllerMaid< Box> -
C# style operator overloading of cancelRequest.
inherited
-
operator <=(
Box box) → Box -
Alternative of take.
inherited
-
operator ==(
Object other) → bool -
The equality operator.
inherited
-
operator ~(
) → Box -
Alternative of serve.
inherited