Uses of Class
com.university.bookstore.composite.MaterialBundle
Packages that use MaterialBundle
-
Uses of MaterialBundle in com.university.bookstore.builder
Classes in com.university.bookstore.builder that implement interfaces with type arguments of type MaterialBundleModifier and TypeClassDescriptionclassBuilder for creating MaterialBundle instances with a fluent interface.Methods in com.university.bookstore.builder that return MaterialBundleModifier and TypeMethodDescriptionMaterialBundleBuilder.build()MaterialDirector.buildCourseBundle(String bundleName, List<Material> materials) Constructs a course bundle with a 25% discount.MaterialDirector.buildCustomBundle(String bundleName, List<Material> materials, double discount) Constructs a custom bundle with specified parameters.MaterialDirector.buildNestedBundle(String bundleName, List<MaterialBundle> bundles, double discount) Constructs a nested bundle (bundle containing other bundles).MaterialDirector.buildPremiumBundle(String bundleName, List<Material> materials) Constructs a premium bundle with a 30% discount.MaterialDirector.buildStarterBundle(String bundleName, List<Material> materials) Constructs a starter bundle with a 10% discount.MaterialDirector.buildTextbookBundle(String bundleName, List<Material> materials) Constructs a textbook bundle with a 20% discount.Methods in com.university.bookstore.builder with parameters of type MaterialBundleModifier and TypeMethodDescriptionMaterialBundleBuilder.addBundle(MaterialBundle bundle) Adds a bundle to this bundle (nested bundles).Method parameters in com.university.bookstore.builder with type arguments of type MaterialBundleModifier and TypeMethodDescriptionMaterialDirector.buildNestedBundle(String bundleName, List<MaterialBundle> bundles, double discount) Constructs a nested bundle (bundle containing other bundles). -
Uses of MaterialBundle in com.university.bookstore.composite
Methods in com.university.bookstore.composite that return MaterialBundleModifier and TypeMethodDescriptionBundleService.createBundle(String name, double discount) Creates a new material bundle with the specified name and discount.Methods in com.university.bookstore.composite that return types with arguments of type MaterialBundleModifier and TypeMethodDescriptionBundleService.getAllBundles()Gets all bundles.Gets a bundle by name.BundleService.getBundlesByDiscount(double minDiscount) Gets bundles with discounts greater than or equal to the specified threshold.BundleService.getBundlesByMaterialType(Material.MaterialType type) Gets bundles that contain materials of the specified type.BundleService.getBundlesByValueRange(double minValue, double maxValue) Gets bundles with values within the specified range.