{"schemaVersion":1,"title":"Java · Javadoc","url":"https://appgram.github.io/docsy/java-sdk","markdownUrl":"https://appgram.github.io/docsy/format-md/java-sdk","jsonUrl":"https://appgram.github.io/docsy/agent/pages/java-sdk.json","version":"current","locale":"en","markdown":"# Java · Javadoc\n\nReal Javadoc HTML output from the checked-in java fixture source. Generated artifacts, commands, versions, and SHA-256 hashes are recorded under sources/native. This is a teaching library, not a published SDK.\n\n> Source: https://appgram.github.io/docsy/java-sdk  \n> Language: java  \n> Symbols: 12 across 5 categories\n\n## Categories\n\n- [Enums](#enums) — 1 items\n- [Properties](#properties) — 3 items\n- [Methods](#methods) — 6 items\n- [Classes](#classes) — 1 items\n- [Constructors](#constructors) — 1 items\n\n## Enums\n\n### `Greeter.Mood`  <sub>enum</sub>\n\nSupported greeting moods.\n\n**Values** — `FRIENDLY`, `FORMAL`\n\n```java\npublic static enum Greeter.Mood extends Enum<Greeter.Mood>\n```\n\n## Properties\n\n### `FORMAL`  <sub>property</sub>\n\nA professional tone.\n\n**Returns** — `Greeter.Mood`\n\n```java\npublic static final Greeter.Mood FORMAL\n```\n\n---\n\n### `FRIENDLY`  <sub>property</sub>\n\nA relaxed tone.\n\n**Returns** — `Greeter.Mood`\n\n```java\npublic static final Greeter.Mood FRIENDLY\n```\n\n---\n\n### `prefix`  <sub>property</sub>\n\nGreeting prefix used for future calls.\n\n**Returns** — `String`\n\n```java\npublic String prefix\n```\n\n## Methods\n\n### `greet`  <sub>method</sub>\n\nGreet a reader.\n\n**Parameters**\n\n| Name | Type | Required | Description |\n\n| --- | --- | --- | --- |\n\n| `name` | `String` | ✓ |  |\n\n**Returns** — `String` — A friendly greeting. new Greeter().greet(\"Ada\");\n\n```java\npublic String greet(String name)\n```\n\n**Example**\n\n```java\nnew Greeter().greet(\"Ada\");\n```\n\n---\n\n### `greetChecked`  <sub>method</sub>\n\nReject an empty reader name.\n\n**Errors**\n\n- `IllegalArgumentException` — IllegalArgumentException - When name is empty.\n\n**Parameters**\n\n| Name | Type | Required | Description |\n\n| --- | --- | --- | --- |\n\n| `name` | `String` | ✓ |  |\n\n**Returns** — `String` — A validated greeting.\n\n```java\npublic String greetChecked(String name)\n```\n\n---\n\n### `greetMany`  <sub>method</sub>\n\nGreet several readers in order. new Greeter().greetMany(new String[]{\"Ada\", \"Linus\"});\n\n**Parameters**\n\n| Name | Type | Required | Description |\n\n| --- | --- | --- | --- |\n\n| `names` | `String[]` | ✓ |  |\n\n**Returns** — `String[]` — Greetings in the same order.\n\n```java\npublic String[] greetMany(String[] names)\n```\n\n**Example**\n\n```java\nnew Greeter().greetMany(new String[]{\"Ada\", \"Linus\"});\n```\n\n---\n\n### `hello`  <sub>method</sub>\n\nLegacy greeting alias.\n\n> **Deprecated**: Use greet(String) .\n\n**Parameters**\n\n| Name | Type | Required | Description |\n\n| --- | --- | --- | --- |\n\n| `name` | `String` | ✓ |  |\n\n**Returns** — `String` — A greeting.\n\n```java\n@Deprecated public String hello(String name)\n```\n\n---\n\n### `valueOf`  <sub>method</sub>\n\nReturns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)\n\n**Errors**\n\n- `IllegalArgumentException` — IllegalArgumentException - if this enum class has no constant with the specified name\n\n**Parameters**\n\n| Name | Type | Required | Description |\n\n| --- | --- | --- | --- |\n\n| `name` | `String` | ✓ |  |\n\n**Returns** — `Greeter.Mood` — the enum constant with the specified name\n\n```java\npublic static Greeter.Mood valueOf(String name)\n```\n\n---\n\n### `values`  <sub>method</sub>\n\nReturns an array containing the constants of this enum class, in the order they are declared.\n\n**Returns** — `Greeter.Mood[]` — an array containing the constants of this enum class, in the order they are declared\n\n```java\npublic static Greeter.Mood[] values()\n```\n\n## Classes\n\n### `Greeter`  <sub>class</sub>\n\nBuild personalized greetings without network access. Greeter greeter = new Greeter(); System.out.println(greeter.greet(\"Docsy\"));\n\n```java\npublic class Greeter extends Object\n```\n\n**Example**\n\n```java\nGreeter greeter = new Greeter();\n System.out.println(greeter.greet(\"Docsy\"));\n```\n\n## Constructors\n\n### `Greeter`  <sub>constructor</sub>\n\n```java\npublic Greeter()\n```\n"}