@HashCodeAndEqualsPlugin.Enhance public static class NamingStrategy.PrefixingRandom extends NamingStrategy.AbstractBase
NamingStrategy.AbstractBase, NamingStrategy.PrefixingRandom, NamingStrategy.SuffixingRandom
Constructor and Description |
---|
PrefixingRandom(String prefix)
Creates a new prefixing random naming strategy.
|
Modifier and Type | Method and Description |
---|---|
protected String |
name(TypeDescription superClass)
Determines a new name when creating a new type that subclasses the provided type.
|
rebase, redefine, subclass
public PrefixingRandom(String prefix)
prefix
- The prefix to append.protected String name(TypeDescription superClass)
NamingStrategy.AbstractBase
name
in class NamingStrategy.AbstractBase
superClass
- The super type of the created type.Copyright © 2014–2018. All rights reserved.