public class Hashing extends Object
| Modifier and Type | Method and Description |
|---|---|
Float |
getHashedPercentageForObjectIds(List<String> ids)
Returns the percentage of hash of the list of object IDs.
|
Float |
getHashedPercentageForObjectIds(List<String> ids,
Integer iterations)
Returns the percentage of hash of the list of object IDs with iteration.
|
static Hashing |
getInstance()
Returns the hashing instance.
|
String |
getMD5(String hash)
returns the mdt of the string provided.
|
static void |
setInstance(Hashing instanceObj)
Set the instance object.
|
public static Hashing getInstance()
public static void setInstance(Hashing instanceObj)
instanceObj - Instance obj of Hashingpublic Float getHashedPercentageForObjectIds(List<String> ids)
ids - List of string IDspublic Float getHashedPercentageForObjectIds(List<String> ids, Integer iterations)
ids - List of string IDs.iterations - Number of iterations for the string to be repeated.Copyright © 2022. All rights reserved.