public static class ToStringMethod.PrefixResolver.ForFixedValue extends Object implements ToStringMethod.PrefixResolver
ToStringMethod.PrefixResolver.Default, ToStringMethod.PrefixResolver.ForFixedValue
Constructor and Description |
---|
ForFixedValue(String prefix)
Creates a new prefix resolver that returns a fixed value.
|
Modifier and Type | Method and Description |
---|---|
String |
resolve(TypeDescription instrumentedType)
Resolves the prefixed value.
|
public ForFixedValue(String prefix)
prefix
- The prefix to prepend.public String resolve(TypeDescription instrumentedType)
ToStringMethod.PrefixResolver
resolve
in interface ToStringMethod.PrefixResolver
instrumentedType
- The instrumented type.Copyright © 2014–2018. All rights reserved.