public final class JCollectionType extends JComponentizedType
Constructor and Description |
---|
JCollectionType(String typeName,
JType componentType,
boolean useJava50)
Creates an instance of a collection type, of type 'collectionName'.
|
JCollectionType(String typeName,
JType componentType,
boolean useJava50,
boolean useExtends)
Creates an instance of a collection type, of type 'collectionName'.
|
JCollectionType(String typeName,
String instanceName,
JType componentType,
boolean useJava50)
Creates an instance of a collection type, of type 'collectionName'.
|
Modifier and Type | Method and Description |
---|---|
String |
getInstanceName()
Returns the instance name of this collection type.
|
String |
toString()
Returns the String representation of this JType. |
getComponentType, isUseJava50
getLocalName, getName, isArray, isPrimitive, setName
public JCollectionType(String typeName, JType componentType, boolean useJava50)
typeName
- Name of the collection type interface.componentType
- Component type.useJava50
- True if Java 5.0 should be used.public JCollectionType(String typeName, JType componentType, boolean useJava50, boolean useExtends)
typeName
- Name of the collection type interface.componentType
- Component type.useJava50
- True if Java 5.0 should be used.useExtends
- True if '? extends' should be emitted for generics (Java 5.0 ff only).public JCollectionType(String typeName, String instanceName, JType componentType, boolean useJava50)
typeName
- Name of the collection type interface.instanceName
- Name of the actual collection type instance.componentType
- Component type.useJava50
- True if Java 5.0 should be used.Copyright © 2014. All rights reserved.