Index

A C D E F G I M O R S T U 
All Classes and Interfaces|All Packages|Serialized Form

A

AbstractExceptionHandler - Class in io.github.astrapi69.design.pattern.observer.exception.handlers
The abstract class AbstractExceptionHandler handles all exceptions by managing a list of ExceptionListener objects and updating them when an exception event occurs
AbstractExceptionHandler() - Constructor for class io.github.astrapi69.design.pattern.observer.exception.handlers.AbstractExceptionHandler
 
AbstractObserver<T> - Class in io.github.astrapi69.design.pattern.observer
A generic implementation of the Observer pattern This abstract class implements the Observer and ActionCommand interfaces, providing a basic framework for observers in the Observer design pattern
AbstractObserver(Subject<T, Observer<T>>) - Constructor for class io.github.astrapi69.design.pattern.observer.AbstractObserver
Constructor for a new observer object
AbstractSubject<T,O extends Observer<T>> - Class in io.github.astrapi69.design.pattern.observer
The class AbstractSubject is an implementation of the Subject interface This class encapsulates the observable object and notifies all registered observers when the observable changes
AbstractSubject() - Constructor for class io.github.astrapi69.design.pattern.observer.AbstractSubject
Default constructor for a new subject with no initial observable
AbstractSubject(T) - Constructor for class io.github.astrapi69.design.pattern.observer.AbstractSubject
Constructor for a new subject with an initial observable
ActionCommand - Interface in io.github.astrapi69.design.pattern.observer.api
The interface ActionCommand represents a command that can be executed Implementations of this interface encapsulate a specific action that can be triggered
add(ChatRoomUser<M>) - Method in class io.github.astrapi69.design.pattern.observer.chat.ChatRoom
Adds the given observer to the list of observers
add(MessageListener<T>) - Method in interface io.github.astrapi69.design.pattern.observer.chat.listener.MessageSource
Adds the given MessageListener to the list of listeners that will receive messages
add(MessageListener<T>) - Method in class io.github.astrapi69.design.pattern.observer.chat.listener.MessageSubject
Adds the given MessageListener to the list of listeners that will receive messages
add(EventListener<T>) - Method in interface io.github.astrapi69.design.pattern.observer.event.EventSource
Adds the given event listener to the list of event listeners
add(EventListener<T>) - Method in class io.github.astrapi69.design.pattern.observer.event.EventSubject
Adds the given event listener to the list of event listeners
add(String, ExceptionMessage<T>) - Method in class io.github.astrapi69.design.pattern.observer.exception.ExceptionMessages
Adds an exception message to the collection under the specified key
add(Map<? extends String, ? extends Set<ExceptionMessage<T>>>) - Method in class io.github.astrapi69.design.pattern.observer.exception.ExceptionMessages
Adds a map of exception messages to the existing collection
add(O) - Method in class io.github.astrapi69.design.pattern.observer.AbstractSubject
Adds the given observer to the list of observers
add(O) - Method in interface io.github.astrapi69.design.pattern.observer.api.Subject
Adds the given observer to the list of observers
addAll(Collection<ChatRoomUser<M>>) - Method in class io.github.astrapi69.design.pattern.observer.chat.ChatRoom
Adds the given observers to the list of observers
addAll(Collection<MessageListener<T>>) - Method in interface io.github.astrapi69.design.pattern.observer.chat.listener.MessageSource
Adds all the given MessageListener objects to the list of listeners that will receive messages
addAll(Collection<MessageListener<T>>) - Method in class io.github.astrapi69.design.pattern.observer.chat.listener.MessageSubject
Adds all the given MessageListener objects to the list of listeners that will receive messages
addAll(Collection<EventListener<T>>) - Method in interface io.github.astrapi69.design.pattern.observer.event.EventSource
Adds all the given event listeners to the list of event listeners
addAll(Collection<EventListener<T>>) - Method in class io.github.astrapi69.design.pattern.observer.event.EventSubject
Adds all the given event listeners to the list of event listeners
addAll(Collection<O>) - Method in class io.github.astrapi69.design.pattern.observer.AbstractSubject
Adds the given observers to the list of observers
addAll(Collection<O>) - Method in interface io.github.astrapi69.design.pattern.observer.api.Subject
Adds the given observers to the list of observers
addExceptionListener(ExceptionListener) - Method in class io.github.astrapi69.design.pattern.observer.exception.ExceptionObservers
Adds the specified exception listener to the list of listeners This method allows classes to register for exception events

