-
-
Save Gizmodo/d6d7ad967c792af854ea9e0499c151db to your computer and use it in GitHub Desktop.
Java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public BaseJavaClass setInCircle(Boolean inCircle) { | |
this.inCircle = inCircle; | |
return this; | |
} | |
public BaseJavaClass setNeedFit(Boolean needFit) { | |
this.needFit = needFit; | |
return this; | |
} | |
public BaseJavaClass setSize(Size size) { | |
this.size = size; | |
return this; | |
} | |
public BaseJavaClass setDefaultDrawableResource(int defaultDrawableResource) { | |
this.defaultDrawableResource = defaultDrawableResource; | |
return this; | |
} | |
void useCase(){ | |
BaseJavaClass some = new BaseJavaClass() | |
.setInCircle(true) | |
.setNeedFit(true) | |
.setDefaultDrawableResource(0) | |
.setSize(new Size(128, 128)); | |
} | |
static BaseJavaClass pattern1() { | |
return new BaseJavaClass() | |
.setInCircle(true) | |
.setNeedFit(true) | |
.setSize(new Size(128, 128)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment