java-engineer
Installation
SKILL.md
Java 21 — Language Features & Idioms
Records
// Immutable data carrier — generates constructor, accessors, equals, hashCode, toString
public record Money(BigDecimal amount, Currency currency) {
// Compact constructor for validation
public Money {
Objects.requireNonNull(amount);
if (amount.compareTo(BigDecimal.ZERO) < 0) throw new IllegalArgumentException("negative amount");
}
public Money add(Money other) {
if (!currency.equals(other.currency)) throw new IllegalArgumentException("currency mismatch");
return new Money(amount.add(other.amount), currency);
}
}
Related skills
More from jetbrains/junie-extensions
sql-patterns
SQL and database migration best practices: Flyway/Liquibase, query optimization, indexing. Use when working with SQL queries or database migrations.
1redis-best-practices
Redis development best practices for caching, data structures, and high-performance key-value operations
1spring-boot-engineer
Generates Spring Boot 3.x configurations, creates REST controllers, implements Spring Security 6 authentication flows, sets up Spring Data JPA repositories, configures reactive WebFlux endpoints, and applies Resilience4j fault-tolerance patterns. Use when building Spring Boot 3.x applications, microservices, or reactive Java/Kotlin applications.
1