C

ChatMessage - Class in io.github.astrapi69.design.pattern.observer.chat
The class ChatMessage represents a message in a chat application It implements the Message interface and is serializable
ChatMessage() - Constructor for class io.github.astrapi69.design.pattern.observer.chat.ChatMessage
 
ChatRoom<M extends Message<?>> - Class in io.github.astrapi69.design.pattern.observer.chat
The class ChatRoom represents a chat room where users can send and receive messages It extends AbstractSubject and implements Subject, Room, and Serializable
ChatRoom(String) - Constructor for class io.github.astrapi69.design.pattern.observer.chat.ChatRoom
Constructor for a new chat room with the given name
ChatRoom(M, String) - Constructor for class io.github.astrapi69.design.pattern.observer.chat.ChatRoom
Constructor for a new chat room with an initial observable message and a name
ChatRoomService<M extends Message<?>> - Class in io.github.astrapi69.design.pattern.observer.chat
The class ChatRoomService manages the creation and retrieval of chat rooms It provides a way to obtain a ChatRoom based on an observable message and a room name
ChatRoomService() - Constructor for class io.github.astrapi69.design.pattern.observer.chat.ChatRoomService
 
ChatRoomUser<M extends Message<?>> - Class in io.github.astrapi69.design.pattern.observer.chat
The class ChatRoomUser represents a user in a chat room who can send and receive messages This class implements Observer to observe messages in the chat room, ActionCommand to define actions when a message is received, and Serializable for serialization support
ChatRoomUser(ChatRoom<M>, IUser<?>) - Constructor for class io.github.astrapi69.design.pattern.observer.chat.ChatRoomUser
Instantiates a new chat room user
containsKey(String) - Method in class io.github.astrapi69.design.pattern.observer.exception.ExceptionMessages
Checks if the collection contains exception messages associated with the specified key

D

DefaultExceptionHandler - Class in io.github.astrapi69.design.pattern.observer.exception.handlers
The class DefaultExceptionHandler provides a default implementation for handling exception events It extends AbstractExceptionHandler and propagates exception events to the registered listeners
DefaultExceptionHandler() - Constructor for class io.github.astrapi69.design.pattern.observer.exception.handlers.DefaultExceptionHandler
 

E

EventListener<T> - Interface in io.github.astrapi69.design.pattern.observer.event
The EventListener interface is for receiving events The class that is interested in processing an event implements this interface, and the object created with that class is registered with a component using the component's addEventListener method When the event occurs, that object's appropriate method is invoked
EventObject<T> - Class in io.github.astrapi69.design.pattern.observer.event
The class EventObject serves, as its name suggests, as an event object It encapsulates the source object on which an event initially occurred
EventObject(T) - Constructor for class io.github.astrapi69.design.pattern.observer.event.EventObject
Instantiates a new EventObject object
EventSource<T> - Interface in io.github.astrapi69.design.pattern.observer.event
The interface EventSource represents a source of events It provides methods to manage event listeners and to fire events to those listeners
EventSubject<T> - Class in io.github.astrapi69.design.pattern.observer.event
The class EventSubject is an implementation of the EventSource interface It represents a subject that can have multiple event listeners and can fire events to them
EventSubject() - Constructor for class io.github.astrapi69.design.pattern.observer.event.EventSubject
Instantiates a new EventSubject with no initial source
EventSubject(T) - Constructor for class io.github.astrapi69.design.pattern.observer.event.EventSubject
Instantiates a new EventSubject with the specified source
ExceptionEvent - Class in io.github.astrapi69.design.pattern.observer.exception
The class ExceptionEvent represents an event that encapsulates a Throwable object It acts as an observable event that can be passed to listeners interested in handling exceptions
ExceptionEvent() - Constructor for class io.github.astrapi69.design.pattern.observer.exception.ExceptionEvent
 
