Index

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

A

AbstractClass - Class in Behavioral.TemplateMethod
Abstract class defining the template method and the structure of the algorithm.
AbstractClass() - Constructor for class Behavioral.TemplateMethod.AbstractClass
Default constructor for AbstractClass.
AbstractFactory - Interface in Creational.AbstractFactory
Abstract Factory interface.
AbstractHandler - Class in Behavioral.ChainOfResponsibility
Abstract base class that implements the chaining mechanism.
AbstractHandler() - Constructor for class Behavioral.ChainOfResponsibility.AbstractHandler
Default constructor for AbstractHandler.
accept(Visitor) - Method in class Behavioral.Visitor.Element
Accept a Visitor.
accept(Visitor) - Method in class Behavioral.Visitor.ElementA
Accept a Visitor.
accept(Visitor) - Method in class Behavioral.Visitor.ElementB
Accept a Visitor.
accept(Visitor) - Method in class Behavioral.Visitor.ObjectStructure
Accept a visitor for all elements in the structure.
actionA() - Method in class Behavioral.Command.Receiver
Executes Action A.
actionB() - Method in class Behavioral.Command.Receiver
Executes Action B.
Adaptee - Class in Structural.Adapter
The Adaptee class provides existing functionality that needs adaptation.
Adaptee() - Constructor for class Structural.Adapter.Adaptee
Default constructor for Adaptee.
Adapter - Class in Structural.Adapter
The Adapter class makes the Adaptee compatible with the Target interface.
Adapter(Adaptee) - Constructor for class Structural.Adapter.Adapter
Constructs the Adapter with an Adaptee instance.
add(Component) - Method in interface Structural.Composite.Component
Adds a child component.
add(Component) - Method in class Structural.Composite.Composite
Adds a child component to the Composite.
addColleague(Colleague) - Method in class Behavioral.Mediator.ConcreteMediator
Adds a colleague to the mediator.
addColleague(Colleague) - Method in interface Behavioral.Mediator.Mediator
Registers a colleague with the mediator.
addCommand(Command) - Method in class Behavioral.Command.Invoker
Adds a command to the queue.
addElement(Element) - Method in class Behavioral.Visitor.ObjectStructure
Add an element to the structure.
addItem(T) - Method in class Behavioral.Iterator.ConcreteAggregate
Add an item to the collection.
addMemento(Memento) - Method in class Behavioral.Memento.Caretaker
Adds a Memento to the list.
addObject(T) - Method in class Creational.ObjectPool.ObjectPool
Adds a reusable object to the pool.
Aggregate<T> - Interface in Behavioral.Iterator
Interface for creating iterators.
And - Class in Behavioral.Interpreter
Nonterminal expression representing a logical AND operation in the interpreter pattern.
And(Expression, Expression) - Constructor for class Behavioral.Interpreter.And
Constructs an AND expression with the specified left and right operands.
attach(Observer) - Method in class Behavioral.Observer.Subject
Attaches an observer to the subject.

B

Behavioral.ChainOfResponsibility - package Behavioral.ChainOfResponsibility
 
Behavioral.Command - package Behavioral.Command
 
Behavioral.Interpreter - package Behavioral.Interpreter
 
Behavioral.Iterator - package Behavioral.Iterator
 
Behavioral.Mediator - package Behavioral.Mediator
 
Behavioral.Memento - package Behavioral.Memento
 
Behavioral.Observer - package Behavioral.Observer
 
Behavioral.State - package Behavioral.State
 
Behavioral.Strategy - package Behavioral.Strategy
 
Behavioral.TemplateMethod - package Behavioral.TemplateMethod
 
Behavioral.Visitor - package Behavioral.Visitor
 
borrowObject() - Method in class Creational.ObjectPool.ObjectPool
Borrows a reusable object from the pool.
Builder - Interface in Creational.Builder
Abstract interface for constructing a Product.
buildPartA() - Method in interface Creational.Builder.Builder
Builds Part A of the product.
buildPartA() - Method in class Creational.Builder.ConcreteBuilder
Builds Part A of the product.
buildPartB() - Method in interface Creational.Builder.Builder
Builds Part B of the product.
buildPartB() - Method in class Creational.Builder.ConcreteBuilder
Builds Part B of the product.

C

Caretaker - Class in Behavioral.Memento
The Caretaker class manages Memento objects.
Caretaker() - Constructor for class Behavioral.Memento.Caretaker
Default constructor for Caretaker.
clone() - Method in class Creational.Prototype.ConcretePrototype1
 
clone() - Method in class Creational.Prototype.ConcretePrototype2
 
clone() - Method in interface Creational.Prototype.Prototype
Creates a clone of the current object.
Colleague - Class in Behavioral.Mediator
Abstract base class for Colleagues in the Mediator Pattern.
Colleague(Mediator) - Constructor for class Behavioral.Mediator.Colleague
Constructor to associate the colleague with a mediator.
Command - Interface in Behavioral.Command
The Command interface declares a method for executing commands.
component - Variable in class Structural.Decorator.Decorator
The wrapped Component.
Component - Interface in Structural.Composite
The Component interface declares common operations for both leaf and composite objects.
Component - Interface in Structural.Decorator
The Component interface defines operations that can be dynamically modified.
Composite - Class in Structural.Composite
Represents the Composite object in the Composite pattern.
Composite(String) - Constructor for class Structural.Composite.Composite
Constructor for the Composite.
ConcreteAggregate<T> - Class in Behavioral.Iterator
Concrete Aggregate that holds a collection of items.
ConcreteAggregate() - Constructor for class Behavioral.Iterator.ConcreteAggregate
Constructor initializes an empty collection.
ConcreteBuilder - Class in Creational.Builder
Concrete implementation of the Builder interface.
ConcreteBuilder() - Constructor for class Creational.Builder.ConcreteBuilder
Constructor initializes a new Product instance.
ConcreteClass1 - Class in Behavioral.TemplateMethod
Concrete implementation of AbstractClass, providing specific behavior.
ConcreteClass1() - Constructor for class Behavioral.TemplateMethod.ConcreteClass1
Default constructor for ConcreteClass1.
ConcreteClass2 - Class in Behavioral.TemplateMethod
Another concrete implementation of AbstractClass, with its own behavior.
ConcreteClass2() - Constructor for class Behavioral.TemplateMethod.ConcreteClass2
Default constructor for ConcreteClass2.
ConcreteColleague - Class in Behavioral.Mediator
Concrete implementation of the Colleague class.
ConcreteColleague(Mediator, String) - Constructor for class Behavioral.Mediator.ConcreteColleague
Constructor to create a named colleague.
ConcreteCommandA - Class in Behavioral.Command
A concrete implementation of the Command interface for Action A.
ConcreteCommandA(Receiver) - Constructor for class Behavioral.Command.ConcreteCommandA
Constructor to initialize the ConcreteCommandA.
ConcreteCommandB - Class in Behavioral.Command
A concrete implementation of the Command interface for Action B.
ConcreteCommandB(Receiver) - Constructor for class Behavioral.Command.ConcreteCommandB
Constructs a ConcreteCommandB instance.
ConcreteComponent - Class in Structural.Decorator
A ConcreteComponent provides the base implementation of the Component interface.
ConcreteComponent() - Constructor for class Structural.Decorator.ConcreteComponent
Default constructor for ConcreteComponent.
ConcreteCreatorA - Class in Creational.FactoryMethod
Concrete implementation of the Creator class.
ConcreteCreatorA() - Constructor for class Creational.FactoryMethod.ConcreteCreatorA
Default constructor for ConcreteCreatorA.
ConcreteCreatorB - Class in Creational.FactoryMethod
Concrete implementation of the Creator class.
ConcreteCreatorB() - Constructor for class Creational.FactoryMethod.ConcreteCreatorB
Default constructor for ConcreteCreatorB.
ConcreteDecoratorA - Class in Structural.Decorator
A ConcreteDecorator that adds behavior to the Component.
ConcreteDecoratorA(Component) - Constructor for class Structural.Decorator.ConcreteDecoratorA
Constructor accepting a Component to wrap.
ConcreteDecoratorB - Class in Structural.Decorator
Another ConcreteDecorator that adds behavior to the Component.
ConcreteDecoratorB(Component) - Constructor for class Structural.Decorator.ConcreteDecoratorB
Constructor accepting a Component to wrap.
ConcreteFactory1 - Class in Creational.AbstractFactory
Concrete Factory 1.
ConcreteFactory1() - Constructor for class Creational.AbstractFactory.ConcreteFactory1
Default constructor for ConcreteFactory1.
ConcreteFactory2 - Class in Creational.AbstractFactory
Concrete Factory 2.
ConcreteFactory2() - Constructor for class Creational.AbstractFactory.ConcreteFactory2
Default constructor for ConcreteFactory2.
ConcreteFlyweight - Class in Structural.Flyweight
Concrete implementation of the Flyweight interface.
ConcreteFlyweight(String) - Constructor for class Structural.Flyweight.ConcreteFlyweight
Constructor initializes the intrinsic state of the Flyweight.
ConcreteHandlerA - Class in Behavioral.ChainOfResponsibility
A concrete handler that processes specific requests.
ConcreteHandlerA() - Constructor for class Behavioral.ChainOfResponsibility.ConcreteHandlerA
Default constructor for ConcreteHandlerA.
ConcreteHandlerB - Class in Behavioral.ChainOfResponsibility
Another concrete handler that processes different requests.
ConcreteHandlerB() - Constructor for class Behavioral.ChainOfResponsibility.ConcreteHandlerB
Default constructor for ConcreteHandlerB.
ConcreteIterator<T> - Class in Behavioral.Iterator
Concrete Iterator for traversing a collection.
ConcreteIterator(List<T>) - Constructor for class Behavioral.Iterator.ConcreteIterator
Constructor initializes the iterator with a collection.
ConcreteMediator - Class in Behavioral.Mediator
Concrete implementation of the Mediator interface.
ConcreteMediator() - Constructor for class Behavioral.Mediator.ConcreteMediator
Default constructor for ConcreteMediator.
ConcreteObserver - Class in Behavioral.Observer
Concrete implementation of an Observer in the Observer pattern.
ConcreteObserver(String) - Constructor for class Behavioral.Observer.ConcreteObserver
Constructor for ConcreteObserver.
ConcreteProductA - Class in Creational.FactoryMethod
Concrete implementation of the Product interface.
ConcreteProductA() - Constructor for class Creational.FactoryMethod.ConcreteProductA
Default constructor for ConcreteProductA.
ConcreteProductA1 - Class in Creational.AbstractFactory
Concrete implementation of ProductA for Family 1.
ConcreteProductA1() - Constructor for class Creational.AbstractFactory.ConcreteProductA1
Default constructor for ConcreteProductA1.
ConcreteProductA2 - Class in Creational.AbstractFactory
Concrete implementation of ProductA for Family 2.
ConcreteProductA2() - Constructor for class Creational.AbstractFactory.ConcreteProductA2
Default constructor for ConcreteProductA2.
ConcreteProductB - Class in Creational.FactoryMethod
Concrete implementation of the Product interface.
ConcreteProductB() - Constructor for class Creational.FactoryMethod.ConcreteProductB
Default constructor for ConcreteProductB.
ConcreteProductB1 - Class in Creational.AbstractFactory
Concrete implementation of ProductB for Family 1.
ConcreteProductB1() - Constructor for class Creational.AbstractFactory.ConcreteProductB1
Default constructor for ConcreteProductB1.
ConcreteProductB2 - Class in Creational.AbstractFactory
Concrete implementation of ProductB for Family 2.
ConcreteProductB2() - Constructor for class Creational.AbstractFactory.ConcreteProductB2
Default constructor for ConcreteProductB2.
ConcretePrototype1 - Class in Creational.Prototype
A concrete implementation of the Prototype interface.
ConcretePrototype1(String) - Constructor for class Creational.Prototype.ConcretePrototype1
Constructor to initialize the attribute.
ConcretePrototype2 - Class in Creational.Prototype
Another concrete implementation of the Prototype interface.
ConcretePrototype2(int) - Constructor for class Creational.Prototype.ConcretePrototype2
Constructor to initialize the attribute.
ConcreteReusable - Class in Creational.ObjectPool
Concrete implementation of the Reusable interface.
ConcreteReusable(String) - Constructor for class Creational.ObjectPool.ConcreteReusable
Constructor initializing the object with a unique ID.
ConcreteStateA - Class in Behavioral.State
Concrete implementation of State representing State A.
ConcreteStateA() - Constructor for class Behavioral.State.ConcreteStateA
Default constructor for ConcreteStateA.
ConcreteStateB - Class in Behavioral.State
Concrete implementation of State representing State B.
ConcreteStateB() - Constructor for class Behavioral.State.ConcreteStateB
Default constructor for ConcreteStateB.
ConcreteStrategyA - Class in Behavioral.Strategy
A Concrete Strategy that implements an algorithm.
ConcreteStrategyA() - Constructor for class Behavioral.Strategy.ConcreteStrategyA
Default constructor for ConcreteStrategyA.
ConcreteStrategyB - Class in Behavioral.Strategy
Another Concrete Strategy that implements a different algorithm.
ConcreteStrategyB() - Constructor for class Behavioral.Strategy.ConcreteStrategyB
Default constructor for ConcreteStrategyB.
ConcreteSubject - Class in Behavioral.Observer
Concrete implementation of a Subject in the Observer pattern.
ConcreteSubject() - Constructor for class Behavioral.Observer.ConcreteSubject
Default constructor for ConcreteSubject.
ConcreteVisitorA - Class in Behavioral.Visitor
Concrete Visitor implementing specific operations for each element type.
ConcreteVisitorA() - Constructor for class Behavioral.Visitor.ConcreteVisitorA
Default constructor for ConcreteVisitorA.
ConcreteVisitorB - Class in Behavioral.Visitor
Another Concrete Visitor with different operations for each element type.
ConcreteVisitorB() - Constructor for class Behavioral.Visitor.ConcreteVisitorB
Default constructor for ConcreteVisitorB.
Constant - Class in Behavioral.Interpreter
Terminal expression representing a boolean constant in the interpreter pattern.
Constant(boolean) - Constructor for class Behavioral.Interpreter.Constant
Constructs a Constant expression with the specified boolean value.
construct() - Method in class Creational.Builder.Director
Constructs the product by invoking the builder's methods in sequence.
Context - Class in Behavioral.State
Context class maintaining a reference to a state instance.
Context - Class in Behavioral.Strategy
The Context class maintains a reference to a Strategy object and delegates the execution to it.
Context() - Constructor for class Behavioral.Strategy.Context
Default constructor for Context.
Context(State) - Constructor for class Behavioral.State.Context
Constructs a Context with an initial state.
cost() - Method in interface Structural.Decorator.Component
Gets the cost of the component.
cost() - Method in class Structural.Decorator.ConcreteComponent
 
