RegionEvent extends Event implements JsonSerializable { static boolean regionEventCharacterCountIsValid(@NonNull String string) { return string.length() <= MAX_CHARACTER_LENGTH && string.length() > 0; } 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 testRegionEventCharacterCountIsValid() { String validString = createFixedSizeString('a', 255); String invalidStringMax = createFixedSizeString('b', 256); String invalidStringMin = ""; assertTrue(RegionEvent.regionEventCharacterCountIsValid(validString)); assertFalse(RegionEvent.regionEventCharacterCountIsValid(invalidStringMax)); assertFalse(RegionEvent.regionEventCharacterCountIsValid(invalidStringMin)); }