ExceptionListener - Interface in io.github.astrapi69.design.pattern.observer.exception
The listener interface for receiving exception events The class that is interested in processing an exception event implements this interface, and the object created with that class is registered with a component using the component's addExceptionListener method When the exception event occurs, that object's appropriate method is invoked
exceptionListeners - Variable in class io.github.astrapi69.design.pattern.observer.exception.ExceptionObservers
The list of registered exception listeners
ExceptionMessage<T> - Class in io.github.astrapi69.design.pattern.observer.exception
The class ExceptionMessage represents a message object used in exception handling It encapsulates information such as a properties key and value, an ID, and additional data that may be related to the exception
ExceptionMessage(String, String, String) - Constructor for class io.github.astrapi69.design.pattern.observer.exception.ExceptionMessage
Constructor for creating an ExceptionMessage with specified key, value, and ID
ExceptionMessages<T> - Class in io.github.astrapi69.design.pattern.observer.exception
The class ExceptionMessages manages a collection of exception messages organized by keys It allows adding, retrieving, and removing exception messages based on specific keys
ExceptionMessages() - Constructor for class io.github.astrapi69.design.pattern.observer.exception.ExceptionMessages
 
ExceptionObservers - Class in io.github.astrapi69.design.pattern.observer.exception
The class ExceptionObservers is a singleton that manages a list of ExceptionListener objects It allows classes to register and unregister for exception events, and notifies registered listeners when an exception event occurs
execute() - Method in interface io.github.astrapi69.design.pattern.observer.api.ActionCommand
Executes the command Implementing classes should define the specific action to be performed when this method is called

F

fireEvent(T) - Method in interface io.github.astrapi69.design.pattern.observer.event.EventSource
Fires an event to all registered listeners with the given source object
fireEvent(T) - Method in class io.github.astrapi69.design.pattern.observer.event.EventSubject
Fires an event to all registered listeners with the given source object
fireMessage(T) - Method in interface io.github.astrapi69.design.pattern.observer.chat.listener.MessageSource
Fires a message to all registered listeners with the given source object
fireMessage(T) - Method in class io.github.astrapi69.design.pattern.observer.chat.listener.MessageSubject
Fires a message to all registered listeners with the given source object

G

