public interface IJGenerifiable extends IJDeclaration, IJOwned
Modifier and Type | Method and Description |
---|---|
JTypeVar |
generify(String sName)
Adds a new type variable to this declaration.
|
default JTypeVar |
generify(String sName,
AbstractJClass aExtends)
Adds a new type variable to this declaration with a bound.
|
default JTypeVar |
generify(String sName,
Class<?> aExtends)
Adds a new type variable to this declaration with a bound.
|
JTypeVar[] |
typeParams()
Iterates all the type parameters of this declaration.
|
declare
@Nonnull JTypeVar generify(@Nonnull String sName)
sName
- type variable nameJTypeVar
@Nonnull default JTypeVar generify(@Nonnull String sName, @Nonnull Class<?> aExtends)
sName
- type variable nameaExtends
- Bound classJTypeVar
@Nonnull default JTypeVar generify(@Nonnull String sName, @Nonnull AbstractJClass aExtends)
sName
- type variable nameaExtends
- Bound classJTypeVar
Copyright © 2013–2017 Philip Helger. All rights reserved.