Package ch.phatec.publibike.entities
Class AbstractEntity
- java.lang.Object
-
- ch.phatec.publibike.entities.AbstractEntity
-
- All Implemented Interfaces:
IEntity
- Direct Known Subclasses:
Station,StationNetwork,StationState,Vehicle,VehicleType
public abstract class AbstractEntity extends Object implements IEntity
- Author:
- thomas pauli | phatec.ch
-
-
Constructor Summary
Constructors Constructor Description AbstractEntity()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LonggetId()Returns the id of the given entity.StringgetName()Returns the name of the given entity.voidsetId(Long id)Sets the id for the given entity.voidsetName(String name)Sets the name for the given entity.
-
-
-
Method Detail
-
getId
public Long getId()
Description copied from interface:IEntityReturns the id of the given entity.
-
setId
public void setId(Long id)
Description copied from interface:IEntitySets the id for the given entity.
-
getName
public String getName()
Description copied from interface:IEntityReturns the name of the given entity.
-
-