All Downloads are FREE. Search and download functionalities are using the official Maven repository.

fr.pacifista.api.web.vote.client.dtos.VotesCountDTO Maven / Gradle / Ivy

package fr.pacifista.api.web.vote.client.dtos;

import lombok.Getter;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;

@Getter
@RequiredArgsConstructor
public class VotesCountDTO {

    @NonNull
    private final String username;

    private int votesCount = 1;

    public boolean equalsUsername(String username) {
        return this.username.equalsIgnoreCase(username);
    }

    public void incrementVotesCount() {
        ++this.votesCount;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy