T - the type of the object mapped by this WaveItempublic class WaveItem<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
private static int |
idGenerator
The generator of unique id.
|
private boolean |
isParameter
Flag that indicates if the WaveItem must be considered as a method parameter.
|
private Type |
itemType
The type of the related object registered by this wave item.
|
private String |
name
The WaveItem unique name.
|
private int |
uid
The unique identifier of the wave item.
|
| Modifier | Constructor and Description |
|---|---|
protected |
WaveItem()
Default Constructor.
|
protected |
WaveItem(boolean isParameter)
Default Constructor.
|
protected |
WaveItem(String name)
Default Constructor.
|
protected |
WaveItem(String name,
boolean isParameter)
Constructor with all parameters.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object waveItem) |
Type |
getItemType() |
String |
getName() |
int |
getUid() |
int |
hashCode() |
static void |
initEnum(WaveItemEnum waveItemEnum,
WaveItem<?> wi)
Initialize a WaveItem for a WaveItems.
|
boolean |
isParameter() |
private void |
setName(String name)
Set the name (optionally).
|
void |
setParameter(boolean isParameter) |
private void |
setUid(int uid) |
String |
toString() |
private static int idGenerator
private int uid
private final Type itemType
private String name
private boolean isParameter
protected WaveItem()
protected WaveItem(String name)
name - the unique name of this wave itemprotected WaveItem(boolean isParameter)
isParameter - the flag that indicates if this WaveItem must be considered by wave handlersprotected WaveItem(String name, boolean isParameter)
name - the unique name of this wave itemisParameter - the flag that indicates if this WaveItem must be considered by wave handlerspublic String getName()
public int getUid()
private void setUid(int uid)
uid - The uid to set.public Type getItemType()
private void setName(String name)
name - the name to setpublic boolean isParameter()
public void setParameter(boolean isParameter)
isParameter - The isParameter to set.public static void initEnum(WaveItemEnum waveItemEnum, WaveItem<?> wi)
waveItemEnum - the enumerated wave itemwi - the real waveItemCopyright © 2011–2014 JRebirth OSS. All rights reserved.