RegionEvent extends Event implements JsonSerializable { static boolean regionEventLongitudeIsValid(@NonNull Double lon) { return lon <= RegionEvent.MAX_LONGITUDE && lon >= RegionEvent.MIN_LONGITUDE; } private  RegionEvent(@NonNull RegionEvent.Builder builder); @NonNull static Builder newBuilder(); @NonNull @Override final String getType(); @Boundary int getBoundaryEvent(); @NonNull @Override @RestrictTo(RestrictTo.Scope.LIBRARY_GROUP) final JsonMap getEventData(); @NonNull @Override JsonValue toJsonValue(); @Override boolean isValid(); @Override @Priority int getPriority(); @NonNull
    static final String TYPE; @NonNull
    static final String REGION_ID; static final int BOUNDARY_EVENT_ENTER; static final int BOUNDARY_EVENT_EXIT; static final int MAX_CHARACTER_LENGTH; static final double MAX_LATITUDE; static final double MIN_LATITUDE; static final double MAX_LONGITUDE; static final double MIN_LONGITUDE; }
@Test public void testRegionEventLongitudeIsValid() { Double validLongitude = 0.0; Double invalidLongitudeMax = 181.0; Double invalidLongitudeMin = -181.0; assertTrue(RegionEvent.regionEventLongitudeIsValid(validLongitude)); assertFalse(RegionEvent.regionEventLongitudeIsValid(invalidLongitudeMax)); assertFalse(RegionEvent.regionEventLongitudeIsValid(invalidLongitudeMin)); }