コード例 #1
0
ファイル: TurboIssue.java プロジェクト: jinified/HubTurbo
  /** 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;
  }
コード例 #2
0
ファイル: TurboIssue.java プロジェクト: jinified/HubTurbo
  /** 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;
  }