cost() - Method in class Structural.Decorator.ConcreteDecoratorA
 
cost() - Method in class Structural.Decorator.ConcreteDecoratorB
 
cost() - Method in class Structural.Decorator.Decorator
 
createIterator() - Method in interface Behavioral.Iterator.Aggregate
Create an iterator for the collection.
createIterator() - Method in class Behavioral.Iterator.ConcreteAggregate
 
createMemento() - Method in class Behavioral.Memento.Originator
Creates a Memento containing the current state.
createProduct() - Method in class Creational.FactoryMethod.ConcreteCreatorA
Factory method implementation for creating ConcreteProductA.
createProduct() - Method in class Creational.FactoryMethod.ConcreteCreatorB
Factory method implementation for creating ConcreteProductB.
createProduct() - Method in class Creational.FactoryMethod.Creator
Factory method to create a product.
createProductA() - Method in interface Creational.AbstractFactory.AbstractFactory
Creates a product of type A.
createProductA() - Method in class Creational.AbstractFactory.ConcreteFactory1
Creates a ConcreteProductA1 instance.
createProductA() - Method in class Creational.AbstractFactory.ConcreteFactory2
Creates a ConcreteProductA2 instance.
createProductB() - Method in interface Creational.AbstractFactory.AbstractFactory
Creates a product of type B.
createProductB() - Method in class Creational.AbstractFactory.ConcreteFactory1
Creates a ConcreteProductB1 instance.
createProductB() - Method in class Creational.AbstractFactory.ConcreteFactory2
Creates a ConcreteProductB2 instance.
Creational.AbstractFactory - package Creational.AbstractFactory
 
Creational.Builder - package Creational.Builder
 
Creational.FactoryMethod - package Creational.FactoryMethod
 
Creational.ObjectPool - package Creational.ObjectPool
 
Creational.Prototype - package Creational.Prototype
 
Creational.Singleton - package Creational.Singleton
 
Creator - Class in Creational.FactoryMethod
Abstract Creator class in the Factory Method design pattern.
Creator() - Constructor for class Creational.FactoryMethod.Creator
Default constructor for Creator.

D

Decorator - Class in Structural.Decorator
The Decorator class wraps a Component and adds functionality dynamically.
Decorator(Component) - Constructor for class Structural.Decorator.Decorator
Constructor accepting a Component to wrap.
detach(Observer) - Method in class Behavioral.Observer.Subject
Detaches an observer from the subject.
Director - Class in Creational.Builder
Orchestrates the construction process.
Director(Builder) - Constructor for class Creational.Builder.Director
Constructs a Director with the given builder.
display() - Method in class Creational.Prototype.ConcretePrototype1
 
display() - Method in class Creational.Prototype.ConcretePrototype2
 
display() - Method in interface Creational.Prototype.Prototype
Displays the details of the prototype.
doSomething() - Method in class Creational.Singleton.Singleton
An example method demonstrating Singleton functionality.

E

Element - Class in Behavioral.Visitor
Abstract base class for elements.
Element() - Constructor for class Behavioral.Visitor.Element
Default constructor for Element.
ElementA - Class in Behavioral.Visitor
Concrete implementation of an element, ElementA.
ElementA() - Constructor for class Behavioral.Visitor.ElementA
Default constructor for ElementA.
ElementB - Class in Behavioral.Visitor
Concrete implementation of an element, ElementB.
ElementB() - Constructor for class Behavioral.Visitor.ElementB
Default constructor for ElementB.
execute() - Method in interface Behavioral.Command.Command
Executes the command.
execute() - Method in class Behavioral.Command.ConcreteCommandA
 
