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

io.vrap.rmf.base.client.Base Maven / Gradle / Ivy

There is a newer version: 17.17.0
Show newest version

package io.vrap.rmf.base.client;

import org.apache.commons.lang3.builder.EqualsBuilder;
import org.apache.commons.lang3.builder.HashCodeBuilder;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

abstract class Base {

    @Override
    abstract public boolean equals(final Object o);

    @Override
    abstract public int hashCode();

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
    }

    protected boolean reflectionEquals(final Object o) {
        return EqualsBuilder.reflectionEquals(this, o);
    }

    public int reflectionHashCode() {
        return HashCodeBuilder.reflectionHashCode(this);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy