public abstract class LimitHelper extends Object
| Modifier and Type | Method and Description | 
|---|---|
static float | 
getCount(long count,
        long limit)
Gets the count as percent. 
 | 
static String | 
getCountLimitAsString(long limit)
Gets the count limit as string. 
 | 
static float | 
getCountPercent(long count,
               long limit)
Gets the count as percent. 
 | 
static String | 
getCountPercentAsString(long count,
                       long limit)
Gets the percent as string. 
 | 
static boolean | 
isCountLimitReached(long count,
                   long limit)
Check whether the count value has or exceeds the limit. 
 | 
public static float getCount(long count,
                             long limit)
count - the countlimit - the limitpublic static String getCountLimitAsString(long limit)
limit - the limitpublic static float getCountPercent(long count,
                                    long limit)
count - the countlimit - the limitpublic static String getCountPercentAsString(long count, long limit)
count - the countlimit - the limitpublic static boolean isCountLimitReached(long count,
                                          long limit)
count - the countlimit - the limit to check against. A value of 0 or less is interpreted as no limit.Copyright © 2019 Communote team. All rights reserved.