Package org.eolang.jeo
Class Improvement.Mock
- java.lang.Object
-
- org.eolang.jeo.Improvement.Mock
-
- All Implemented Interfaces:
Improvement
- Enclosing interface:
- Improvement
public static final class Improvement.Mock extends Object implements Improvement
Mock improvement.- Since:
- 0.1.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eolang.jeo.Improvement
Improvement.Dummy, Improvement.Mock
-
-
Constructor Summary
Constructors Constructor Description Mock()Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<Representation>apply(Collection<? extends Representation> representations)Apply the improvement.booleanisApplied()Check if the boost was applied.
-
-
-
Method Detail
-
apply
public Collection<Representation> apply(Collection<? extends Representation> representations)
Description copied from interface:ImprovementApply the improvement.- Specified by:
applyin interfaceImprovement- Parameters:
representations- IRs to optimize.- Returns:
- Optimized IRs.
-
isApplied
public boolean isApplied()
Check if the boost was applied.- Returns:
- True if the boost was applied.
-
-