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

com.qmetric.feed.domain.Payload Maven / Gradle / Ivy

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