Uses of Class
com.university.bookstore.builder.MaterialBundleBuilder
Packages that use MaterialBundleBuilder
-
Uses of MaterialBundleBuilder in com.university.bookstore.builder
Methods in com.university.bookstore.builder that return MaterialBundleBuilderModifier and TypeMethodDescriptionMaterialBundleBuilder.addBundle(MaterialBundle bundle) Adds a bundle to this bundle (nested bundles).MaterialBundleBuilder.addComponent(MaterialComponent component) Adds a material component to the bundle.MaterialBundleBuilder.addComponents(List<MaterialComponent> components) Adds multiple components to the bundle.MaterialBundleBuilder.addMaterial(Material material) Adds a material to the bundle.MaterialBundleBuilder.addMaterials(List<Material> materials) Adds multiple materials to the bundle.MaterialBundleBuilder.clearComponents()Clears all components from the bundle.MaterialDirector.createBundleBuilder()Creates a new MaterialBundle builder instance.MaterialDirector.getBundleBuilder()Gets the MaterialBundle builder for custom configurations.MaterialBundleBuilder.removeComponent(MaterialComponent component) Removes a component from the bundle.MaterialBundleBuilder.removeMaterial(Material material) Removes a material from the bundle.MaterialBundleBuilder.setBundleDiscount(double discount) Sets the bundle discount rate.MaterialBundleBuilder.setBundleDiscountPercent(double discountPercent) Sets the bundle discount percentage.MaterialBundleBuilder.setBundleName(String bundleName) Sets the bundle name.MaterialBundleBuilder.setLargeDiscount()Sets a 30% discount.MaterialBundleBuilder.setMediumDiscount()Sets a 20% discount.MaterialBundleBuilder.setSmallDiscount()Sets a 10% discount.Constructors in com.university.bookstore.builder with parameters of type MaterialBundleBuilderModifierConstructorDescriptionMaterialDirector(EBookBuilder eBookBuilder, MaterialBundleBuilder bundleBuilder) Constructs a MaterialDirector with the specified builders.