Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想知道ArchUnitmembers()和fields()in ArchUnit 有什么区别。我找不到任何关于它的文档。
members()
fields()
ArchUnit用户指南记录了领域模型。类的成员由它的所有字段和代码单元(即方法、构造函数和静态初始化程序)组成。
我查看了代码,答案很简单:
member 是所有这些列表的并集。