Subversion Repositories SmartDukaan

Rev

Rev 21923 | View as "text/plain" | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.spice.profitmandi.common.model;

import java.time.LocalDateTime;
import java.util.Map;

public class ShippingDetail {
        private int providerId;
        private String providerName;
        private LocalDateTime shippedAt;
        private Map<String, Object> details;
        public int getProviderId() {
                return providerId;
        }
        public void setProviderId(int providerId) {
                this.providerId = providerId;
        }
        public String getProviderName() {
                return providerName;
        }
        public void setProviderName(String providerName) {
                this.providerName = providerName;
        }
        public LocalDateTime getShippedAt() {
                return shippedAt;
        }
        public void setShippedAt(LocalDateTime shippedAt) {
                this.shippedAt = shippedAt;
        }
        public Map<String, Object> getDetails() {
                return details;
        }
        public void setDetails(Map<String, Object> details) {
                this.details = details;
        }
        
        
        
        @Override
        public int hashCode() {
                final int prime = 31;
                int result = 1;
                result = prime * result + ((details == null) ? 0 : details.hashCode());
                result = prime * result + providerId;
                result = prime * result + ((providerName == null) ? 0 : providerName.hashCode());
                result = prime * result + ((shippedAt == null) ? 0 : shippedAt.hashCode());
                return result;
        }
        @Override
        public boolean equals(Object obj) {
                if (this == obj)
                        return true;
                if (obj == null)
                        return false;
                if (getClass() != obj.getClass())
                        return false;
                ShippingDetail other = (ShippingDetail) obj;
                if (details == null) {
                        if (other.details != null)
                                return false;
                } else if (!details.equals(other.details))
                        return false;
                if (providerId != other.providerId)
                        return false;
                if (providerName == null) {
                        if (other.providerName != null)
                                return false;
                } else if (!providerName.equals(other.providerName))
                        return false;
                if (shippedAt == null) {
                        if (other.shippedAt != null)
                                return false;
                } else if (!shippedAt.equals(other.shippedAt))
                        return false;
                return true;
        }
        @Override
        public String toString() {
                return "ShippingDetail [providerId=" + providerId + ", providerName=" + providerName + ", shippedAt="
                                + shippedAt + ", details=" + details + "]";
        }
        
        
}