# Java · Javadoc

Real 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.

> Source: https://appgram.github.io/docsy/java-sdk  
> Language: java  
> Symbols: 12 across 5 categories

## Categories

- [Enums](#enums) — 1 items
- [Properties](#properties) — 3 items
- [Methods](#methods) — 6 items
- [Classes](#classes) — 1 items
- [Constructors](#constructors) — 1 items

## Enums

### `Greeter.Mood`  <sub>enum</sub>

Supported greeting moods.

**Values** — `FRIENDLY`, `FORMAL`

```java
public static enum Greeter.Mood extends Enum<Greeter.Mood>
```

## Properties

### `FORMAL`  <sub>property</sub>

A professional tone.

**Returns** — `Greeter.Mood`

```java
public static final Greeter.Mood FORMAL
```

---

### `FRIENDLY`  <sub>property</sub>

A relaxed tone.

**Returns** — `Greeter.Mood`

```java
public static final Greeter.Mood FRIENDLY
```

---

### `prefix`  <sub>property</sub>

Greeting prefix used for future calls.

**Returns** — `String`

```java
public String prefix
```

## Methods

### `greet`  <sub>method</sub>

Greet a reader.

**Parameters**

| Name | Type | Required | Description |

| --- | --- | --- | --- |

| `name` | `String` | ✓ |  |

**Returns** — `String` — A friendly greeting. new Greeter().greet("Ada");

```java
public String greet(String name)
```

**Example**

```java
new Greeter().greet("Ada");
```

---

### `greetChecked`  <sub>method</sub>

Reject an empty reader name.

**Errors**

- `IllegalArgumentException` — IllegalArgumentException - When name is empty.

**Parameters**

| Name | Type | Required | Description |

| --- | --- | --- | --- |

| `name` | `String` | ✓ |  |

**Returns** — `String` — A validated greeting.

```java
public String greetChecked(String name)
```

---

### `greetMany`  <sub>method</sub>

Greet several readers in order. new Greeter().greetMany(new String[]{"Ada", "Linus"});

**Parameters**

| Name | Type | Required | Description |

| --- | --- | --- | --- |

| `names` | `String[]` | ✓ |  |

**Returns** — `String[]` — Greetings in the same order.

```java
public String[] greetMany(String[] names)
```

**Example**

```java
new Greeter().greetMany(new String[]{"Ada", "Linus"});
```

---

### `hello`  <sub>method</sub>

Legacy greeting alias.

> **Deprecated**: Use greet(String) .

**Parameters**

| Name | Type | Required | Description |

| --- | --- | --- | --- |

| `name` | `String` | ✓ |  |

**Returns** — `String` — A greeting.

```java
@Deprecated public String hello(String name)
```

---

### `valueOf`  <sub>method</sub>

Returns 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.)

**Errors**

- `IllegalArgumentException` — IllegalArgumentException - if this enum class has no constant with the specified name

**Parameters**

| Name | Type | Required | Description |

| --- | --- | --- | --- |

| `name` | `String` | ✓ |  |

**Returns** — `Greeter.Mood` — the enum constant with the specified name

```java
public static Greeter.Mood valueOf(String name)
```

---

### `values`  <sub>method</sub>

Returns an array containing the constants of this enum class, in the order they are declared.

**Returns** — `Greeter.Mood[]` — an array containing the constants of this enum class, in the order they are declared

```java
public static Greeter.Mood[] values()
```

## Classes

### `Greeter`  <sub>class</sub>

Build personalized greetings without network access. Greeter greeter = new Greeter(); System.out.println(greeter.greet("Docsy"));

```java
public class Greeter extends Object
```

**Example**

```java
Greeter greeter = new Greeter();
 System.out.println(greeter.greet("Docsy"));
```

## Constructors

### `Greeter`  <sub>constructor</sub>

```java
public Greeter()
```
