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

com.github.gentity.demogallery.UserIcon Maven / Gradle / Ivy

There is a newer version: 1.0.0
Show newest version

package com.github.gentity.demogallery;

import java.io.Serializable;
import java.util.List;
import javax.persistence.Column;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;

@Entity
@DiscriminatorValue("UICN")
public class UserIcon
    extends Picture
    implements Serializable
{

    @Column(name = "ICON_PUBLIC")
    protected Boolean iconPublic;

    public static UserIcon.Builder builder() {
        return new UserIcon.Builder();
    }

    public Boolean getIconPublic() {
        return iconPublic;
    }

    public void setIconPublic(Boolean iconPublic) {
        this.iconPublic = iconPublic;
    }

    public static class Builder
        extends Picture.Builder
    {

        private final UserIcon instance = new UserIcon();

        public UserIcon build() {
            return instance;
        }

        public UserIcon.Builder iconPublic(Boolean iconPublic) {
            instance.iconPublic = iconPublic;
            return this;
        }

        public UserIcon.Builder title(String title) {
            instance.title = title;
            return this;
        }

        public UserIcon.Builder pictureKeyword(List pictureKeyword) {
            instance.pictureKeyword = pictureKeyword;
            return this;
        }

        public UserIcon.Builder gallery(Gallery gallery) {
            instance.gallery = gallery;
            return this;
        }

        public UserIcon.Builder iconUser(User iconUser) {
            instance.iconUser = iconUser;
            return this;
        }

        public UserIcon.Builder pictureData(PictureData pictureData) {
            instance.pictureData = pictureData;
            return this;
        }

    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy