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

com.dell.cpsd.hal.data.provider.api.ContextIdentity Maven / Gradle / Ivy


package com.dell.cpsd.hal.data.provider.api;

import java.util.ArrayList;
import java.util.List;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonPropertyOrder({
    "contextRoot",
    "contextPaths"
})
public class ContextIdentity {

    /**
     * ContextRoot
     * 

* * */ @JsonProperty("contextRoot") private ContextRoot contextRoot; @JsonProperty("contextPaths") private List contextPaths = new ArrayList(); /** * No args constructor for use in serialization * */ public ContextIdentity() { } /** * * @param contextPaths * @param contextRoot */ public ContextIdentity(ContextRoot contextRoot, List contextPaths) { super(); this.contextRoot = contextRoot; this.contextPaths = contextPaths; } /** * ContextRoot *

* * * @return * The contextRoot */ @JsonProperty("contextRoot") public ContextRoot getContextRoot() { return contextRoot; } /** * ContextRoot *

* * * @param contextRoot * The contextRoot */ @JsonProperty("contextRoot") public void setContextRoot(ContextRoot contextRoot) { this.contextRoot = contextRoot; } /** * * @return * The contextPaths */ @JsonProperty("contextPaths") public List getContextPaths() { return contextPaths; } /** * * @param contextPaths * The contextPaths */ @JsonProperty("contextPaths") public void setContextPaths(List contextPaths) { this.contextPaths = contextPaths; } @Override public String toString() { return ToStringBuilder.reflectionToString(this); } @Override public int hashCode() { return new HashCodeBuilder().append(contextRoot).append(contextPaths).toHashCode(); } @Override public boolean equals(Object other) { if (other == this) { return true; } if ((other instanceof ContextIdentity) == false) { return false; } ContextIdentity rhs = ((ContextIdentity) other); return new EqualsBuilder().append(contextRoot, rhs.contextRoot).append(contextPaths, rhs.contextPaths).isEquals(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy