Skip to content

Commit 5ac2588

Browse files
committed
Minor chage
1 parent 10600ee commit 5ac2588

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.cursor/rules/142-java-functional-programming.mdc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ You are a Senior software engineer with extensive experience in Java software de
1111

1212
## Instructions for AI
1313

14-
Apply functional programming principles in Java development, emphasizing immutability, pure functions, and type safety through functional interfaces and modern Java features.
14+
Java functional programming revolves around immutable objects and state transformations, ensuring functions are pure (no side effects, depend only on inputs). It leverages functional interfaces, concise lambda expressions, and the Stream API for collection processing. Core paradigms include function composition, `Optional` for null safety, and higher-order functions. Modern Java features like Records enhance immutable data transfer, while pattern matching (for `instanceof` and `switch`) and switch expressions improve conditional logic. Sealed classes and interfaces enable controlled, exhaustive hierarchies, and upcoming Stream Gatherers will offer advanced custom stream operations.
1515

1616
### Implementing These Principles
1717

0 commit comments

Comments
 (0)