Skip to content

Commit

Permalink
rename isEmpty => empty to avoid serialization(!)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhannes committed Sep 1, 2024
1 parent 232746a commit 7e7b714
Show file tree
Hide file tree
Showing 103 changed files with 112 additions and 112 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public final class PetDto {
private String name = null;
private LocalDate birth_date = null;

public boolean isEmpty() {
public boolean empty() {
return getName() == null
&& getBirth_date() == null
;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public final class PetLocationsDto {

private Map<String, Map<String, List<Double>>> locations = new HashMap<>();

public boolean isEmpty() {
public boolean empty() {
return getLocations() == null
;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public final class PetStoreDto {

private Map<String, PetDto> pets = new HashMap<>();

public boolean isEmpty() {
public boolean empty() {
return getPets() == null
;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public final class AddMessageToConversationDeltaDto implements DeltaDto {
private UUID messageId;
private ConversationMessageDto message = new ConversationMessageDto();

public boolean isEmpty() {
public boolean empty() {
return true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public sealed class ChangeTrackedDto implements ChangeTrackedInterface permits C
private OffsetDateTime createdAt;
private OffsetDateTime updatedAt;

public boolean isEmpty() {
public boolean empty() {
return true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public sealed interface ChangeTrackedInterface permits ChangeTrackedDto, Convers
OffsetDateTime getUpdatedAt();
ChangeTrackedInterface setUpdatedAt(OffsetDateTime updatedAt);

boolean isEmpty();
boolean empty();
ChangeTrackedInterface putAll(ChangeTrackedInterface o);
ChangeTrackedInterface removeWhereEqual(ChangeTrackedInterface o);
List<String> missingRequiredFields(String prefix);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public sealed class CommandToServerDto implements MessageToServerDto permits Eve
private OffsetDateTime clientTime;
private DeltaDto delta;

public boolean isEmpty() {
public boolean empty() {
return true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public final class ConversationInfoDto {
private String title;
private String summary = null;

public boolean isEmpty() {
public boolean empty() {
return getSummary() == null
;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public final class ConversationMessageDto implements ConversationMessageInterfac
private String text;
private Set<String> tags = new LinkedHashSet<>();

public boolean isEmpty() {
public boolean empty() {
return getTags() == null
&& isConversationMessageEmpty()
;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public sealed interface ConversationMessageInterface permits ConversationMessage
Set<String> getTags();
ConversationMessageInterface setTags(Set<String> tags);

boolean isEmpty();
boolean empty();
ConversationMessageInterface putAll(ConversationMessageInterface o);
ConversationMessageInterface removeWhereEqual(ConversationMessageInterface o);
List<String> missingRequiredFields(String prefix);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public final class ConversationMessageSnapshotDto implements ChangeTrackedInterf
private String text;
private Set<String> tags = new LinkedHashSet<>();

public boolean isEmpty() {
public boolean empty() {
return isChangeTrackedEmpty()
&& isConversationMessageEmpty()
;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ public ConversationSnapshotDto setUpdatedAt(OffsetDateTime updatedAt) {
return this;
}

public boolean isEmpty() {
return super.isEmpty()
public boolean empty() {
return super.empty()
;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public final class CreateConversationDeltaDto implements DeltaDto {
private UUID conversationId;
private ConversationInfoDto info = new ConversationInfoDto();

public boolean isEmpty() {
public boolean empty() {
return true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ static CreateConversationDeltaDto createCreateConversationDelta() {
return new CreateConversationDeltaDto().setDelta("CreateConversationDelta");
}

boolean isEmpty();
boolean empty();
List<String> missingRequiredFields(String prefix);
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ public EventFromServerDto setDelta(DeltaDto delta) {
return this;
}

public boolean isEmpty() {
return super.isEmpty()
public boolean empty() {
return super.empty()
;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
public sealed interface MessageFromServerDto permits EventFromServerDto, SnapshotSetDto {


boolean isEmpty();
boolean empty();
List<String> missingRequiredFields(String prefix);
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
public sealed interface MessageToServerDto permits CommandToServerDto, RequestToServerDto {


boolean isEmpty();
boolean empty();
List<String> missingRequiredFields(String prefix);
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public final class SnapshotSetDto implements MessageFromServerDto {

private List<ConversationSnapshotDto> conversations = new ArrayList<>();

public boolean isEmpty() {
public boolean empty() {
return true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public final class SubscribeRequestDto implements RequestToServerDto {
private String request = "SubscribeRequest";
private UUID clientId;

public boolean isEmpty() {
public boolean empty() {
return true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public final class UpdateConversationDeltaDto implements DeltaDto {
private UUID conversationId;
private ConversationInfoDto info = new ConversationInfoDto();

public boolean isEmpty() {
public boolean empty() {
return true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public final class PetDto {
private String name = null;
private LocalDate birth_date = null;

public boolean isEmpty() {
public boolean empty() {
return getName() == null
&& getBirth_date() == null
;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public final class ActivityDto {
private OffsetDateTime dueDate = null;
private Boolean completed = null;

public boolean isEmpty() {
public boolean empty() {
return getId() == null
&& getTitle() == null
&& getDueDate() == null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public final class AuthorDto {
private String firstName = null;
private String lastName = null;

public boolean isEmpty() {
public boolean empty() {
return getId() == null
&& getIdBook() == null
&& getFirstName() == null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public final class BookDto {
private String excerpt = null;
private OffsetDateTime publishDate = null;

public boolean isEmpty() {
public boolean empty() {
return getId() == null
&& getTitle() == null
&& getDescription() == null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public final class CoverPhotoDto {
private Integer idBook = null;
private URI url = null;

public boolean isEmpty() {
public boolean empty() {
return getId() == null
&& getIdBook() == null
&& getUrl() == null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public final class UserDto {
private String userName = null;
private String password = null;

public boolean isEmpty() {
public boolean empty() {
return getId() == null
&& getUserName() == null
&& getPassword() == null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public final class GeometryCollectionDto {
private String type = "GeometryCollection";
private List<GeometryDto> geometries = new ArrayList<>();

public boolean isEmpty() {
public boolean empty() {
return true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ static LineStringDto createLineString() {
return new LineStringDto().setType("LineString");
}

boolean isEmpty();
boolean empty();
List<String> missingRequiredFields(String prefix);
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public final class LineStringDto implements GeometryDto {
private String type = "LineString";
private List<List<Double>> coordinates = new ArrayList<>();

public boolean isEmpty() {
public boolean empty() {
return true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public final class PointDto implements GeometryDto {
*/
private List<Double> coordinates = new ArrayList<>();

public boolean isEmpty() {
public boolean empty() {
return true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public final class PolygonDto implements GeometryDto {
private String type = "Polygon";
private List<List<List<Double>>> coordinates = new ArrayList<>();

public boolean isEmpty() {
public boolean empty() {
return true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public final class CaseWorkerDto {
private String email;
private UserRoleDto role;

public boolean isEmpty() {
public boolean empty() {
return getId() == null
;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public String toString() {
private StatusEnum status;
private DelayAfterInfectionEnum delayAfterInfection = null;

public boolean isEmpty() {
public boolean empty() {
return getId() == null
&& getExposedPersonName() == null
&& getExposedPersonPhoneNumber() == null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public final class InfectionDto {
private InfectionInformationDto information = new InfectionInformationDto();
private List<ExposureDto> registeredExposures = new ArrayList<>();

public boolean isEmpty() {
public boolean empty() {
return true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public final class InfectionInformationDto {
*/
private String notes = null;

public boolean isEmpty() {
public boolean empty() {
return getPatientName() == null
&& getPatientPhoneNumber() == null
&& getLikelyInfectionDate() == null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public String toString() {
private List<IdTokenSigningAlgValuesSupportedEnum> id_token_signing_alg_values_supported = new ArrayList<>();
private String x_sso_frame = null;

public boolean isEmpty() {
public boolean empty() {
return getUserinfo_endpoint() == null
&& getEnd_session_endpoint() == null
&& getJwks_uri() == null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public final class JwksDocumentDto {

private List<JwksKeyDto> keys = new ArrayList<>();

public boolean isEmpty() {
public boolean empty() {
return true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public final class JwksKeyDto {
private String e = null;
private String n = null;

public boolean isEmpty() {
public boolean empty() {
return getKty() == null
&& getUse() == null
&& getE() == null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public final class JwtHeaderDto {
*/
private String alg = null;

public boolean isEmpty() {
public boolean empty() {
return getTyp() == null
&& getKid() == null
&& getAlg() == null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ public final class JwtPayloadDto extends HashMap<String, List> {
*/
private String pid = null;

public boolean isEmpty() {
return super.isEmpty()
public boolean empty() {
return super.empty()
&& getName() == null
&& getEmail() == null
&& getOrgId() == null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public String toString() {
private ErrorEnum error;
private String error_description;

public boolean isEmpty() {
public boolean empty() {
return true;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public final class TokenResponseDto {
private String id_token = null;
private String refresh_token = null;

public boolean isEmpty() {
public boolean empty() {
return getExpires_in() == null
&& getScope() == null
&& getId_token() == null
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public final class UserinfoDto {
private String name = null;
private Object email = null;

public boolean isEmpty() {
public boolean empty() {
return getName() == null
&& getEmail() == null
;
Expand Down
Loading

0 comments on commit 7e7b714

Please sign in to comment.