public final class UserNoteEntityHelper extends Object
Modifier and Type | Field and Description |
---|---|
static int |
RANK_PRECISION
The rank precision is used to convert a normalized rank ( a value between 0 and 1) to an
integer by multiplicating it with this precision.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
checkValidRank(int rank) |
static int |
convertNormalizedRank(double normalizedRank)
Converts the normalized rank to an integer
|
static double |
convertToNormalizedRank(int rank)
Convert the rank back to a normalized rank
|
public static final int RANK_PRECISION
public static boolean checkValidRank(int rank)
rank
- the rank to checkpublic static int convertNormalizedRank(double normalizedRank)
normalizedRank
- the normalized rankpublic static double convertToNormalizedRank(int rank)
rank
- the rankCopyright © 2019 Communote team. All rights reserved.