Class CounterApp
java.lang.Object
com.guinetik.hexafun.examples.counter.CounterApp
Counter application demonstrating the improved HexaFun DSL.
Key improvements showcased:
- Type-safe keys (UseCaseKey) instead of strings
- Cleaner syntax: validate/handle instead of from/to
- Implicit closure: no .and() chaining needed
- Validator chaining: multiple .validate() calls
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd amount to a counter.Decrement a counter.getApp()Get the underlying HexaApp for testing.Increment a counter.static void
-
Constructor Details
-
CounterApp
public CounterApp()
-
-
Method Details
-
increment
Increment a counter. -
decrement
Decrement a counter. -
add
Add amount to a counter. -
getApp
Get the underlying HexaApp for testing. -
main
-