Class HashModifierMethod
- java.lang.Object
-
- de.fraunhofer.iese.mydata.pep.common.PrimitiveModifierMethod
-
- de.fraunhofer.iese.mydata.pep.modifiers.basic.HashModifierMethod
-
- All Implemented Interfaces:
ModifierMethod
public class HashModifierMethod extends PrimitiveModifierMethod
This a default Modifiers method with Pep sdk which hashes a string
-
-
Constructor Summary
Constructors Constructor Description HashModifierMethod()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectdoModification(Object currentObject, de.fraunhofer.iese.mydata.policy.parameter.ParameterList modifierMethodParameterList)This method to be overridden when modifier wants to handle primitive type like Integer(int), Float(float), Boolean(boolean), Long(long), Short(short), Byte(byte) and Double(double) and StringStringgetDisplayName()Objecthash(String currentObject, String algorithm)-
Methods inherited from class de.fraunhofer.iese.mydata.pep.common.PrimitiveModifierMethod
doModification, nameIsValid
-
-
-
-
Method Detail
-
doModification
public Object doModification(Object currentObject, de.fraunhofer.iese.mydata.policy.parameter.ParameterList modifierMethodParameterList)
Description copied from interface:ModifierMethodThis method to be overridden when modifier wants to handle primitive type like Integer(int), Float(float), Boolean(boolean), Long(long), Short(short), Byte(byte) and Double(double) and String- Parameters:
currentObject- The primitive value for modification.modifierMethodParameterList- List of parameters that should be used for modification- Returns:
- This default implementation is returning the object without modification.
-
getDisplayName
public String getDisplayName()
- Returns:
- Display name
-
-