public final class InnerModelBase extends Object implements InnerModel
| Modifier and Type | Field and Description |
|---|---|
private static int |
idGenerator
The generator of unique id.
|
private UniqueKey<? extends Model> |
modelKey
The unique key of the inner model.
|
private int |
uid
The unique identifier of the wave type.
|
| Modifier | Constructor and Description |
|---|---|
private |
InnerModelBase(Class<? extends Model> modelClass,
Object... keyPart)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static InnerModelBase |
build(Class<? extends Model> modelClass,
Object... keyPart)
Build an InnerModel.
|
boolean |
equals(Object innerModel) |
UniqueKey<? extends Model> |
getKey()
Return the key of the model.
|
int |
getUid()
Gets the uid.
|
int |
hashCode() |
void |
setUid(int uid)
Sets the uid.
|
private static int idGenerator
private int uid
public static InnerModelBase build(Class<? extends Model> modelClass, Object... keyPart)
modelClass - the model classkeyPart - the list of model keyspublic UniqueKey<? extends Model> getKey()
ClassKey instance for a unique model or a MultitonKey for non unique modelgetKey in interface InnerModelpublic int getUid()
public void setUid(int uid)
uid - The uid to set.Copyright © 2011–2014 JRebirth OSS. All rights reserved.