package saker.nest.bundle
Builder class for new DependencyConstraintConfiguration instances.
public DependencyConstraintConfiguration | build() Builds a new constraint configuration with the constraints set in this builder. |
public DependencyConstraintConfiguration | buildWithDefaults( Builds a new constraint configuration with the constraints in this builder, and initializes
unset (null ) constraints from the argument defaults Supplier. |
public DependencyConstraintConfiguration | Builds a new constraint configuration with the constraints in this builder, and initializes
unset (null ) constraints from the argument defaults. |
public Builder | setBuildSystemVersion( Sets the saker.build system version constraint. |
public Builder | setJreMajorVersion( Sets the Java major version constraint. |
public Builder | setNativeArchitecture( Sets the native architecture constraint. |
public Builder | setRepositoryVersion( Sets the Nest repository version constraint. |
Builds a new constraint configuration with the constraints set in this builder.
The builder can be reused after this call.
The created constraint configuration.
public DependencyConstraintConfiguration buildWithDefaults(Supplier<? extends DependencyConstraintConfiguration> defaults ) throws NullPointerException
Builds a new constraint configuration with the constraints in
this
builder, and initializes
unset (null
) constraints from the argument defaults Supplier. The builder can be reused after this call.
defaultsThe supplier of defaults to initialize unset constraints.
The created constraint configuration.
NullPointerExceptionIf the defaults supplier or the retrieved defaults is
null
. (May only be thrown if
there are unset constraints.)public DependencyConstraintConfiguration buildWithDefaults(DependencyConstraintConfiguration defaults) throws NullPointerException
Builds a new constraint configuration with the constraints in
this
builder, and initializes
unset (null
) constraints from the argument defaults. The builder can be reused after this call.
defaultsThe defaults to initialize unset constraints.
The created constraint configuration.
NullPointerExceptionIf the defaults is
null
. (May only be thrown if there are unset constraints.)Sets the saker.build system version constraint.
buildSystemVersionThe version number or
null
to unset.this
IllegalArgumentExceptionIf the argument is non-
null
and is an invalid version number.Sets the Java major version constraint.
jreMajorVersionThe constraint or
null
to unset.this
Sets the native architecture constraint.
nativeArchitectureThe architecture string or
null
to unset.this
Sets the Nest repository version constraint.
repositoryVersionThe version number or
null
to unset.this
IllegalArgumentExceptionIf the argument is non-
null
and is an invalid version number.