public class

NotificationIdGenerator

extends Object
java.lang.Object
   ↳ com.urbanairship.util.NotificationIdGenerator

Class Overview

An auto-incrementing notification ID generator.

Summary

Public Constructors
NotificationIdGenerator()
Public Methods
static int getRange()
Get the range.
static int getStart()
Get the start value.
static int nextID()
Store the next ID.
static void setRange(int newRange)
Set the number of notifications to display (max range).
static void setStart(int value)
Set the count and start value.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public NotificationIdGenerator ()

Public Methods

public static int getRange ()

Get the range.

Returns
  • The int range.

public static int getStart ()

Get the start value.

Returns
  • The int start.

public static int nextID ()

Store the next ID.

Returns
  • The int next ID.

public static void setRange (int newRange)

Set the number of notifications to display (max range). Implicitly resets the current id to getStart().

Parameters
newRange The number of notifications to display

public static void setStart (int value)

Set the count and start value.

Parameters
value The integer value