Package 

Class NotificationIdGenerator


  • 
    public final class NotificationIdGenerator
    
                        

    Generates sequential, thread-safe notification IDs.

    Used to create unique IDs for Android notifications.

    • Method Summary

      Modifier and Type Method Description
      final Integer next() Gets the next available notification ID.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NotificationIdGenerator

        NotificationIdGenerator(Integer initialValue)
        Parameters:
        initialValue - The starting value for the notification IDs (default: 0)
    • Method Detail

      • next

         final Integer next()

        Gets the next available notification ID.

        Thread-safe operation that returns a unique ID and increments the counter.