Blame | Last modification | View Log | RSS feed
package com.spice.profitmandi.common.model;import java.util.Set;public class CreateSchemeRequest {private String name;private String description;private String type;private String amountType;private float amount;private String startDateString;private String endDateString;private boolean active;private boolean retailerAll;private Set<Integer> retailerIds;private Set<Integer> itemIds;public String getName() {return name;}public void setName(String name) {this.name = name;}public String getDescription() {return description;}public void setDescription(String description) {this.description = description;}public String getType() {return type;}public void setType(String type) {this.type = type;}public String getAmountType() {return amountType;}public void setAmountType(String amountType) {this.amountType = amountType;}public float getAmount() {return amount;}public void setAmount(float amount) {this.amount = amount;}public String getStartDateString() {return startDateString;}public void setStartDateString(String startDateString) {this.startDateString = startDateString;}public String getEndDateString() {return endDateString;}public void setEndDateString(String endDateString) {this.endDateString = endDateString;}public boolean isActive() {return active;}public void setActive(boolean active) {this.active = active;}public boolean isRetailerAll() {return retailerAll;}public void setRetailerAll(boolean retailerAll) {this.retailerAll = retailerAll;}public Set<Integer> getRetailerIds() {return retailerIds;}public void setRetailerIds(Set<Integer> retailerIds) {this.retailerIds = retailerIds;}public Set<Integer> getItemIds() {return itemIds;}public void setItemIds(Set<Integer> itemIds) {this.itemIds = itemIds;}@Overridepublic int hashCode() {final int prime = 31;int result = 1;result = prime * result + (active ? 1231 : 1237);result = prime * result + Float.floatToIntBits(amount);result = prime * result + ((amountType == null) ? 0 : amountType.hashCode());result = prime * result + ((description == null) ? 0 : description.hashCode());result = prime * result + ((endDateString == null) ? 0 : endDateString.hashCode());result = prime * result + ((itemIds == null) ? 0 : itemIds.hashCode());result = prime * result + ((name == null) ? 0 : name.hashCode());result = prime * result + (retailerAll ? 1231 : 1237);result = prime * result + ((retailerIds == null) ? 0 : retailerIds.hashCode());result = prime * result + ((startDateString == null) ? 0 : startDateString.hashCode());result = prime * result + ((type == null) ? 0 : type.hashCode());return result;}@Overridepublic boolean equals(Object obj) {if (this == obj)return true;if (obj == null)return false;if (getClass() != obj.getClass())return false;CreateSchemeRequest other = (CreateSchemeRequest) obj;if (active != other.active)return false;if (Float.floatToIntBits(amount) != Float.floatToIntBits(other.amount))return false;if (amountType != other.amountType)return false;if (description == null) {if (other.description != null)return false;} else if (!description.equals(other.description))return false;if (endDateString == null) {if (other.endDateString != null)return false;} else if (!endDateString.equals(other.endDateString))return false;if (itemIds == null) {if (other.itemIds != null)return false;} else if (!itemIds.equals(other.itemIds))return false;if (name == null) {if (other.name != null)return false;} else if (!name.equals(other.name))return false;if (retailerAll != other.retailerAll)return false;if (retailerIds == null) {if (other.retailerIds != null)return false;} else if (!retailerIds.equals(other.retailerIds))return false;if (startDateString == null) {if (other.startDateString != null)return false;} else if (!startDateString.equals(other.startDateString))return false;if (type != other.type)return false;return true;}@Overridepublic String toString() {return "CreateSchemeRequest [name=" + name + ", description=" + description + ", type=" + type + ", amountType="+ amountType + ", amount=" + amount + ", startDateString=" + startDateString + ", endDateString="+ endDateString + ", active=" + active + ", retailerAll=" + retailerAll + ", retailerIds=" + retailerIds+ ", itemIds=" + itemIds + "]";}}