Skip to content

Niloofar-Alami/NotificationEngine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

2 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Notification Engine - Generics & Lambda Practice

A modern Core Java project demonstrating advanced concepts like Generics, The Collections Framework, and Lambda Expressions by refactoring a basic notification system into a scalable, bulk-processing engine.

๐Ÿš€ Features & Concepts Implemented

  • Functional Interfaces & Lambdas: Used @FunctionalInterface to abstract notification behaviors and leverage Java Lambdas for concise code.
  • Generics (): Built a type-safe NotificationManager that safely restricts inputs to valid notification classes.
  • Collections Framework (ArrayList): Transitioned from standard static arrays to dynamic lists to handle real-world, variable data inputs.
  • Clean Architecture: Separated concerns between the data structures, management engine, and execution blocks.

๐Ÿ› ๏ธ How it Works

Instead of manual initialization and individual execution loops, the engine queues notifications dynamically and flushes them using functional streams:

`java public void sendAll() { notifications.forEach(n -> n.send()); }

About

A type-safe bulk notification system in Java utilizing Generics, Lambda expressions, and Functional Interfaces.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages