Index

A C D F G M R S 
All Classes and Interfaces|All Packages

A

addContact(String) - Method in class Customer
Add new Customer contact, only valid contacts (not null, not empty "", at least 6 characters and no duplicate contacts) are added.
application - package application
package-info.java has been introduced with Modules in Java 9 (2017) to provide package-level documentation and project-wide variables that can be used in Javadoc.
Application - Class in application
Class with main() - method that prints command line arguments.
Application_C12 - Class in application
Class that implements the Runner interface with run(String[] args) method that executes tasks of the C12 assignment.
Application_C12() - Constructor for class Application_C12
 

C

contactsCount() - Method in class Customer
Return the number of contacts.
Customer - Class in datamodel
Entity class representing a Customer as a person who creates and holds (owns) orders in the system.
Customer() - Constructor for class Customer
Default constructor.
Customer(String) - Constructor for class Customer
Constructor with single-String name argument, for example "Eric Meyer" (see method Customer.splitName(java.lang.String) for details).

D

datamodel - package datamodel
Package with data model classes for the se1.bestellsystem.
deleteAllContacts() - Method in class Customer
Delete all contacts.
deleteContact(int) - Method in class Customer
Delete the i-th contact with i >= 0 and i < contactsCount(), otherwise method has no effect.

F

fmtCustomerContacts(Customer, int...) - Method in class Application_C12
Format Customer contacts according to a format (0 is default):
fmtCustomerName(Customer, int...) - Method in class Application_C12
Format Customer name according to a format (0 is default):

G

getContacts() - Method in class Customer
Contacts getter as immutable Iterable<String>.
getFirstName() - Method in class Customer
FirstName getter, return value of firstName attribute, never null.
getId() - Method in class Customer
Id getter, returns -1, if id is still unassigned.
getLastName() - Method in class Customer
LastName getter, return value of lastName attribute, never null.

M

main(String[]) - Static method in class Application
Static main() - method as entry point for the Java VM.

R

run(String[]) - Method in class Application_C12
Run code of the C12 assignment.
run(String[]) - Method in class Application
Run application code on a Runner instance rather than in the static main(); method.
run(String[]) - Method in interface Runner
Method invoked on an instance that implements the Runner interface with passing command line arguments.
Runner - Interface in application
The Runner interface provides a run(String[] args) method that allows passing String[] args arguments, which is not provided by the Runnable interface of the Java run-time environment.

S

se1.bestellsystem - module se1.bestellsystem
Modules have been introduced in Java 9 (2017) to compose multiple Java projects.
setId(long) - Method in class Customer
Id setter, id can only be set once with a valid id value: id >= 0, id is immutable after first assignment, return chainable self-reference.
setName(String) - Method in class Customer
Setter that splits a single-String name ("Eric Meyer") into first- and lastName parts and assigns parts to the corresponding attributes (see method Customer.splitName(java.lang.String) for details).
setName(String, String) - Method in class Customer
Setter for first- ("Eric") and lastName ("Meyer") attributes, return chainable self-reference.
A C D F G M R S 
All Classes and Interfaces|All Packages