本文整理汇总了Java中org.immutables.builder.Builder.Parameter方法的典型用法代码示例。如果您正苦于以下问题:Java Builder.Parameter方法的具体用法?Java Builder.Parameter怎么用?Java Builder.Parameter使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.immutables.builder.Builder
的用法示例。
在下文中一共展示了Builder.Parameter方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: bbz
import org.immutables.builder.Builder; //导入方法依赖的package包/类
@Builder.Factory
public static int bbz(@Builder.Parameter java.util.Optional<String> b, @Builder.Parameter java.util.OptionalInt c) {
return b.hashCode() + c.hashCode();
}
示例2: Pogo
import org.immutables.builder.Builder; //导入方法依赖的package包/类
@Builder.Constructor
public Pogo(@Builder.Parameter int a, String b, @Builder.Switch RetentionPolicy policy) {
this.a = a;
this.b = b;
this.policy = policy;
}
示例3: factory1
import org.immutables.builder.Builder; //导入方法依赖的package包/类
@Builder.Factory
public static String factory1(int theory, String reality, @Nullable @Builder.Parameter Void evidence) {
return theory + " != " + reality + ", " + evidence;
}
示例4: factory2
import org.immutables.builder.Builder; //导入方法依赖的package包/类
@Builder.Factory
public static String factory2(@Builder.Parameter int theory, @Builder.Parameter String reality) {
return theory + " != " + reality;
}
示例5: factory3
import org.immutables.builder.Builder; //导入方法依赖的package包/类
@Builder.Factory
public static String factory3(@Builder.Parameter int theory, String reality) {
return theory + " != " + reality;
}
示例6: factory4
import org.immutables.builder.Builder; //导入方法依赖的package包/类
@Builder.Factory
public static String factory4(@Builder.Parameter int value, @Builder.Switch RetentionPolicy policy) {
return policy + "" + value;
}
示例7: factory6
import org.immutables.builder.Builder; //导入方法依赖的package包/类
@Builder.Factory
public static String factory6(@Builder.Parameter int theory, String reality) {
return theory + " != " + reality;
}
示例8: factory7
import org.immutables.builder.Builder; //导入方法依赖的package包/类
@Builder.Factory
public static String factory7(
@Builder.Parameter int value,
@Builder.Switch(defaultName = "CLASS") RetentionPolicy policy) {
return policy + "" + value;
}
示例9: theory
import org.immutables.builder.Builder; //导入方法依赖的package包/类
@Builder.Parameter
int theory();
示例10: value
import org.immutables.builder.Builder; //导入方法依赖的package包/类
@Builder.Parameter
String value();
示例11: getBuildRuleResolver
import org.immutables.builder.Builder; //导入方法依赖的package包/类
@Builder.Parameter
abstract BuildRuleResolver getBuildRuleResolver();