Skip to content

ValueObjectListにdiff()メソッドを追加 #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 6, 2025

Conversation

endou-mame
Copy link
Collaborator

Summary

  • ValueObjectListクラスにdiff()メソッドを追加しました
  • 他のコレクションとの差分を取得できる機能です
  • 包括的なテストケースも実装しました

変更内容

  • diff(self $other): static - 他のコレクションに含まれない要素のみを返すメソッド
  • ValueObjectListの全メソッド(has, remove, put, diff)に対するテストを追加

Test plan

  • has(): 値オブジェクトの存在確認
  • remove(): 値オブジェクトの削除(複数の同じ値も含む)
  • put(): 値オブジェクトの置換(新しいインスタンスへの置き換え)
  • diff(): コレクション間の差分取得(空のリスト、同じリスト、異なる型を含むリスト)

すべてのテストが成功しています。

🤖 Generated with Claude Code

- diff()メソッド: 他のコレクションとの差分を取得する機能を追加
- ValueObjectListの全メソッド(has, remove, put, diff)に対する包括的なテストを追加
- 異なる型の値オブジェクトを含むリストでの動作も検証

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@endou-mame endou-mame merged commit 3bb020d into main Jul 6, 2025
1 check failed
@endou-mame endou-mame deleted the feature/value-object-list-diff branch July 6, 2025 14:15
@endou-mame endou-mame added this to the v0.6.2 milestone Jul 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant