Class NumericAttributePreference.Builder
java.lang.Object
co.yellowdog.platform.model.builders.ValidatedBuilder<NumericAttributePreference>
co.yellowdog.platform.model.NumericAttributePreference.Builder
- Enclosing class:
NumericAttributePreference
public static class NumericAttributePreference.Builder
extends ValidatedBuilder<NumericAttributePreference>
A builder that can be used to build a new NumericAttributePreference.
-
Method Summary
Modifier and TypeMethodDescriptionBuilds the object without enforcing validation constraints.rankOrder(NumericAttributeRankOrder rankOrder) toString()Methods inherited from class ValidatedBuilder
build, validateModifier and TypeMethodDescriptionbuild()Builds and validates the object.Set<jakarta.validation.ConstraintViolation<NumericAttributePreference>> validate()Performs validation based on the current builder properties and returns the ConstraintViolations without throwing.
-
Method Details
-
attribute
- Returns:
this.
-
weight
- Returns:
this.
-
rankOrder
- Returns:
this.
-
buildUnchecked
Description copied from class:ValidatedBuilderBuilds the object without enforcing validation constraints. Use this when the object is validated later, for example as part of an enclosing object built withValidatedBuilder.build(), or when it does not need to be valid on its own.- Overrides:
buildUncheckedin classValidatedBuilder<NumericAttributePreference>- Returns:
- the object being built
-
toString
-