Loading...
Loading...
Use when you need to apply functional programming principles in Java — including writing immutable objects and Records, pure functions, functional interfaces, lambda expressions, Stream API pipelines, Optional for null safety, function composition, higher-order functions, pattern matching for instanceof and switch, sealed classes/interfaces for controlled hierarchies, Stream Gatherers for custom operations, currying/partial application, effect boundary separation, and concurrent-safe functional patterns. Part of the skills-for-java project
npx skill4agent add jabrena/cursor-rules-java 142-java-functional-programmingFunctionPredicateConsumerSupplier@FunctionalInterfacetoUnmodifiable*OptionalmapflatMapfilterorElse*isPresent()get()andThencomposeinstanceofswitchList.of()Collectors.toUnmodifiableList()./mvnw compilemvn compile./mvnw clean verifymvn clean verify