Class AnagramModifierMethod
java.lang.Object
de.fraunhofer.iese.mydata.pep.common.PrimitiveModifierMethod
de.fraunhofer.iese.mydata.pep.modifiers.string.AnagramModifierMethod
- All Implemented Interfaces:
ModifierMethod
NOTE: This method does not anagram the string as primitive or json . It just
jumbles up the letters of the word so string does not make any sense.
Implementation is subject to change for later needs. It produces anagram of a
given string.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondoModification
(Object currentObject, 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 StringMethods inherited from class de.fraunhofer.iese.mydata.pep.common.PrimitiveModifierMethod
doModification, nameIsValid
-
Constructor Details
-
AnagramModifierMethod
public AnagramModifierMethod()
-
-
Method Details
-
getDisplayName
- Returns:
- Display Name
-
doModification
Description copied from interface:ModifierMethod
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 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.
-
anagram
- Parameters:
inputString
- string to scramblepercentage
- percentage of String to be modified (value between 0 and 100)- Returns:
- Scrambled string
-