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

com.qmetric.feed.consumer.EntryId Maven / Gradle / Ivy

Go to download

Java library for consuming HAL+JSON feeds (https://github.com/qmetric/hal-feed-server)

There is a newer version: 3.18
Show newest version
package com.qmetric.feed.consumer;

import static org.apache.commons.lang3.builder.EqualsBuilder.reflectionEquals;
import static org.apache.commons.lang3.builder.HashCodeBuilder.reflectionHashCode;

public class EntryId
{
    private final String id;

    private EntryId(final String id)
    {
        this.id = id;
    }

    public static EntryId of(final String id)
    {
        return new EntryId(id);
    }

    @Override public boolean equals(final Object obj)
    {
        return reflectionEquals(this, obj);
    }

    @Override public int hashCode()
    {
        return reflectionHashCode(this);
    }

    @Override public String toString()
    {
        return id;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy