Class GeofenceResult
java.lang.Object
com.cercalia.sdk.model.geofencing.GeofenceResult
Result of a geofencing check operation.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull GeofenceResult.Builderbuilder()Creates a new builder forGeofenceResult.static @NotNull GeofenceResultempty(int totalPoints, int totalShapes) Creates an empty result with no matches.intReturns the number of shapes that contain points.@NotNull List<GeofenceMatch>Returns the shapes that contain at least one point.intReturns the total number of points checked.intReturns the total number of shapes checked.booleanReturns whether any matches were found.toString()
-
Method Details
-
getMatches
Returns the shapes that contain at least one point.- Returns:
- unmodifiable list of matches.
-
getTotalPointsChecked
public int getTotalPointsChecked()Returns the total number of points checked.- Returns:
- total points count.
-
getTotalShapesChecked
public int getTotalShapesChecked()Returns the total number of shapes checked.- Returns:
- total shapes count.
-
hasMatches
public boolean hasMatches()Returns whether any matches were found.- Returns:
trueif at least one shape contains a point.
-
getMatchCount
public int getMatchCount()Returns the number of shapes that contain points.- Returns:
- match count.
-
builder
Creates a new builder forGeofenceResult.- Returns:
- a new
GeofenceResult.Builderinstance.
-
empty
Creates an empty result with no matches.- Parameters:
totalPoints- total points checked.totalShapes- total shapes checked.- Returns:
- an empty result.
-
toString
-