Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package it.dia_net.droid.mydia;
- import java.util.Date;
- /**
- * Created by Nello on 10/01/2018.
- */
- public class Straordinario {
- public final Date date;
- public final int total;
- private Straordinario(Date date, int total) {
- this.date = date;
- this.total = total;
- }
- public static class Builder {
- private Date date;
- private int total;
- public Builder withDate(Date date) {
- this.date = date;
- return this;
- }
- public Builder withTotal(int total) {
- this.total = total;
- return this;
- }
- public Straordinario getStraordinario() {
- return new Straordinario(date, total);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement