Package es.situm.sdk.model.location
Class Bounds
- java.lang.Object
- 
- es.situm.sdk.model.location.Bounds
 
- 
- All Implemented Interfaces:
- android.os.Parcelable,- MapperInterface
 
 public class Bounds extends java.lang.Object implements android.os.Parcelable, MapperInterface Represents a rectangle bounds in a greographic 2D space Instances are immutable.
- 
- 
Field SummaryFields Modifier and Type Field Description static android.os.Parcelable.Creator<Bounds>CREATOR- 
Fields inherited from interface es.situm.sdk.model.MapperInterfaceACCESSIBILITY_MODE, ACCURACY, ADDRESS, ALTITUDE, ASSET_TRACKING_OPTIONS_BEACON_FILTERS, ASSET_TRACKING_OPTIONS_ENABLED, ASSET_TRACKING_OPTIONS_ITERATIONS_TO_UPLOAD, ASSET_TRACKING_OPTIONS_SCANNING_INTERVAL, BEACON_FILTER_UUID, BEARING, BEARING_FROM, BEARING_QUALITY, BOUNDS, BOUNDS_ROTATED, BUILDING, BUILDING_IDENTIFIER, BUILDING_NAME, CARTESIAN_BEARING, CARTESIAN_COORDINATE, CENTER, CLOSEST_LOCATION_IN_ROUTE, CODE, CONVERSION, COORDINATE, CREATED_AT, CURRENT_INDICATION, CURRENT_STEP_INDEX, CUSTOM_FIELDS, dateFormat, DEGREES, DEGREES_CLOCKWISE, DEVICE_ID, DIAGNOSTICS_OPTIONS_UPLOAD_DIAGNOSTICS_DATA, DIMENSIONS, DISTANCE, DISTANCE_TO_CHANGE_FLOOR_THRESHOLD, DISTANCE_TO_CHANGE_INDICATION_THRESHOLD, DISTANCE_TO_CLOSEST_POINT_IN_ROUTE, DISTANCE_TO_END_STEP, DISTANCE_TO_GOAL, DISTANCE_TO_GOAL_THRESHOLD, DISTANCE_TO_IGNORE_FIRST_INDICATION, DISTANCE_TO_NEXT_LEVEL, EDGES, EVENTS, EXCLUDED_TAGS, EXTERNAL_NAVIGATION_PAYLOAD, EXTERNAL_NAVIGATION_TYPE, FIRST_STEP, FLOOR, FLOOR_IDENTIFIER, FLOORS, FOREGROUND_SERVICE_NOTIFICATION_MESSAGE, FOREGROUND_SERVICE_NOTIFICATION_SHOW_STOP_ACTION, FOREGROUND_SERVICE_NOTIFICATION_STOP_ACTION_TEXT, FOREGROUND_SERVICE_NOTIFICATION_TAP_ACTION, FOREGROUND_SERVICE_NOTIFICATION_TITLE, FROM, GEOFENCES, HAS_BEARING, HAS_CARTESIAN_BEARING, HEIGHT, HUMAN_READABLE_MESSAGE, ID, IDENTIFIER, IGNORE_LOW_QUALITY_LOCATIONS, INCLUDED_TAGS, INDICATION_TYPE, INDICATIONS, INDICATIONS_INTERVAL, INDOOR_POIS, INFO_HTML, IS_FIRST, IS_INDOOR, IS_LAST, IS_OUTDOOR, IS_PUBLIC, LAST_STEP, LATITUDE, LONGITUDE, MAP_URL, MINIMIZE_FLOOR_CHANGES, NAME, NEEDED_LEVEL_CHANGE, NEXT_INDICATION, NEXT_LEVEL, NODES, NORTH_EAST, NORTH_WEST, ORIENTATION, ORIENTATION_TYPE, OUTDOOR_BUILDING_DETECTOR_BLE, OUTDOOR_POIS, OUTSIDE_ROUTE_THRESHOLD, PICTURE_THUMB_URL, PICTURE_URL, POI_CATEGORIES, POI_CATEGORY, POI_CATEGORY_CODE, POI_CATEGORY_ICON_SELECTED, POI_CATEGORY_ICON_UNSELECTED, POI_CATEGORY_IDENTIFIER, POI_CATEGORY_IDENTIFIERS, POI_CATEGORY_iNAME, POI_CATEGORY_NAME, POI_NAME, POI_TO, POI_TO_IDENTIFIER, POINTS, POLYGON_POINTS, POSITION, PROVIDER, QUALITY, RADIANS, RADIANS_MINUS_PI_PI, RADIUS, ROTATION, ROUND_INDICATIONS_STEP, ROUTE, ROUTE_STEP, SCALE, SEGMENTS, SOUTH_EAST, SOUTH_WEST, STATUS_NAME, STATUS_ORDINAL, STEP_IDX_DESTINATION, STEP_IDX_ORIGIN, STEPS, TIME_TO_END_STEP, TIME_TO_FIRST_INDICATION, TIME_TO_GOAL, TIME_TO_IGNORE_UNEXPECTED_FLOOR_CHANGES, TIMESTAMP, TO, TO_LEGACY, TRIGGER, UPDATED_AT, USER_IDENTIFIER, WIDTH, X, Y
 
