File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -99,12 +99,12 @@ <h1>LiquidJava Quiz</h1>
9999</ ul >
100100</ li >
101101< li >
102- < p > In LiquidJava, to specify that a method should only be called when in the < code > open </ code > state, we should use:</ p >
102+ < p > In LiquidJava, to specify that a method should only be called when the object is in a certain state, we should use a :</ p >
103103< ul class ="radio-list ">
104- < li > < label > < input type ="radio " data-question ="1 " data-content ="0 " /> < code > @StateRefinement("state == 'open(this)'") </ code > </ label > </ li >
105- < li > < label > < input type ="radio " data-question ="1 " data-content ="0 " /> < code > @Refinement("state == 'open'") </ code > </ label > </ li >
106- < li > < label > < input type ="radio " data-question ="0 " data-content ="1 " /> < code > @StateRefinement(from="open(this)") </ code > </ label > </ li >
107- < li > < label > < input type ="radio " data-question ="1 " data-content ="0 " /> < code > @Refinement(state="open") </ code > </ label > </ li >
104+ < li > < label > < input type ="radio " data-question ="0 " data-content ="1 " /> < code > @StateRefinement</ code > </ label > </ li >
105+ < li > < label > < input type ="radio " data-question ="1 " data-content ="0 " /> < code > @Refinement</ code > </ label > </ li >
106+ < li > < label > < input type ="radio " data-question ="1 " data-content ="0 " /> < code > @RefinementAlias </ code > </ label > </ li >
107+ < li > < label > < input type ="radio " data-question ="1 " data-content ="0 " /> < code > @RefinementPredicate </ code > </ label > </ li >
108108</ ul >
109109</ li >
110110< li >
@@ -139,7 +139,7 @@ <h1>LiquidJava Quiz</h1>
139139< ul class ="radio-list ">
140140< li > < label > < input type ="radio " data-question ="1 " data-content ="0 " /> < code > @Refinement("size = 0")</ code > </ label > </ li >
141141< li > < label > < input type ="radio " data-question ="1 " data-content ="0 " /> < code > @StateRefinement(from="size(this) > 0")</ code > </ label > </ li >
142- < li > < label > < input type ="radio " data-question ="1 " data-content ="0 " /> < code > @Refinement("size++ ")</ code > </ label > </ li >
142+ < li > < label > < input type ="radio " data-question ="1 " data-content ="0 " /> < code > @Refinement("size == 0 ")</ code > </ label > </ li >
143143< li > < label > < input type ="radio " data-question ="0 " data-content ="1 " /> < code > @StateRefinement(to="size(this) == size(old(this)) + 1")</ code > </ label > </ li >
144144</ ul >
145145</ li >
You can’t perform that action at this time.
0 commit comments