Index

A B C D E F G H I L M N O P S T W Z 
All Classes and Interfaces|All Packages

A

AddressWithBuilder - Class in fr.univtln.bruno.samples.java101.tp1.builder
Builder-based immutable Address variant.
AddressWithBuilder.Builder - Class in fr.univtln.bruno.samples.java101.tp1.builder
Builder class for AddressWithBuilder.
age() - Method in record class fr.univtln.bruno.samples.java101.tp1.immutable.PersonValueObject
Returns the value of the age record component.
age(int) - Method in class fr.univtln.bruno.samples.java101.tp1.immutable.PersonImmutable.Builder
Set the age to use when building the instance.

B

build() - Method in class fr.univtln.bruno.samples.java101.tp1.builder.AddressWithBuilder.Builder
Builds the AddressWithBuilder instance.
build() - Method in class fr.univtln.bruno.samples.java101.tp1.immutable.PersonImmutable.Builder
Build a validated PersonImmutable instance.
builder() - Static method in class fr.univtln.bruno.samples.java101.tp1.builder.AddressWithBuilder
Creates a new Builder instance for AddressWithBuilder.
builder() - Static method in class fr.univtln.bruno.samples.java101.tp1.immutable.PersonImmutable
Create a new PersonImmutable.Builder to construct immutable instances.
Builder() - Constructor for class fr.univtln.bruno.samples.java101.tp1.builder.AddressWithBuilder.Builder
Public no-arg constructor for the builder; documented to satisfy Javadoc.
Builder() - Constructor for class fr.univtln.bruno.samples.java101.tp1.immutable.PersonImmutable.Builder
Public no-arg constructor for Builder (documented to satisfy Javadoc checks).

C

city() - Method in class fr.univtln.bruno.samples.java101.tp1.builder.AddressWithBuilder
Returns the city name.
city(String) - Method in class fr.univtln.bruno.samples.java101.tp1.builder.AddressWithBuilder.Builder
Sets the city for the Address being built.

D

defaultPerson() - Static method in class fr.univtln.bruno.samples.java101.tp1.factory.PersonWithFactory
Default example person useful for demos and tests.

E

email() - Method in record class fr.univtln.bruno.samples.java101.tp1.immutable.PersonValueObject
Returns the value of the email record component.
equals(Object) - Method in class fr.univtln.bruno.samples.java101.tp1.factory.PersonWithFactory
 
equals(Object) - Method in class fr.univtln.bruno.samples.java101.tp1.immutable.PersonImmutable
 
equals(Object) - Method in record class fr.univtln.bruno.samples.java101.tp1.immutable.PersonValueObject
Indicates whether some other object is "equal to" this one.

F

firstName(String) - Method in class fr.univtln.bruno.samples.java101.tp1.immutable.PersonImmutable.Builder
Set the first name to use when building the instance.
fr.univtln.bruno.samples.java101.tp1 - package fr.univtln.bruno.samples.java101.tp1
Java 101 - TP1 sample package.
fr.univtln.bruno.samples.java101.tp1.builder - package fr.univtln.bruno.samples.java101.tp1.builder
 
fr.univtln.bruno.samples.java101.tp1.factory - package fr.univtln.bruno.samples.java101.tp1.factory
 
fr.univtln.bruno.samples.java101.tp1.immutable - package fr.univtln.bruno.samples.java101.tp1.immutable
 
fr.univtln.bruno.samples.java101.tp1.lombok - package fr.univtln.bruno.samples.java101.tp1.lombok
 

G

getAge() - Method in class fr.univtln.bruno.samples.java101.tp1.factory.PersonSingleton
Returns the person's age in years.
getAge() - Method in class fr.univtln.bruno.samples.java101.tp1.factory.PersonWithFactory
Returns the person's age.
getAge() - Method in class fr.univtln.bruno.samples.java101.tp1.immutable.PersonImmutable
Return the age.
getFirstName() - Method in class fr.univtln.bruno.samples.java101.tp1.factory.PersonSingleton
Returns the person's first name.
getFirstName() - Method in class fr.univtln.bruno.samples.java101.tp1.factory.PersonWithFactory
Returns the person's first name.
getFirstName() - Method in class fr.univtln.bruno.samples.java101.tp1.immutable.PersonImmutable
Return the first name.
getFullName() - Method in class fr.univtln.bruno.samples.java101.tp1.factory.PersonSingleton
Returns the person's full name (first + space + last).
getInstance() - Static method in class fr.univtln.bruno.samples.java101.tp1.factory.PersonSingleton
Return the singleton instance.
getLastName() - Method in class fr.univtln.bruno.samples.java101.tp1.factory.PersonSingleton
Returns the person's last name.
getLastName() - Method in class fr.univtln.bruno.samples.java101.tp1.factory.PersonWithFactory
Returns the person's last name.
getLastName() - Method in class fr.univtln.bruno.samples.java101.tp1.immutable.PersonImmutable
Return the last name.

H

