Class GeofenceResult

java.lang.Object
com.cercalia.sdk.model.geofencing.GeofenceResult

public final class GeofenceResult extends Object
Result of a geofencing check operation.
  • Method Details

    • getMatches

      @NotNull public @NotNull List<GeofenceMatch> 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:
      true if at least one shape contains a point.
    • getMatchCount

      public int getMatchCount()
      Returns the number of shapes that contain points.
      Returns:
      match count.
    • builder

      @NotNull public static @NotNull GeofenceResult.Builder builder()
      Creates a new builder for GeofenceResult.
      Returns:
      a new GeofenceResult.Builder instance.
    • empty

      @NotNull public static @NotNull GeofenceResult empty(int totalPoints, int totalShapes)
      Creates an empty result with no matches.
      Parameters:
      totalPoints - total points checked.
      totalShapes - total shapes checked.
      Returns:
      an empty result.
    • toString

      public String toString()
      Overrides:
      toString in class Object