@HashCodeAndEqualsPlugin.Enhance public static class ToStringMethod.PrefixResolver.ForFixedValue extends java.lang.Object implements ToStringMethod.PrefixResolver
ToStringMethod.PrefixResolver.Default, ToStringMethod.PrefixResolver.ForFixedValue| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
prefix
The prefix to prepend.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ForFixedValue(java.lang.String prefix)
Creates a new prefix resolver that returns a fixed value.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
resolve(TypeDescription instrumentedType)
Resolves the prefixed value.
|
protected ForFixedValue(java.lang.String prefix)
prefix - The prefix to prepend.public java.lang.String resolve(TypeDescription instrumentedType)
resolve in interface ToStringMethod.PrefixResolverinstrumentedType - The instrumented type.