public static class NamingStrategy.Fixed extends Object implements NamingStrategy
This strategy should only be used for one shot type generators since they will otherwise create types that impose naming conflicts.
NamingStrategy.Fixed, NamingStrategy.PrefixingRandom, NamingStrategy.SuffixingRandom, NamingStrategy.Unbound, NamingStrategy.UnnamedType
Constructor and Description |
---|
Fixed(String name)
Creates an immutable fixed naming strategy.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
int |
hashCode() |
String |
name(NamingStrategy.UnnamedType unnamedType)
Generates a fully qualified name for a Java type.
|
String |
toString() |
public Fixed(String name)
name
- The name for the created type.public String name(NamingStrategy.UnnamedType unnamedType)
NamingStrategy
java.lang
package since such types cannot be loaded using a normal class loader. Also, the name should not yet be taken
by another type since this would cause conflicts in the name space. Therefore, it is recommendable to include
a random sequence within the name.name
in interface NamingStrategy
unnamedType
- An unnamed type that is to be named.Copyright © 2014–2015. All rights reserved.