execute() - Method in class Behavioral.Command.ConcreteCommandB
 
execute() - Method in class Behavioral.Strategy.ConcreteStrategyA
Execute the algorithm defined by this concrete strategy.
execute() - Method in class Behavioral.Strategy.ConcreteStrategyB
Executes the algorithm specific to ConcreteStrategyB.
execute() - Method in interface Behavioral.Strategy.Strategy
Execute the strategy's algorithm.
executeAll() - Method in class Behavioral.Command.Invoker
Executes all commands in the queue and clears it.
executeStrategy() - Method in class Behavioral.Strategy.Context
Execute the current strategy's algorithm.
Expression - Interface in Behavioral.Interpreter
Represents an expression in a simple boolean grammar for the Interpreter design pattern.

F

Facade - Class in Structural.Facade
The Facade provides a simplified interface to the subsystems.
Facade() - Constructor for class Structural.Facade.Facade
Constructs the Facade with subsystem instances.
Flyweight - Interface in Structural.Flyweight
Flyweight interface for defining common methods that Flyweight objects must implement.
FlyweightFactory - Class in Structural.Flyweight
Factory for creating and managing Flyweight objects.
FlyweightFactory() - Constructor for class Structural.Flyweight.FlyweightFactory
Default constructor for FlyweightFactory.

G

getChild(int) - Method in interface Structural.Composite.Component
Retrieves a child component at the specified index.
getChild(int) - Method in class Structural.Composite.Composite
Retrieves a child component at the specified index.
getDescription() - Method in interface Structural.Decorator.Component
Gets the description of the component.
getDescription() - Method in class Structural.Decorator.ConcreteComponent
 
getDescription() - Method in class Structural.Decorator.ConcreteDecoratorA
 
getDescription() - Method in class Structural.Decorator.ConcreteDecoratorB
 
getDescription() - Method in class Structural.Decorator.Decorator
 
getFlyweight(String) - Method in class Structural.Flyweight.FlyweightFactory
Retrieves a Flyweight object with the given intrinsic state.
getInstance() - Static method in class Creational.Singleton.Singleton
Retrieves the single instance of the Singleton class.
getMemento(int) - Method in class Behavioral.Memento.Caretaker
Retrieves a Memento by index.
getName() - Method in class Behavioral.Mediator.ConcreteColleague
Gets the name of the colleague.
getName() - Method in class Behavioral.Observer.ConcreteObserver
Gets the name of the observer.
getName() - Method in class Behavioral.State.ConcreteStateA
 
getName() - Method in class Behavioral.State.ConcreteStateB
 
getName() - Method in interface Behavioral.State.State
Gets the name of the current state for debugging purposes.
getProduct() - Method in class Creational.Builder.Director
Retrieves the constructed product from the builder.
getResult() - Method in interface Creational.Builder.Builder
Retrieves the constructed product.
getResult() - Method in class Creational.Builder.ConcreteBuilder
Retrieves the constructed product.
getSize() - Method in class Creational.ObjectPool.ObjectPool
Gets the current size of the pool.
getState() - Method in class Behavioral.Memento.Memento
Retrieves the saved state.
getState() - Method in class Behavioral.Memento.Originator
Retrieves the current state of the Originator.
getState() - Method in class Behavioral.Observer.ConcreteSubject
Gets the state of the subject.
getStateName() - Method in class Behavioral.State.Context
Gets the name of the current state.

H

handle(Context) - Method in class Behavioral.State.ConcreteStateA
 
handle(Context) - Method in class Behavioral.State.ConcreteStateB
 
handle(Context) - Method in interface Behavioral.State.State
Handles the context-specific behavior for this state.
Handler - Interface in Behavioral.ChainOfResponsibility
The interface for handling requests in the chain.
handleRequest(String) - Method in class Behavioral.ChainOfResponsibility.AbstractHandler
 
handleRequest(String) - Method in class Behavioral.ChainOfResponsibility.ConcreteHandlerA
 
handleRequest(String) - Method in class Behavioral.ChainOfResponsibility.ConcreteHandlerB
 
handleRequest(String) - Method in interface Behavioral.ChainOfResponsibility.Handler
Handles the request or forwards it to the next handler.
hasNext() - Method in class Behavioral.Iterator.ConcreteIterator
 
hasNext() - Method in interface Behavioral.Iterator.Iterator
Check if there are more elements in the collection.
hook() - Method in class Behavioral.TemplateMethod.AbstractClass
Hook method that can be optionally overridden by subclasses.
hook() - Method in class Behavioral.TemplateMethod.ConcreteClass1
 

I

interpret(Map<String, Boolean>) - Method in class Behavioral.Interpreter.And
Interprets the AND expression by evaluating both operands and returning their logical conjunction.
interpret(Map<String, Boolean>) - Method in class Behavioral.Interpreter.Constant
Interprets the constant expression, returning its boolean value.
interpret(Map<String, Boolean>) - Method in interface Behavioral.Interpreter.Expression
Interprets this expression under the provided context of variable bindings.
interpret(Map<String, Boolean>) - Method in class Behavioral.Interpreter.Not
Interprets the NOT expression by evaluating its operand and returning the logical negation.
interpret(Map<String, Boolean>) - Method in class Behavioral.Interpreter.Or
Interprets the OR expression by evaluating both operands and returning their logical disjunction.
interpret(Map<String, Boolean>) - Method in class Behavioral.Interpreter.Variable
Interprets the variable expression by looking up its value in the provided context.
Invoker - Class in Behavioral.Command
The Invoker class stores and executes commands.
Invoker() - Constructor for class Behavioral.Command.Invoker
Default constructor for Invoker.
Iterator<T> - Interface in Behavioral.Iterator
Interface for traversing collections.

L

Leaf - Class in Structural.Composite
Represents the Leaf object in the Composite pattern.
Leaf(String) - Constructor for class Structural.Composite.Leaf
Constructor for the Leaf.
listFlyweights() - Method in class Structural.Flyweight.FlyweightFactory
Displays the current Flyweights managed by the factory.

M

mediator - Variable in class Behavioral.Mediator.Colleague
Reference to the Mediator
Mediator - Interface in Behavioral.Mediator
Interface for the Mediator in the Mediator Pattern.
Memento - Class in Behavioral.Memento
The Memento class stores the state of the Originator.
Memento(String) - Constructor for class Behavioral.Memento.Memento
Constructor to initialize the Memento with a state.

N

next() - Method in class Behavioral.Iterator.ConcreteIterator
 
next() - Method in interface Behavioral.Iterator.Iterator
Retrieve the next element in the collection.
Not - Class in Behavioral.Interpreter
Nonterminal expression representing a logical NOT operation in the interpreter pattern.
Not(Expression) - Constructor for class Behavioral.Interpreter.Not
Constructs a NOT expression with the specified operand.
notifyObservers(String) - Method in class Behavioral.Observer.Subject
Notifies all attached observers of a change.

O

ObjectPool<T extends Reusable> - Class in Creational.ObjectPool
Generic Object Pool for managing reusable objects.
ObjectPool() - Constructor for class Creational.ObjectPool.ObjectPool
Constructs an empty ObjectPool.
ObjectStructure - Class in Behavioral.Visitor
ObjectStructure manages a collection of elements and processes them with visitors.
ObjectStructure() - Constructor for class Behavioral.Visitor.ObjectStructure
Default constructor for ObjectStructure.
Observer - Interface in Behavioral.Observer
Interface for all observers in the Observer pattern.
operation() - Method in interface Structural.Composite.Component
Performs an operation on the component.
operation() - Method in class Structural.Composite.Composite
Performs the operation on the Composite and its children.
operation() - Method in class Structural.Composite.Leaf
Performs the operation specific to the Leaf.
operation() - Method in class Structural.Facade.Facade
Executes a high-level operation by coordinating subsystems.
operation(String) - Method in class Structural.Flyweight.ConcreteFlyweight
 
operation(String) - Method in interface Structural.Flyweight.Flyweight
Operation performed by the Flyweight object.
operation1() - Method in class Structural.Facade.Subsystem1
Performs operation 1.
operation2() - Method in class Structural.Facade.Subsystem2
Performs operation 2.
operation3() - Method in class Structural.Facade.Subsystem3
Performs operation 3.
operationA() - Method in class Behavioral.Visitor.ElementA
Perform ElementA-specific behavior.
operationA() - Method in class Creational.AbstractFactory.ConcreteProductA1
Implementation of ProductA's operation for Family 1.
operationA() - Method in class Creational.AbstractFactory.ConcreteProductA2
Implementation of ProductA's operation for Family 2.
operationA() - Method in interface Creational.AbstractFactory.ProductA
Performs an operation specific to ProductA.
operationB() - Method in class Behavioral.Visitor.ElementB
Perform ElementB-specific behavior.
operationB() - Method in class Creational.AbstractFactory.ConcreteProductB1
Implementation of ProductB's operation for Family 1.
operationB() - Method in class Creational.AbstractFactory.ConcreteProductB2
Implementation of ProductB's operation for Family 2.
operationB() - Method in interface Creational.AbstractFactory.ProductB
Performs an operation specific to ProductB.
Or - Class in Behavioral.Interpreter
Nonterminal expression representing a logical OR operation in the interpreter pattern.
Or(Expression, Expression) - Constructor for class Behavioral.Interpreter.Or
Constructs an OR expression with the specified left and right operands.
Originator - Class in Behavioral.Memento
The Originator class creates and restores Memento objects.
Originator() - Constructor for class Behavioral.Memento.Originator
Default constructor for Originator.

P

parse() - Method in class Behavioral.Interpreter.Parser
Parses the input string and returns the root Expression.
Parser - Class in Behavioral.Interpreter
Minimal recursive-descent parser for a boolean domain-specific language (DSL).
Parser(String) - Constructor for class Behavioral.Interpreter.Parser
Constructs a parser for the given input string.
Product - Class in Creational.Builder
Represents the complex product being built.
Product - Interface in Creational.FactoryMethod
The Product interface defines a common interface for all products that can be created by the factory method.
Product() - Constructor for class Creational.Builder.Product
Default constructor for Product.
ProductA - Interface in Creational.AbstractFactory
Abstract interface for ProductA.
ProductB - Interface in Creational.AbstractFactory
Abstract interface for ProductB.
Prototype - Interface in Creational.Prototype
Interface for the Prototype pattern.
Proxy - Class in Structural.Proxy
The Proxy controls access to the RealSubject.
Proxy(boolean) - Constructor for class Structural.Proxy.Proxy
Constructs the Proxy with authentication status.

R

RealSubject - Class in Structural.Proxy
The RealSubject performs the actual work of handling requests.
RealSubject() - Constructor for class Structural.Proxy.RealSubject
Default constructor for RealSubject.
receive(String) - Method in class Behavioral.Mediator.Colleague
Handles a received message.
receive(String) - Method in class Behavioral.Mediator.ConcreteColleague
 
Receiver - Class in Behavioral.Command
The Receiver class contains the actual business logic for the commands.
Receiver() - Constructor for class Behavioral.Command.Receiver
Default constructor for Receiver.
remove(Component) - Method in interface Structural.Composite.Component
Removes a child component.
remove(Component) - Method in class Structural.Composite.Composite
Removes a child component from the Composite.
request() - Method in class Behavioral.State.Context
Requests the current state's handle behavior.
request() - Method in class Structural.Adapter.Adapter
Implements the Target interface by delegating to the Adaptee.
request() - Method in interface Structural.Adapter.Target
Standard method expected by the client.
request(String) - Method in class Structural.Proxy.Proxy
Handles the request by checking authentication and delegating to RealSubject.
request(String) - Method in class Structural.Proxy.RealSubject
Handles the request and simulates actual processing.
request(String) - Method in interface Structural.Proxy.Subject
Handles the request in a format expected by the client.
requiredOperation1() - Method in class Behavioral.TemplateMethod.AbstractClass
Abstract method that subclasses must implement.
requiredOperation1() - Method in class Behavioral.TemplateMethod.ConcreteClass1
 
requiredOperation1() - Method in class Behavioral.TemplateMethod.ConcreteClass2
 
requiredOperation2() - Method in class Behavioral.TemplateMethod.AbstractClass
Abstract method that subclasses must implement.
requiredOperation2() - Method in class Behavioral.TemplateMethod.ConcreteClass1
 
requiredOperation2() - Method in class Behavioral.TemplateMethod.ConcreteClass2
 
reset() - Method in class Creational.ObjectPool.ConcreteReusable
 
reset() - Method in interface Creational.ObjectPool.Reusable
Resets the reusable object to its initial state.
restoreMemento(Memento) - Method in class Behavioral.Memento.Originator
Restores the state from a given Memento.
returnObject(T) - Method in class Creational.ObjectPool.ObjectPool
Returns a reusable object to the pool.
Reusable - Interface in Creational.ObjectPool
Interface for objects managed by the ObjectPool.

S

send(String) - Method in class Behavioral.Mediator.Colleague
Sends a message via the mediator.
sendMessage(Colleague, String) - Method in class Behavioral.Mediator.ConcreteMediator
Sends a message from one colleague to all other colleagues.
sendMessage(Colleague, String) - Method in interface Behavioral.Mediator.Mediator
Sends a message from one colleague to others.
setNext(Handler) - Method in class Behavioral.ChainOfResponsibility.AbstractHandler
 
