
com.qmetric.feed.domain.Payload Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hal-feed-server Show documentation
Show all versions of hal-feed-server Show documentation
Feed server based on HAL+JSON (http://stateless.co/hal_specification.html)
The newest version!
package com.qmetric.feed.domain;
import java.util.Map;
import static java.util.Collections.unmodifiableMap;
import static org.apache.commons.lang3.builder.EqualsBuilder.reflectionEquals;
import static org.apache.commons.lang3.builder.HashCodeBuilder.reflectionHashCode;
import static org.apache.commons.lang3.builder.ToStringBuilder.reflectionToString;
public class Payload
{
public final Map attributes;
public Payload(final Map attributes)
{
this.attributes = unmodifiableMap(attributes);
}
@Override
public int hashCode()
{
return reflectionHashCode(this);
}
@Override
public boolean equals(final Object obj)
{
return reflectionEquals(this, obj);
}
@Override
public String toString()
{
return reflectionToString(this);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy