/** * Builds a new {@link ContractLongCondition ContractLongCondition}. * @return An immutable instance of ContractLongCondition * @throws java.lang.IllegalStateException if any required attributes are missing */ public ContractLongCondition build() { if (initBits != 0) { throw new IllegalStateException(formatRequiredAttributesMessage()); } return new ContractLongCondition(null, predicate, describer); }
/** * Fill a builder with attribute values from the provided {@code ContractLongConditionType} instance. * Regular attribute values will be replaced with those from the given instance. * Absent optional values will not replace present values. * @param instance The instance from which to copy values * @return {@code this} builder for use in a chained invocation */ public final Builder from(ContractLongConditionType instance) { Objects.requireNonNull(instance, "instance"); setPredicate(instance.predicate()); setDescriber(instance.describer()); return this; }
/** * Creates an immutable copy of a {@link ContractLongConditionType} value. * Uses accessors to get values to initialize the new immutable instance. * If an instance is already immutable, it is returned as is. * @param instance The instance to copy * @return A copied immutable ContractLongCondition instance */ public static ContractLongCondition copyOf(ContractLongConditionType instance) { if (instance instanceof ContractLongCondition) { return (ContractLongCondition) instance; } return ContractLongCondition.builder() .from(instance) .build(); }
/** * Creates an immutable copy of a {@link ContractLongConditionType} value. * Uses accessors to get values to initialize the new immutable instance. * If an instance is already immutable, it is returned as is. * @param instance The instance to copy * @return A copied immutable ContractLongCondition instance */ public static ContractLongCondition copyOf(ContractLongConditionType instance) { if (instance instanceof ContractLongCondition) { return (ContractLongCondition) instance; } return ContractLongCondition.builder() .from(instance) .build(); }
/** * Fill a builder with attribute values from the provided {@code ContractLongConditionType} instance. * Regular attribute values will be replaced with those from the given instance. * Absent optional values will not replace present values. * @param instance The instance from which to copy values * @return {@code this} builder for use in a chained invocation */ public final Builder from(ContractLongConditionType instance) { Objects.requireNonNull(instance, "instance"); setPredicate(instance.predicate()); setDescriber(instance.describer()); return this; }
/** * Creates a builder for {@link ContractLongCondition ContractLongCondition}. * @return A new ContractLongCondition builder */ public static ContractLongCondition.Builder builder() { return new ContractLongCondition.Builder(); }
/** * Creates a builder for {@link ContractLongCondition ContractLongCondition}. * @return A new ContractLongCondition builder */ public static ContractLongCondition.Builder builder() { return new ContractLongCondition.Builder(); }
/** * Builds a new {@link ContractLongCondition ContractLongCondition}. * @return An immutable instance of ContractLongCondition * @throws java.lang.IllegalStateException if any required attributes are missing */ public ContractLongCondition build() { if (initBits != 0) { throw new IllegalStateException(formatRequiredAttributesMessage()); } return new ContractLongCondition(null, predicate, describer); }