Package ch.phatec.publibike.entities
Interface IEntity
-
- All Known Implementing Classes:
AbstractEntity,Station,StationNetwork,StationState,Vehicle,VehicleType
public interface IEntity- Author:
- thomas pauli | phatec.ch
-
-
Method Summary
All Methods Instance Methods Abstract 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
Long getId()
Returns the id of the given entity.- Returns:
- The id of the given entity.
-
setId
void setId(Long id)
Sets the id for the given entity.- Parameters:
id- The id for the given entity.
-
getName
String getName()
Returns the name of the given entity.- Returns:
- The name of the given entity.
-
setName
void setName(String name)
Sets the name for the given entity.- Parameters:
name- The name for the given entity.
-
-