content: /**
   * Copyright (c) 2010-present Abixen Systems. All rights reserved.
   *
   * This library is free software; you can redistribute it and/or modify it under
   * the terms of the GNU Lesser General Public License as published by the Free
   * Software Foundation; either version 2.1 of the License, or (at your option)
   * any later version.
   *
   * This library is distributed in the hope that it will be useful, but WITHOUT
   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
   * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
   * details.
   */
  
  package com.abixen.platform.core.application.dto;
  
  
  import lombok.Getter;
  import lombok.Setter;
  import lombok.ToString;
  import lombok.experimental.Accessors;
  
  import javax.validation.constraints.NotNull;
  
  @Getter
  @Setter
  @Accessors(chain = true)
  @ToString
  public class DashboardModuleDto {
  
      private Long id;
  
      private String description;
  
      @NotNull
      private String type;
  
      @NotNull
      private ModuleTypeDto moduleType;
  
      @NotNull
      private String title;
  
      @NotNull
      private Integer rowIndex;
  
      @NotNull
      private Integer columnIndex;
  
      @NotNull
      private Integer orderIndex;
  
      @NotNull
      private Long frontendId;
  
      @Override
      public boolean equals(Object o) {
          if (this == o) {
              return true;
          }
          if (o == null || getClass() != o.getClass()) {
              return false;
          }
  
          DashboardModuleDto that = (DashboardModuleDto) o;
  
          return !(id != null ? !id.equals(that.id) : that.id != null);
      }
  
      @Override
      public int hashCode() {
          return id != null ? id.hashCode() : 0;
      }
  
  }