setNext(Handler) - Method in interface Behavioral.ChainOfResponsibility.Handler
Sets the next handler in the chain.
setPartA(String) - Method in class Creational.Builder.Product
Sets Part A of the product.
setPartB(String) - Method in class Creational.Builder.Product
Sets Part B of the product.
setState(State) - Method in class Behavioral.State.Context
Sets the state of the context.
setState(String) - Method in class Behavioral.Memento.Originator
Sets the state of the Originator.
setState(String) - Method in class Behavioral.Observer.ConcreteSubject
Sets the state of the subject and notifies observers.
setStrategy(Strategy) - Method in class Behavioral.Strategy.Context
Set the current strategy.
Singleton - Class in Creational.Singleton
Implementation of the Singleton design pattern in Java.
someOperation() - Method in class Creational.FactoryMethod.Creator
A common operation that demonstrates the use of the product.
specificRequest() - Method in class Structural.Adapter.Adaptee
A specific method offered by the Adaptee.
State - Interface in Behavioral.State
Abstract State interface defining behavior for concrete states.
Strategy - Interface in Behavioral.Strategy
The Strategy interface declares the common behavior for all supported algorithms.
Structural.Adapter - package Structural.Adapter
 
Structural.Composite - package Structural.Composite
 
Structural.Decorator - package Structural.Decorator
 
Structural.Facade - package Structural.Facade
 
Structural.Flyweight - package Structural.Flyweight
 
Structural.Proxy - package Structural.Proxy
 
Subject - Class in Behavioral.Observer
Abstract class for subjects in the Observer pattern.
Subject - Interface in Structural.Proxy
The Subject interface defines the common operations for the Proxy and RealSubject.
Subject() - Constructor for class Behavioral.Observer.Subject
Default constructor for Subject.
Subsystem1 - Class in Structural.Facade
Subsystem1 provides a specific functionality.
Subsystem1() - Constructor for class Structural.Facade.Subsystem1
Default constructor for Subsystem1.
Subsystem2 - Class in Structural.Facade
Subsystem2 provides a specific functionality.
Subsystem2() - Constructor for class Structural.Facade.Subsystem2
Default constructor for Subsystem2.
Subsystem3 - Class in Structural.Facade
Subsystem3 provides a specific functionality.
Subsystem3() - Constructor for class Structural.Facade.Subsystem3
Default constructor for Subsystem3.

T

Target - Interface in Structural.Adapter
The Target interface defines the domain-specific interface expected by the client.
templateMethod() - Method in class Behavioral.TemplateMethod.AbstractClass
Template method defining the algorithm structure.
toString() - Method in class Creational.Builder.Product
Provides a string representation of the product.
toString() - Method in class Creational.ObjectPool.ConcreteReusable
 

U

update(String) - Method in class Behavioral.Observer.ConcreteObserver
Handles updates from the subject.
update(String) - Method in interface Behavioral.Observer.Observer
Notifies the observer of a change in the subject.
use() - Method in class Creational.FactoryMethod.ConcreteProductA
Implements the behavior for ConcreteProductA.
use() - Method in class Creational.FactoryMethod.ConcreteProductB
Implements the behavior for ConcreteProductB.
use() - Method in interface Creational.FactoryMethod.Product
Defines the behavior of the product.
use() - Method in class Creational.ObjectPool.ConcreteReusable
 
use() - Method in interface Creational.ObjectPool.Reusable
Performs the primary action of the reusable object.

V

Variable - Class in Behavioral.Interpreter
Terminal expression representing a variable lookup in the interpreter pattern.
Variable(String) - Constructor for class Behavioral.Interpreter.Variable
Constructs a Variable expression with the specified variable name.
visitElementA(ElementA) - Method in class Behavioral.Visitor.ConcreteVisitorA
Visit an ElementA instance.
visitElementA(ElementA) - Method in class Behavioral.Visitor.ConcreteVisitorB
Visit an ElementA instance.
visitElementA(ElementA) - Method in interface Behavioral.Visitor.Visitor
Visit an ElementA instance.
visitElementB(ElementB) - Method in class Behavioral.Visitor.ConcreteVisitorA
Visit an ElementB instance.
visitElementB(ElementB) - Method in class Behavioral.Visitor.ConcreteVisitorB
Visit an ElementB instance.
visitElementB(ElementB) - Method in interface Behavioral.Visitor.Visitor
Visit an ElementB instance.
Visitor - Interface in Behavioral.Visitor
Visitor interface declaring operations for different element types.
A B C D E F G H I L M N O P R S T U V 
All Classes and Interfaces|All Packages