- 
 - 
Constructor SummaryConstructors Constructor Description Bounds(Coordinate[] coordinates)Creates a rectangular Bound given the the geographic coordinate of the 4 corners.Bounds(Coordinate southWest, Coordinate northEast, Coordinate northWest, Coordinate southEast)Creates a rectangular Bound given the the geographic coordinate of the 4 corners.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intdescribeContents()booleanequals(java.lang.Object o)CoordinategetNorthEast()Returns the coordinate of the north-east corner of the bound.CoordinategetNorthWest()Returns the coordinate of the north-west corner of the bound.CoordinategetSouthEast()Returns the coordinate of the south-east corner of the bound.CoordinategetSouthWest()Returns the coordinate of the south-east corner of the bound.inthashCode()java.util.Map<java.lang.String,java.lang.Object>toMap()Method to transform object into Mapjava.lang.StringtoString()voidwriteToParcel(android.os.Parcel dest, int flags)
 
- 
- 
- 
Field Detail- 
CREATORpublic static final android.os.Parcelable.Creator<Bounds> CREATOR 
 
- 
 - 
Constructor Detail- 
Boundspublic Bounds(@NonNull Coordinate southWest, @NonNull Coordinate northEast, @NonNull Coordinate northWest, @NonNull Coordinate southEast)Creates a rectangular Bound given the the geographic coordinate of the 4 corners.- Parameters:
- southWest- e.g (0,0)
- northEast- e.g (w,h)
- northWest- e.g (0,h)
- southEast- e.g (w,0)
- Throws:
- java.lang.IllegalArgumentException- if some parameter is null
 
 - 
Boundspublic Bounds(@NonNull Coordinate[] coordinates)Creates a rectangular Bound given the the geographic coordinate of the 4 corners.- Parameters:
- coordinates- array with 4 non-null the geographic coordinate, ordered {southWest, northEast, northWest, southEast}.- e.g {(0,0), (w,h), (0,h), (w,0)} 
 
 
- 
 - 
Method Detail- 
getNorthWest@NonNull public Coordinate getNorthWest() Returns the coordinate of the north-west corner of the bound.- Returns:
- Coordinate
 
 - 
getNorthEast@NonNull public Coordinate getNorthEast() Returns the coordinate of the north-east corner of the bound.- Returns:
- Coordinate
 
 - 
getSouthEast@NonNull public Coordinate getSouthEast() Returns the coordinate of the south-east corner of the bound.- Returns:
- Coordinate
 
 - 
getSouthWest@NonNull public Coordinate getSouthWest() Returns the coordinate of the south-east corner of the bound.- Returns:
- Coordinate
 
 - 
equalspublic boolean equals(java.lang.Object o) - Overrides:
- equalsin class- java.lang.Object
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
describeContentspublic int describeContents() - Specified by:
- describeContentsin interface- android.os.Parcelable
 
 - 
writeToParcelpublic void writeToParcel(android.os.Parcel dest, int flags)- Specified by:
- writeToParcelin interface- android.os.Parcelable
 
 - 
toMappublic java.util.Map<java.lang.String,java.lang.Object> toMap() Description copied from interface:MapperInterfaceMethod to transform object into Map- Specified by:
- toMapin interface- MapperInterface
- Returns:
- Mapwith the information of the object mapped 
 
 
- 
 
-