get(String) - Method in class io.github.astrapi69.design.pattern.observer.exception.ExceptionMessages
Retrieves the set of exception messages associated with the specified key
getApplicationUser() - Method in interface io.github.astrapi69.design.pattern.observer.chat.IUser
Gets the application user associated with this IUser
getApplicationUser() - Method in class io.github.astrapi69.design.pattern.observer.chat.User
Gets the application user associated with this IUser
getChatRoom(M, String) - Method in class io.github.astrapi69.design.pattern.observer.chat.ChatRoomService
Gets the chat room with the specified name If the chat room does not exist, a new one is created with the given observable message and name
getChatRoomName() - Method in class io.github.astrapi69.design.pattern.observer.chat.MessageRoomModelBean
Gets the name of the chat room
getChatRoomUsers() - Method in class io.github.astrapi69.design.pattern.observer.chat.ChatRoom
Gets the chat room users as a list of IUser objects
getChatRoomUsers() - Method in interface io.github.astrapi69.design.pattern.observer.chat.Room
Gets the list of users in the chat room
getData() - Method in class io.github.astrapi69.design.pattern.observer.chat.MessageRoomModelBean
Gets the additional data associated with the message
getDate() - Method in class io.github.astrapi69.design.pattern.observer.chat.MessageRoomModelBean
Gets the date the message was created
getId() - Method in interface io.github.astrapi69.design.pattern.observer.chat.IUser
Gets the unique identifier for this IUser
getId() - Method in class io.github.astrapi69.design.pattern.observer.chat.User
Gets the unique identifier for this IUser
getInstance() - Static method in class io.github.astrapi69.design.pattern.observer.exception.ExceptionObservers
Gets the single instance of ExceptionObservers
getKeys() - Method in class io.github.astrapi69.design.pattern.observer.exception.ExceptionMessages
Retrieves the set of all keys used in the collection
getMessage() - Method in class io.github.astrapi69.design.pattern.observer.chat.MessageRoomModelBean
Gets the content of the message
getMessageHistory() - Method in class io.github.astrapi69.design.pattern.observer.chat.ChatRoom
Gets the message history of the chat room
getMessageHistory() - Method in interface io.github.astrapi69.design.pattern.observer.chat.Room
Gets the history of messages sent in the chat room
getName() - Method in class io.github.astrapi69.design.pattern.observer.chat.ChatRoom
Gets the name of the chat room
getName() - Method in interface io.github.astrapi69.design.pattern.observer.chat.IUser
Gets the name of this IUser
getName() - Method in class io.github.astrapi69.design.pattern.observer.chat.User
Gets the name of this IUser
getObservable() - Method in class io.github.astrapi69.design.pattern.observer.AbstractObserver
Gets the current observable object
getObservable() - Method in interface io.github.astrapi69.design.pattern.observer.api.Subject
Gets the observable object, which is the object being observed for state changes
getObservable() - Method in class io.github.astrapi69.design.pattern.observer.chat.ChatRoom
Gets the observable object, which is the object being observed for state changes
getObservable() - Method in class io.github.astrapi69.design.pattern.observer.chat.ChatRoomUser
Gets the observable message currently observed by this user
getObservers() - Method in interface io.github.astrapi69.design.pattern.observer.api.Subject
Gets the list of observers that wish to be notified of changes to the observable object
getRecipient() - Method in interface io.github.astrapi69.design.pattern.observer.chat.Invitation
Gets the recipient of this invitation
getRoom() - Method in interface io.github.astrapi69.design.pattern.observer.chat.Invitation
Gets the room associated with this invitation
getSender() - Method in interface io.github.astrapi69.design.pattern.observer.chat.Invitation
Gets the sender of this invitation
getSize() - Method in class io.github.astrapi69.design.pattern.observer.exception.ExceptionMessages
Gets the number of unique keys in the collection
getSource() - Method in class io.github.astrapi69.design.pattern.observer.chat.listener.MessageObject
Gets the source object on which the message event initially occurred
getUser() - Method in class io.github.astrapi69.design.pattern.observer.chat.ChatRoomUser
Gets the user associated with this chat room user
getUser() - Method in class io.github.astrapi69.design.pattern.observer.chat.MessageRoomModelBean
Gets the user who sent the message
getValue() - Method in class io.github.astrapi69.design.pattern.observer.chat.ChatMessage
Gets the value of the message
getValue() - Method in interface io.github.astrapi69.design.pattern.observer.chat.Message
Gets the value of the message
getValue() - Method in class io.github.astrapi69.design.pattern.observer.chat.StringMessage
Gets the value of the message

I

Invitation<M extends Message<?>> - Interface in io.github.astrapi69.design.pattern.observer.chat
The Interface Invitation represents an invitation to join a chat room It defines the methods to retrieve the sender, recipient, and the room associated with the invitation, as well as methods to check if the invitation has been accepted and if the denial is visible to the sender
io.github.astrapi69.design.pattern.observer - package io.github.astrapi69.design.pattern.observer
Provides core classes and interfaces for implementing the observer design pattern
io.github.astrapi69.design.pattern.observer.api - package io.github.astrapi69.design.pattern.observer.api
Provides interfaces that define the core components of the observer design pattern
io.github.astrapi69.design.pattern.observer.chat - package io.github.astrapi69.design.pattern.observer.chat
Provides classes and interfaces for implementing a chat application using the observer design pattern
io.github.astrapi69.design.pattern.observer.chat.listener - package io.github.astrapi69.design.pattern.observer.chat.listener
Provides interfaces and classes for implementing listeners in a chat application using the observer design pattern
io.github.astrapi69.design.pattern.observer.event - package io.github.astrapi69.design.pattern.observer.event
Provides classes and interfaces for implementing event handling in the observer design pattern
io.github.astrapi69.design.pattern.observer.exception - package io.github.astrapi69.design.pattern.observer.exception
Provides classes and interfaces for handling exceptions using the observer design pattern
io.github.astrapi69.design.pattern.observer.exception.handlers - package io.github.astrapi69.design.pattern.observer.exception.handlers
Provides classes for handling exceptions using the observer design pattern
io.github.astrapisixtynine.design.patterns.observer - module io.github.astrapisixtynine.design.patterns.observer
The MIT License Copyright (C) 2022 Asterios Raptis Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
isAccepted() - Method in interface io.github.astrapi69.design.pattern.observer.chat.Invitation
Checks if this invitation has been accepted by the recipient
isDeniedVisible() - Method in interface io.github.astrapi69.design.pattern.observer.chat.Invitation
Checks if the recipient wants the sender to see that the invitation was denied
isEmpty() - Method in class io.github.astrapi69.design.pattern.observer.exception.ExceptionMessages
Checks if the collection is empty
isSecure() - Method in class io.github.astrapi69.design.pattern.observer.chat.ChatRoom
Checks if the chat room is secure
isSecure() - Method in interface io.github.astrapi69.design.pattern.observer.chat.Room
Checks if the chat room is secure
IUser<U> - Interface in io.github.astrapi69.design.pattern.observer.chat
The interface IUser represents a user in a chat application It provides methods to manage the user's identity, including getting and setting the application user, retrieving the user's unique identifier, and obtaining the user's name

M

Message<T> - Interface in io.github.astrapi69.design.pattern.observer.chat
The interface Message represents a message that can be sent in a chat application It provides methods for getting and setting the value of the message
MessageListener<T> - Interface in io.github.astrapi69.design.pattern.observer.chat.listener
The listener interface for receiving message events The class that is interested in processing a message implements this interface, and the object created with that class is registered with a component using the component's addMessageListener method When the message event occurs, the appropriate method of that object is invoked
MessageObject<T> - Class in io.github.astrapi69.design.pattern.observer.chat.listener
The Class MessageObject represents an object that contains a message event It encapsulates the source object on which the message event initially occurred
MessageObject(T) - Constructor for class io.github.astrapi69.design.pattern.observer.chat.listener.MessageObject
Instantiates a new MessageObject with the given source
MessageRoomModelBean - Class in io.github.astrapi69.design.pattern.observer.chat
The class MessageRoomModelBean represents a model for a message in a chat room It includes details such as the chat room name, the user who sent the message, the message content, and any associated data, as well as the date the message was created
MessageRoomModelBean(String, IUser<?>, String, Byte[]) - Constructor for class io.github.astrapi69.design.pattern.observer.chat.MessageRoomModelBean
Instantiates a new MessageRoomModelBean with the specified details
MessageSource<T> - Interface in io.github.astrapi69.design.pattern.observer.chat.listener
The Interface MessageSource represents a source that can send messages to registered listeners It provides methods for adding, removing, and notifying MessageListener objects
MessageSubject<T> - Class in io.github.astrapi69.design.pattern.observer.chat.listener
The class MessageSubject represents a subject in the Observer design pattern for handling messages It maintains a list of MessageListener objects that are notified when a message is fired
MessageSubject() - Constructor for class io.github.astrapi69.design.pattern.observer.chat.listener.MessageSubject
Instantiates a new MessageSubject with no initial source
MessageSubject(T) - Constructor for class io.github.astrapi69.design.pattern.observer.chat.listener.MessageSubject
Instantiates a new MessageSubject with the given initial source

O

Observer<T> - Interface in io.github.astrapi69.design.pattern.observer.api
The Interface Observer represents an observer in the Observer design pattern It defines a contract for objects that should be notified of changes in an observable subject
of(T) - Static method in class io.github.astrapi69.design.pattern.observer.event.EventObject
Factory method to create a new EventObject object
of(T) - Static method in class io.github.astrapi69.design.pattern.observer.event.EventSubject
Factory method to create a new EventSubject object
onEvent(T) - Method in interface io.github.astrapi69.design.pattern.observer.event.EventListener
Handles the given event
onException(ExceptionEvent) - Method in interface io.github.astrapi69.design.pattern.observer.exception.ExceptionListener
Invoked when an exception event occurs
onMessage(T) - Method in interface io.github.astrapi69.design.pattern.observer.chat.listener.MessageListener
Handles the given message event

R

remove(ChatRoomUser<M>) - Method in class io.github.astrapi69.design.pattern.observer.chat.ChatRoom
Removes the given observer from the list of observers
remove(MessageListener<T>) - Method in interface io.github.astrapi69.design.pattern.observer.chat.listener.MessageSource
Removes the given MessageListener from the list of listeners that receive messages
remove(MessageListener<T>) - Method in class io.github.astrapi69.design.pattern.observer.chat.listener.MessageSubject
Removes the given MessageListener from the list of listeners that receive messages
remove(EventListener<T>) - Method in interface io.github.astrapi69.design.pattern.observer.event.EventSource
Removes the given event listener from the list of event listeners
remove(EventListener<T>) - Method in class io.github.astrapi69.design.pattern.observer.event.EventSubject
Removes the given event listener from the list of event listeners
remove(String) - Method in class io.github.astrapi69.design.pattern.observer.exception.ExceptionMessages
Removes all exception messages associated with the specified key
remove(O) - Method in class io.github.astrapi69.design.pattern.observer.AbstractSubject
Removes the given observer from the list of observers
remove(O) - Method in interface io.github.astrapi69.design.pattern.observer.api.Subject
Removes the given observer from the list of observers
removeAll(Collection<ChatRoomUser<M>>) - Method in class io.github.astrapi69.design.pattern.observer.chat.ChatRoom
Removes the given observers from the list of observers
removeAll(Collection<MessageListener<T>>) - Method in interface io.github.astrapi69.design.pattern.observer.chat.listener.MessageSource
Removes all the given MessageListener objects from the list of listeners that receive messages
removeAll(Collection<MessageListener<T>>) - Method in class io.github.astrapi69.design.pattern.observer.chat.listener.MessageSubject
Removes all the given MessageListener objects from the list of listeners that receive messages
removeAll(Collection<EventListener<T>>) - Method in interface io.github.astrapi69.design.pattern.observer.event.EventSource
Removes all the given event listeners from the list of event listeners
removeAll(Collection<EventListener<T>>) - Method in class io.github.astrapi69.design.pattern.observer.event.EventSubject
Removes all the given event listeners from the list of event listeners
removeAll(Collection<String>) - Method in class io.github.astrapi69.design.pattern.observer.exception.ExceptionMessages
Removes all exception messages associated with the specified collection of keys
removeAll(Collection<O>) - Method in class io.github.astrapi69.design.pattern.observer.AbstractSubject
Removes the given observers from the list of observers
removeAll(Collection<O>) - Method in interface io.github.astrapi69.design.pattern.observer.api.Subject
Removes the given observers from the list of observers
removeExceptionListener(ExceptionListener) - Method in class io.github.astrapi69.design.pattern.observer.exception.ExceptionObservers
Removes the specified exception listener from the list of listeners This method allows classes to unregister for exception events
Room<M extends Message<?>> - Interface in io.github.astrapi69.design.pattern.observer.chat
The interface Room represents a chat room in which users can participate It provides methods to retrieve the list of users in the chat room, the history of messages sent in the room, and to check whether the room is secure

S

