public boolean equals(Object obj)
    {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        Foo other = (Foo) obj;
        if (someBar == null)
        {
            if (other.someBar != null)
                return false;
        }
        else if (!someBar.equals(other.someBar))
            return false;
        if (someBoolean == null)
        {
            if (other.someBoolean != null)
                return false;
        }
        else if (!someBoolean.equals(other.someBoolean))
            return false;
        if (someBytes == null)
        {
            if (other.someBytes != null)
                return false;
        }
        else if (!someBytes.equals(other.someBytes))
            return false;
        if (someDouble == null)
        {
            if (other.someDouble != null)
                return false;
        }
        else if (!someDouble.equals(other.someDouble))
            return false;
        if (someEnum == null)
        {
            if (other.someEnum != null)
                return false;
        }
        else if (!someEnum.equals(other.someEnum))
            return false;
        if (someFloat == null)
        {
            if (other.someFloat != null)
                return false;
        }
        else if (!someFloat.equals(other.someFloat))
            return false;
        if (someInt == null)
        {
            if (other.someInt != null)
                return false;
        }
        else if (!someInt.equals(other.someInt))
            return false;
        if (someLong == null)
        {
            if (other.someLong != null)
                return false;
        }
        else if (!someLong.equals(other.someLong))
            return false;
        if (someString == null)
        {
            if (other.someString != null)
                return false;
        }
        else if (!someString.equals(other.someString))
            return false;
        return true;
    }
@param someLong
           the someLong to set
protostuff-runtime/src/test/java/io/protostuff/runtime/Foo.java