/** Default constructor: provides reasonable defaults for things. */ public TurboIssue(String repoId, int id, String title) { this.id = id; this.creator = ""; this.createdAt = LocalDateTime.now(); this.isPullRequest = false; mutableFieldDefaults(); this.title = title; this.repoId = repoId; }
/** Immutable-conscious constructor. */ public TurboIssue( String repoId, int id, String title, String creator, LocalDateTime createdAt, boolean isPullRequest) { this.id = id; this.creator = creator; this.createdAt = createdAt; this.isPullRequest = isPullRequest; mutableFieldDefaults(); this.title = title; this.repoId = repoId; }