hashCode() - Method in class fr.univtln.bruno.samples.java101.tp1.factory.PersonWithFactory
 
hashCode() - Method in class fr.univtln.bruno.samples.java101.tp1.immutable.PersonImmutable
 
hashCode() - Method in record class fr.univtln.bruno.samples.java101.tp1.immutable.PersonValueObject
Returns a hash code value for this object.

I

id() - Method in record class fr.univtln.bruno.samples.java101.tp1.immutable.PersonValueObject
Returns the value of the id record component.
incrementAge() - Method in record class fr.univtln.bruno.samples.java101.tp1.immutable.PersonValueObject
Return a new instance with the age incremented by one.
initialize(String, String, int) - Static method in class fr.univtln.bruno.samples.java101.tp1.factory.PersonSingleton
Initialize the singleton with the provided parameters.
isInitialized() - Static method in class fr.univtln.bruno.samples.java101.tp1.factory.PersonSingleton
Convenience: whether the singleton has been initialized (explicitly or by lazy default initialization).

L

lastName(String) - Method in class fr.univtln.bruno.samples.java101.tp1.immutable.PersonImmutable.Builder
Set the last name to use when building the instance.

M

merge(PersonValueObject) - Method in record class fr.univtln.bruno.samples.java101.tp1.immutable.PersonValueObject
Merge non-null fields from another record into this one and return the result.

N

name() - Method in record class fr.univtln.bruno.samples.java101.tp1.immutable.PersonValueObject
Returns the value of the name record component.

O

of(String, String, int) - Static method in class fr.univtln.bruno.samples.java101.tp1.factory.PersonWithFactory
Create a new validated person instance.
of(String, String, int) - Static method in class fr.univtln.bruno.samples.java101.tp1.lombok.PersonLombokSecure
 
of(String, String, String, int) - Static method in record class fr.univtln.bruno.samples.java101.tp1.immutable.PersonValueObject
Factory method to create a new PersonRecord.

P

PersonImmutable - Class in fr.univtln.bruno.samples.java101.tp1.immutable
Immutable representation of a person.
PersonImmutable.Builder - Class in fr.univtln.bruno.samples.java101.tp1.immutable
Builder for PersonImmutable.
PersonLombok - Class in fr.univtln.bruno.samples.java101.tp1.lombok
Compact Lombok-backed Person example without validation.
PersonLombok() - Constructor for class fr.univtln.bruno.samples.java101.tp1.lombok.PersonLombok
Protected no-arg constructor for frameworks and Javadoc clarity.
PersonLombokSecure - Class in fr.univtln.bruno.samples.java101.tp1.lombok
Secure Lombok-backed Person: validation is performed at the factory/builder boundary.
PersonSingleton - Class in fr.univtln.bruno.samples.java101.tp1.factory
Simple educational singleton that holds person attributes directly.
PersonValueObject - Record Class in fr.univtln.bruno.samples.java101.tp1.immutable
Immutable value object representing a person.
PersonValueObject(String, String, String, int) - Constructor for record class fr.univtln.bruno.samples.java101.tp1.immutable.PersonValueObject
Compact canonical constructor performing basic validation.
PersonWithFactory - Class in fr.univtln.bruno.samples.java101.tp1.factory
Simple Person class that demonstrates the private all-arguments constructor pattern with named factory methods.

S

street() - Method in class fr.univtln.bruno.samples.java101.tp1.builder.AddressWithBuilder
Returns the street name.
street(String) - Method in class fr.univtln.bruno.samples.java101.tp1.builder.AddressWithBuilder.Builder
Sets the street for the Address being built.

T

teenager(String, String) - Static method in class fr.univtln.bruno.samples.java101.tp1.factory.PersonWithFactory
Convenience factory for a teenager example.
toString() - Method in class fr.univtln.bruno.samples.java101.tp1.builder.AddressWithBuilder
 
toString() - Method in class fr.univtln.bruno.samples.java101.tp1.factory.PersonWithFactory
 
toString() - Method in class fr.univtln.bruno.samples.java101.tp1.immutable.PersonImmutable
 
toString() - Method in record class fr.univtln.bruno.samples.java101.tp1.immutable.PersonValueObject
Returns a string representation of this record class.

W

withAge(int) - Method in record class fr.univtln.bruno.samples.java101.tp1.immutable.PersonValueObject
Return a new instance with the given age.
withEmail(String) - Method in record class fr.univtln.bruno.samples.java101.tp1.immutable.PersonValueObject
Return a new instance with the given email.
withName(String) - Method in record class fr.univtln.bruno.samples.java101.tp1.immutable.PersonValueObject
Return a new instance with the given name.

Z

zipCode() - Method in class fr.univtln.bruno.samples.java101.tp1.builder.AddressWithBuilder
Returns the zip code.
zipCode(String) - Method in class fr.univtln.bruno.samples.java101.tp1.builder.AddressWithBuilder.Builder
Sets the zip code for the Address being built.
A B C D E F G H I L M N O P S T W Z 
All Classes and Interfaces|All Packages