@HashCodeAndEqualsPlugin.Enhance public static class MethodNameTransformer.Suffixing extends Object implements MethodNameTransformer
$
.MethodNameTransformer.Prefixing, MethodNameTransformer.Suffixing
Constructor and Description |
---|
Suffixing(String suffix)
Creates a new suffixing method name transformer.
|
Modifier and Type | Method and Description |
---|---|
String |
transform(MethodDescription methodDescription)
Transforms a method's name to an alternative name.
|
static MethodNameTransformer |
withRandomSuffix()
Creates a new suffixing method name transformer which adds a default suffix with a random name component.
|
public Suffixing(String suffix)
suffix
- The suffix to add to the method name before the seed.public static MethodNameTransformer withRandomSuffix()
public String transform(MethodDescription methodDescription)
transform
in interface MethodNameTransformer
methodDescription
- The original method.Copyright © 2014–2025. All rights reserved.