Skip to content

Commit

Permalink
feat: ToString 재정의
Browse files Browse the repository at this point in the history
  • Loading branch information
yonghwankim-dev committed Oct 18, 2024
1 parent c2ecff2 commit e7c4704
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,9 @@ public static PortfolioNameItem from(Portfolio portfolio) {
portfolio.getCreateAt()
);
}

@Override
public String toString() {
return String.format("(id=%d, name=%s, dateCreated=%s)", id, name, dateCreated);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,9 @@ public class PortfolioNameResponse {
public static PortfolioNameResponse from(List<PortfolioNameItem> items) {
return new PortfolioNameResponse(items);
}

@Override
public String toString() {
return String.format("PortfolioNames : %s", portfolios);
}
}

0 comments on commit e7c4704

Please sign in to comment.