send(M) - Method in class io.github.astrapi69.design.pattern.observer.chat.ChatRoomUser
Sends the given message to the chat room
setApplicationUser(User) - Method in class io.github.astrapi69.design.pattern.observer.chat.User
Sets the application user associated with this IUser
setApplicationUser(U) - Method in interface io.github.astrapi69.design.pattern.observer.chat.IUser
Sets the application user associated with this IUser
setData(Byte[]) - Method in class io.github.astrapi69.design.pattern.observer.chat.MessageRoomModelBean
Sets the additional data associated with the message
setId(Integer) - Method in class io.github.astrapi69.design.pattern.observer.chat.User
Sets the ID number of the user
setMessage(String) - Method in class io.github.astrapi69.design.pattern.observer.chat.MessageRoomModelBean
Sets the content of the message
setName(String) - Method in class io.github.astrapi69.design.pattern.observer.chat.User
Sets the name of the user
setObservable(M) - Method in class io.github.astrapi69.design.pattern.observer.chat.ChatRoom
Sets the observable object, which is the object being observed for state changes
setObservable(T) - Method in class io.github.astrapi69.design.pattern.observer.AbstractSubject
Sets the observable object, which is the object being observed for state changes
setObservable(T) - Method in interface io.github.astrapi69.design.pattern.observer.api.Subject
Sets the observable object, which is the object being observed for state changes
setValue(MessageRoomModelBean) - Method in class io.github.astrapi69.design.pattern.observer.chat.ChatMessage
Sets the value of the message
setValue(String) - Method in class io.github.astrapi69.design.pattern.observer.chat.StringMessage
Sets the value of the message
setValue(T) - Method in interface io.github.astrapi69.design.pattern.observer.chat.Message
Sets the value of the message
size() - Method in class io.github.astrapi69.design.pattern.observer.chat.ChatRoom
Returns the number of users in this chat room
source - Variable in class io.github.astrapi69.design.pattern.observer.chat.listener.MessageObject
The object on which the message event initially occurred
source - Variable in class io.github.astrapi69.design.pattern.observer.event.EventObject
The object on which the Event initially occurred
StringMessage - Class in io.github.astrapi69.design.pattern.observer.chat
The class StringMessage represents a message that contains a string value It implements the Message interface and provides methods to get and set the string value
StringMessage() - Constructor for class io.github.astrapi69.design.pattern.observer.chat.StringMessage
Instantiates a new StringMessage with no initial value
StringMessage(String) - Constructor for class io.github.astrapi69.design.pattern.observer.chat.StringMessage
Instantiates a new StringMessage with the given value
subject - Variable in class io.github.astrapi69.design.pattern.observer.AbstractObserver
The subject being observed
subject - Variable in class io.github.astrapi69.design.pattern.observer.chat.ChatRoomUser
The chat room (subject) that this user is part of
Subject<T,O extends Observer<T>> - Interface in io.github.astrapi69.design.pattern.observer.api
The interface Subject represents the "subject" in the Observer design pattern The subject is the object whose state changes are being observed by one or more observers When the state of the subject changes, the observers are notified of the change

T

toString() - Method in class io.github.astrapi69.design.pattern.observer.chat.StringMessage

U

update(M) - Method in class io.github.astrapi69.design.pattern.observer.chat.ChatRoomUser
This method is called to notify the observer of changes in the observable object Implementing classes should define the specific behavior that occurs when the observable object changes
update(T) - Method in class io.github.astrapi69.design.pattern.observer.AbstractObserver
This method is called to notify the observer of changes in the observable object Implementing classes should define the specific behavior that occurs when the observable object changes
update(T) - Method in interface io.github.astrapi69.design.pattern.observer.api.Observer
This method is called to notify the observer of changes in the observable object Implementing classes should define the specific behavior that occurs when the observable object changes
updateEvent(ExceptionListener, ExceptionEvent) - Method in class io.github.astrapi69.design.pattern.observer.exception.handlers.AbstractExceptionHandler
Updates the specified listener with the given exception event This method must be implemented by subclasses to define how the event is propagated to the listener
updateEvent(ExceptionListener, ExceptionEvent) - Method in class io.github.astrapi69.design.pattern.observer.exception.handlers.DefaultExceptionHandler
Updates the specified listener with the given exception event This method must be implemented by subclasses to define how the event is propagated to the listener
updateObservers() - Method in class io.github.astrapi69.design.pattern.observer.AbstractSubject
Notifies all observers of a change in the state of the observable object Each observer's update method is called with the current state of the observable
updateObservers() - Method in interface io.github.astrapi69.design.pattern.observer.api.Subject
Notifies all observers of a change in the state of the observable object Each observer's update method is called with the current state of the observable
updateObservers() - Method in class io.github.astrapi69.design.pattern.observer.chat.ChatRoom
Notifies all observers of a change in the state of the observable object Each observer's update method is called with the current state of the observable
updateOnException(ExceptionEvent) - Method in class io.github.astrapi69.design.pattern.observer.exception.handlers.DefaultExceptionHandler
Updates all registered listeners with the given exception event
User - Class in io.github.astrapi69.design.pattern.observer.chat
The class User represents a user in a chat application It implements the IUser interface and provides methods to manage the user's identity, including their name and ID
User(String, Integer) - Constructor for class io.github.astrapi69.design.pattern.observer.chat.User
Instantiates a new user with the given name and ID
A C D E F G I M O R S T U 
All Classes and Interfaces|All Packages|Serialized Form