Last active
May 26, 2017 20:42
-
-
Save naturalwarren/7dda1d297c8f558b058645259d4440b5 to your computer and use it in GitHub Desktop.
Rider Model with Nullness Annotations
This file contains hidden or 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 class Rider { | |
@NonNull private String firstName; | |
@NonNull private String lastName; | |
public Rider(@NonNull String firstname, @NonNull String lastName) { | |
this.firstName = firstName; | |
this.lastName = lastName; | |
} | |
@NonNull | |
public String firstName() { | |
return firstName; | |
} | |
@NonNull | |
public String lastName() { | |
return lastName; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment