Class Building
-
- All Implemented Interfaces:
public class Building
Represents the information for Building
-
-
Field Summary
Fields Modifier and Type Field Description private final Integer
internalIdentifier
private final String
externalIdentifier
private final String
title
private final Site
site
private final List<Level>
levels
private final BoundingBox
boundingBox
private final GeoPolygon
geometry
private final Level
defaultLevel
private final String
displayableTitle
-
Method Summary
Modifier and Type Method Description Integer
getInternalIdentifier()
Internal identifier of building on Pointr system String
getExternalIdentifier()
External identifier of building String
getTitle()
Title of building Site
getSite()
The Site that this building belongs to List<Level>
getLevels()
Available list of Levels in the building BoundingBox
getBoundingBox()
North-East aligned bounding box of the building GeoPolygon
getGeometry()
GeometryPolygon object which comprise information about the building's corners and the circle that enclose it Level
getDefaultLevel()
final String
getDisplayableTitle()
The displayable text. final Boolean
hasSameInternalIdentifier(Building other)
Checks the equality of (internalIdentifier) for given other instance Boolean
equals(Object other)
Integer
hashCode()
String
toString()
final static Building
invalidBuilding()
-
-
Method Detail
-
getInternalIdentifier
Integer getInternalIdentifier()
Internal identifier of building on Pointr system
-
getExternalIdentifier
String getExternalIdentifier()
External identifier of building
-
getBoundingBox
BoundingBox getBoundingBox()
North-East aligned bounding box of the building
-
getGeometry
GeoPolygon getGeometry()
GeometryPolygon object which comprise information about the building's corners and the circle that enclose it
-
getDefaultLevel
Level getDefaultLevel()
-
getDisplayableTitle
final String getDisplayableTitle()
The displayable text. -> returns title if it's not null or empty -> if title is null or empty returns ->getExternalIdentifier if it's not null or empty -> if getExternalIdentifier is empty returns getInternalIdentifier as string
-
hasSameInternalIdentifier
final Boolean hasSameInternalIdentifier(Building other)
Checks the equality of (internalIdentifier) for given other instance
- Parameters:
other
- Building instance to check the id.- Returns:
true if id's are same, false otherwise
-
invalidBuilding
final static Building invalidBuilding()
-
-
-
-