Skip to content

Instantly share code, notes, and snippets.

@liptga
Created June 14, 2018 23:06
Show Gist options
  • Save liptga/1a95048e38aacd15236ffe4c1a33e30c to your computer and use it in GitHub Desktop.
Save liptga/1a95048e38aacd15236ffe4c1a33e30c to your computer and use it in GitHub Desktop.
package at.liptakg.lombokdemo;
import lombok.Data;
import lombok.EqualsAndHashCode;
@Data
@EqualsAndHashCode(exclude="fooo")
public class SideEffectExample {
private String bar;
private String fooo;
//these are added later:
private String myInternalCalculationResult;
private String thisIsSomeCachedValue;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment