@Test public void testEquals() { assertEquals(new Distribution(URI.create("o"), Distribution.DOWNLOAD, false), new Distribution(URI.create("o"), Distribution.DOWNLOAD, false)); assertNotEquals(new Distribution(URI.create("o"), Distribution.DOWNLOAD, false), new Distribution(URI.create("o"), Distribution.STREAMING, false)); assertNotEquals(new Distribution(URI.create("o"), Distribution.DOWNLOAD, false), new Distribution(URI.create("o"), Distribution.CUSTOM, false)); assertNotEquals(new Distribution(URI.create("o"), Distribution.DOWNLOAD, false), new Distribution(URI.create("o"), Distribution.WEBSITE, false)); assertNotEquals(new Distribution(URI.create("o"), Distribution.DOWNLOAD, false), new Distribution(URI.create("o"), Distribution.WEBSITE_CDN, false)); }
@Override public boolean equals(final Object o) { if(this == o) { return true; } if(o == null || getClass() != o.getClass()) { return false; } final Distribution that = (Distribution) o; if(deployed != that.deployed) { return false; } if(enabled != that.enabled) { return false; } if(logging != that.logging) { return false; } if(!Arrays.equals(cnames, that.cnames)) { return false; } if(!Objects.equals(errorDocument, that.errorDocument)) { return false; } if(!Objects.equals(indexDocument, that.indexDocument)) { return false; } if(!Objects.equals(loggingContainer, that.loggingContainer)) { return false; } if(!Objects.equals(method, that.method)) { return false; } return true; }
Distribution { @Override public boolean equals(final Object o) { if(this == o) { return true; } if(o == null || getClass() != o.getClass()) { return false; } final Distribution that = (Distribution) o; if(deployed != that.deployed) { return false; } if(enabled != that.enabled) { return false; } if(logging != that.logging) { return false; } if(!Arrays.equals(cnames, that.cnames)) { return false; } if(!Objects.equals(errorDocument, that.errorDocument)) { return false; } if(!Objects.equals(indexDocument, that.indexDocument)) { return false; } if(!Objects.equals(loggingContainer, that.loggingContainer)) { return false; } if(!Objects.equals(method, that.method)) { return false; } return true; } }
Distribution { @Override public boolean equals(final Object o) { if(this == o) { return true; } if(o == null || getClass() != o.getClass()) { return false; } final Distribution that = (Distribution) o; if(deployed != that.deployed) { return false; } if(enabled != that.enabled) { return false; } if(logging != that.logging) { return false; } if(!Arrays.equals(cnames, that.cnames)) { return false; } if(!Objects.equals(errorDocument, that.errorDocument)) { return false; } if(!Objects.equals(indexDocument, that.indexDocument)) { return false; } if(!Objects.equals(loggingContainer, that.loggingContainer)) { return false; } if(!Objects.equals(method, that.method)) { return false; } return true; } Distribution(final URI origin, final Method method, final boolean enabled);  Distribution(final Method method, final boolean enabled); }
Distribution { @Override public boolean equals(final Object o) { if(this == o) { return true; } if(o == null || getClass() != o.getClass()) { return false; } final Distribution that = (Distribution) o; if(deployed != that.deployed) { return false; } if(enabled != that.enabled) { return false; } if(logging != that.logging) { return false; } if(!Arrays.equals(cnames, that.cnames)) { return false; } if(!Objects.equals(errorDocument, that.errorDocument)) { return false; } if(!Objects.equals(indexDocument, that.indexDocument)) { return false; } if(!Objects.equals(loggingContainer, that.loggingContainer)) { return false; } if(!Objects.equals(method, that.method)) { return false; } return true; } Distribution(final URI origin, final Method method, final boolean enabled);  Distribution(final Method method, final boolean enabled); String getId(); void setId(final String id); String getEtag(); String getReference(); URI getOrigin(); boolean isEnabled(); void setEnabled(final boolean enabled); boolean isDeployed(); void setDeployed(final boolean deployed); boolean isLogging(); void setLogging(boolean logging); void setLoggingContainer(final String container); String getLoggingContainer(); void setUrl(final URI url); URI getUrl(); void setSslUrl(final URI sslUrl); URI getSslUrl(); void setStreamingUrl(final URI streamingUrl); URI getStreamingUrl(); URI getiOSstreamingUrl(); void setiOSstreamingUrl(URI iOSstreamingUrl); String getStatus(); void setStatus(final String status); String getInvalidationStatus(); void setInvalidationStatus(final String invalidationStatus); List<Path> getContainers(); void setContainers(final List<Path> containers); String getIndexDocument(); void setIndexDocument(final String indexDocument); String getErrorDocument(); void setErrorDocument(String errorDocument); List<Path> getRootDocuments(); void setRootDocuments(final List<Path> rootDocuments); Method getMethod(); void setMethod(Method method); String[] getCNAMEs(); void setCNAMEs(final String[] cnames); void setEtag(final String etag); void setReference(final String reference); @Override String toString(); @Override boolean equals(final Object o); @Override int hashCode(); }
Distribution { @Override public boolean equals(final Object o) { if(this == o) { return true; } if(o == null || getClass() != o.getClass()) { return false; } final Distribution that = (Distribution) o; if(deployed != that.deployed) { return false; } if(enabled != that.enabled) { return false; } if(logging != that.logging) { return false; } if(!Arrays.equals(cnames, that.cnames)) { return false; } if(!Objects.equals(errorDocument, that.errorDocument)) { return false; } if(!Objects.equals(indexDocument, that.indexDocument)) { return false; } if(!Objects.equals(loggingContainer, that.loggingContainer)) { return false; } if(!Objects.equals(method, that.method)) { return false; } return true; } Distribution(final URI origin, final Method method, final boolean enabled);  Distribution(final Method method, final boolean enabled); String getId(); void setId(final String id); String getEtag(); String getReference(); URI getOrigin(); boolean isEnabled(); void setEnabled(final boolean enabled); boolean isDeployed(); void setDeployed(final boolean deployed); boolean isLogging(); void setLogging(boolean logging); void setLoggingContainer(final String container); String getLoggingContainer(); void setUrl(final URI url); URI getUrl(); void setSslUrl(final URI sslUrl); URI getSslUrl(); void setStreamingUrl(final URI streamingUrl); URI getStreamingUrl(); URI getiOSstreamingUrl(); void setiOSstreamingUrl(URI iOSstreamingUrl); String getStatus(); void setStatus(final String status); String getInvalidationStatus(); void setInvalidationStatus(final String invalidationStatus); List<Path> getContainers(); void setContainers(final List<Path> containers); String getIndexDocument(); void setIndexDocument(final String indexDocument); String getErrorDocument(); void setErrorDocument(String errorDocument); List<Path> getRootDocuments(); void setRootDocuments(final List<Path> rootDocuments); Method getMethod(); void setMethod(Method method); String[] getCNAMEs(); void setCNAMEs(final String[] cnames); void setEtag(final String etag); void setReference(final String reference); @Override String toString(); @Override boolean equals(final Object o); @Override int hashCode(); static final Method WEBSITE; static final Method WEBSITE_CDN; static final Method DOWNLOAD; static final Method CUSTOM; static final Method STREAMING; }