可以使用google auto-value class class生成Builder吗?

时间:2016-11-24 09:12:59

标签: android builder-pattern auto-value

我有班级和建设者。

Builder只能在测试代码中使用,我不想在生产代码中使用它。

我的课程:

public class MyClassThatIWantBuilderFor {
  // many fields that I want initialize using builder instead of 10 arg constructor
}

我的测试用例:

public class MyTest {
  // I want to have builder for MyClassThatIWantBuilderFor class here
}

如何在自动值中实现它?

0 个答案:

没有答案
相关问题