Skip to content

Instantly share code, notes, and snippets.

@laramartin
Created September 14, 2018 16:37
Show Gist options
  • Save laramartin/b4932164b9ea29ebd254b4039b9d0837 to your computer and use it in GitHub Desktop.
Save laramartin/b4932164b9ea29ebd254b4039b9d0837 to your computer and use it in GitHub Desktop.
// Gamer.java
import [...]
public final class Gamer {
@NotNull
private final String username;
@NotNull
public final String getUsername() {
return this.username;
}
public Gamer(@NotNull String username) {
Intrinsics.checkParameterIsNotNull(username, "username");
super();
this.username = username;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment