saker.nest Documentation TaskDoc JavaDoc Packages
public static final class DependencyConstraintConfiguration.Builder
Builder class for new DependencyConstraintConfiguration instances.
Methods
public DependencyConstraintConfiguration
Builds a new constraint configuration with the constraints set in this builder.
public DependencyConstraintConfiguration
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(String buildSystemVersion)
Sets the saker.build system version constraint.
public Builder
setJreMajorVersion(Integer jreMajorVersion)
Sets the Java major version constraint.
public Builder
setNativeArchitecture(String nativeArchitecture)
Sets the native architecture constraint.
public Builder
setRepositoryVersion(String repositoryVersion)
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.
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.)
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.
public Builder setJreMajorVersion(Integer jreMajorVersion)
Sets the Java major version constraint.
jreMajorVersionThe constraint or null to unset.
this
public Builder setNativeArchitecture(String nativeArchitecture)
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.