public abstract class BaseRpc<T extends Identifiable<ID>,ID extends Serializable> extends Object implements Identifiable<ID>
init()
method for custom initialization needs.
If you need to create/update RPC then use ChangeableRpc
.
ChangeableRpc
Modifier | Constructor and Description |
---|---|
protected |
BaseRpc()
Empty constructor for deserialization from XML/JSON.
|
protected |
BaseRpc(T entity)
Creates RPC from specified entity.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Two entities are equal if their key values are equal.
|
ID |
getId()
Gets unique identifier of the entity.
|
int |
hashCode() |
protected void |
init()
Inits RPC => override it for specified needs.
|
void |
setId(ID id)
Sets unique identifier of the entity.
|
String |
toString() |
protected BaseRpc()
protected BaseRpc(T entity)
entity
- The entity@Nullable public ID getId()
Identifiable
getId
in interface Identifiable<ID extends Serializable>
public void setId(@Nullable ID id)
Identifiable
setId
in interface Identifiable<ID extends Serializable>
id
- unique identifierprotected void init()
public boolean equals(@Nullable Object obj)
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.