{
  "id": "creategearsbuilder",
  "title": "CreateGearsBuilder",
  "url": "https://redis.io/docs/latest/operate/oss_and_stack/stack-with-enterprise/deprecated-features/gears-v1/jvm/classes/gearsbuilder/creategearsbuilder/",
  "summary": "Creates a new GearsBuilder object.",
  "tags": [
    "docs",
    "operate",
    "stack"
  ],
  "last_updated": "2026-04-22T11:55:45+02:00",
  "page_type": "content",
  "content_hash": "ed7b09c2f59e7f481bc279c17c9881ad53c9e1506d7827c4deae53f7795980c5",
  "sections": [
    {
      "id": "overview",
      "title": "Overview",
      "role": "overview",
      "text": "[code example]\n\nCreates a new `GearsBuilder` object. Use this function instead of a `GearsBuilder` constructor to avoid type warnings."
    },
    {
      "id": "parameters",
      "title": "Parameters",
      "role": "parameters",
      "text": "Type Parameters:\n\n| Name | Description |\n|------|-------------|\n| I | The template type of the returned builder. The reader determines the type. |\n\nParameters:\n\n| Name | Type | Description |\n|------|------|-------------|\n| desc | string | The description |\n| reader | BaseReader<I> | The pipe reader |"
    },
    {
      "id": "returns",
      "title": "Returns",
      "role": "returns",
      "text": "Returns a new GearsBuilder object."
    },
    {
      "id": "example",
      "title": "Example",
      "role": "example",
      "text": "[code example]"
    }
  ],
  "examples": [
    {
      "id": "overview-ex0",
      "language": "java",
      "code": "public static <I extends java.io.Serializable> GearsBuilder<I> CreateGearsBuilder​(\n    gears.readers.BaseReader<I> reader)\n\npublic static <I extends java.io.Serializable> GearsBuilder<I> CreateGearsBuilder​(\n    gears.readers.BaseReader<I> reader, \n    java.lang.String desc)",
      "section_id": "overview"
    },
    {
      "id": "example-ex0",
      "language": "java",
      "code": "GearsBuilder.CreateGearsBuilder(reader);",
      "section_id": "example"
    }
  ]
}
