CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/maven-org-projectlombok--lombok

Project Lombok is a java library that automatically plugs into your editor and build tools, spicing up your java. Never write another getter or equals method again, with one annotation your class has a fully featured builder, automate your logging variables, and much more.

Pending
Overview
Eval results
Files

object-methods.mddocs/

Object Methods

Automatic generation of toString, equals, and hashCode methods with extensive customization options.

Capabilities

@ToString

@Target(ElementType.TYPE)
@Retention(RetentionPolicy.SOURCE)
public @interface ToString {
    boolean includeFieldNames() default true;
    String[] exclude() default {};
    String[] of() default {};
    boolean callSuper() default false;
    boolean doNotUseGetters() default false;
    boolean onlyExplicitlyIncluded() default false;
}

@EqualsAndHashCode

@Target(ElementType.TYPE)
@Retention(RetentionPolicy.SOURCE)
public @interface EqualsAndHashCode {
    String[] exclude() default {};
    String[] of() default {};
    boolean callSuper() default false;
    boolean doNotUseGetters() default false;
    CacheStrategy cacheStrategy() default CacheStrategy.NEVER;
    AnyAnnotation[] onParam() default {};
    boolean onlyExplicitlyIncluded() default false;
    
    public enum CacheStrategy {
        NEVER, LAZY
    }
}

Usage Examples:

@ToString(exclude = "password")
@EqualsAndHashCode(of = {"id", "email"})
public class User {
    private Long id;
    private String email;
    private String password;
    private String name;
}

Install with Tessl CLI

npx tessl i tessl/maven-org-projectlombok--lombok

docs

builder-pattern.md

constructors.md

data-classes.md

experimental.md

immutable-patterns.md

index.md

logging.md

object-methods.md

property-access.md

type-inference.md

utilities.md

tile.json