public class IDComponent extends Component implements SerializableComponent
Constructor and Description |
---|
IDComponent(String name,
int id)
Constructs ID component with given entity name and id.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getFullID() |
int |
getID() |
String |
getName() |
int |
hashCode() |
void |
read(Bundle bundle) |
String |
toString() |
void |
write(Bundle bundle) |
public IDComponent(String name, int id)
name
- string representation of entity nameid
- numeric id that uniquely identifies the entity with given namepublic final String getName()
public final int getID()
public final String getFullID()
public void write(@NotNull Bundle bundle)
public void read(@NotNull Bundle bundle)
Copyright © 2018. All rights reserved.