|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.dishevelled.codegen.CollectionDescription
public final class CollectionDescription
A description of a collection interface and implementation.
| Field Summary | |
|---|---|
static CollectionDescription |
ARRAY_LIST
ArrayList description. |
static CollectionDescription |
COLLECTION
Collection description. |
static CollectionDescription |
HASH_SET
HashSet description. |
static CollectionDescription |
LINKED_HASH_SET
LinkedHashSet description. |
static CollectionDescription |
LINKED_LIST
LinkedList description. |
static CollectionDescription |
TREE_SET
TreeSet description. |
| Constructor Summary | |
|---|---|
CollectionDescription(String interfaceName,
String interfaceDescription,
String interfacePackageName,
String implementationName,
String implementationPackageName)
Create a new collection description from the specified parameters. |
|
| Method Summary | |
|---|---|
static CollectionDescription |
choose(boolean indexed,
boolean unique,
boolean ordered,
boolean sorted)
Choose a collection description that satisfies the specified parameters. |
String |
getImplementationName()
Return the implementation name for this collection description. |
String |
getImplementationPackageName()
Return the implementation package name for this collection description. |
String |
getInterfaceDescription()
Return the interface description for this collection description. |
String |
getInterfaceName()
Return the interface name for this collection description. |
String |
getInterfacePackageName()
Return the interface package name for this collection description. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final CollectionDescription COLLECTION
public static final CollectionDescription LINKED_LIST
public static final CollectionDescription ARRAY_LIST
public static final CollectionDescription HASH_SET
public static final CollectionDescription LINKED_HASH_SET
public static final CollectionDescription TREE_SET
| Constructor Detail |
|---|
public CollectionDescription(String interfaceName,
String interfaceDescription,
String interfacePackageName,
String implementationName,
String implementationPackageName)
interfaceName - interface name for this collection descriptioninterfaceDescription - interface description for this collection descriptioninterfacePackageName - interface package name for this collection descriptionimplementationName - implementation name for this collection descriptionimplementationPackageName - implementation package name for this collection description| Method Detail |
|---|
public String getInterfaceName()
public String getInterfaceDescription()
public String getInterfacePackageName()
public String getImplementationName()
public String getImplementationPackageName()
public static CollectionDescription choose(boolean indexed,
boolean unique,
boolean ordered,
boolean sorted)
indexed - true if the collection should be indexedunique - true if the collection should not allow duplicate elementsordered - true if the collection should iterate over elements in insertion-ordersorted - true if the collection should iterate over elements in ascending element order,
sorted according to the natural ordering of its elements (see Comparable), or by a Comparator
provided at creation time
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||