# Class ModernMaterialStore.SearchCriteria.Builder

java.lang.Object
com.university.bookstore.api.ModernMaterialStore.SearchCriteria.Builder

Enclosing class:
  `ModernMaterialStore.SearchCriteria`

public static class ModernMaterialStore.SearchCriteria.Builder extends Object
Builder for SearchCriteria.

Since:
  2024-09-15
Version:
  4.0
Author:
  Navid Mohaghegh

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Builder()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `ModernMaterialStore.SearchCriteria`
  `build()`
  `ModernMaterialStore.SearchCriteria.Builder`
  `withCreator(String creator)`
  `ModernMaterialStore.SearchCriteria.Builder`
  `withPriceRange(Double min, Double max)`
  `ModernMaterialStore.SearchCriteria.Builder`
  `withTitle(String title)`
  `ModernMaterialStore.SearchCriteria.Builder`
  `withType(Material.MaterialType type)`
  `ModernMaterialStore.SearchCriteria.Builder`
  `withYearRange(Integer from, Integer to)`

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### Builder

    public Builder()

- ## Method Details

  - ### withTitle

    public ModernMaterialStore.SearchCriteria.Builder withTitle(String title)

  - ### withCreator

    public ModernMaterialStore.SearchCriteria.Builder withCreator(String creator)

  - ### withType

    public ModernMaterialStore.SearchCriteria.Builder withType(Material.MaterialType type)

  - ### withPriceRange

    public ModernMaterialStore.SearchCriteria.Builder withPriceRange(Double min, Double max)

  - ### withYearRange

    public ModernMaterialStore.SearchCriteria.Builder withYearRange(Integer from, Integer to)

  - ### build

    public ModernMaterialStore.SearchCriteria build()