AI-generated Key Takeaways
-
IndoorBuilding represents a physical building and its equality is based on the physical building itself, not necessarily its contents which can change.
-
You can retrieve the index of the currently active level and the default level within the building.
-
The IndoorBuilding class provides a list of all levels within the building, ordered from top to bottom.
-
There is a method to check if the building is entirely underground.
Represents a building.
Two IndoorBuildings are .equal() if the physical building they represent is the same. However, if a building's structural model changes, e.g., due to an update to Google's building models, then an old IndoorBuilding object and a new IndoorBuilding object will be .equal(), but might have different contents.
Public Method Summary
| boolean | |
| int |
getActiveLevelIndex()
Gets the index in the list returned by
getLevels() of the level that is currently active in this building
(default if no active level was previously set).
|
| int |
getDefaultLevelIndex()
Gets the index in the list returned by
getLevels() of the default level for this building.
|
| List<IndoorLevel> |
getLevels()
Gets the levels in the building.
|
| int |
hashCode()
|
| boolean |
isUnderground()
Returns true if the building is entirely underground.
|
Inherited Method Summary
Public Methods
public boolean equals (Object other)
Tests if this IndoorBuilding
is equal to another.
Parameters
| other | an Object. |
|---|
Returns
- true if both objects are the same object, that is, this == other.
public int getActiveLevelIndex ()
Gets the index in the list returned by getLevels()
of the level that is currently active in this building (default if no active level was
previously set).
public int getDefaultLevelIndex ()
Gets the index in the list returned by getLevels()
of the default level for this building.
public List<IndoorLevel> getLevels ()
Gets the levels in the building. While a level is usually enclosed by a single building, a level might be enclosed by several buildings (e.g., a carpark level might span multiple buildings). The levels are in 'display order' from top to bottom.
public int hashCode ()
public boolean isUnderground ()
Returns true if the building is entirely underground.