/*
 * Automatically generated by jrpcgen 1.1.6 on 21.02.24 22:11
 * jrpcgen is part of the "Remote Tea" ONC/RPC package for Java
 * See http://remotetea.sourceforge.net for details
 */
package tests.org.acplt.oncrpc.jrpcgen;
import org.acplt.oncrpc.*;
import java.io.IOException;

/** TODO */
public class STRINGVECTOR implements XdrAble, java.io.Serializable {
    /** TODO */
    public STRING[] value;

    private static final long serialVersionUID = -6645878168698853047L;

    public STRINGVECTOR() {
    }

    public STRINGVECTOR(XdrDecodingStream xdr)
           throws OncRpcException, IOException {
        xdrDecode(xdr);
    }

    public STRINGVECTOR(STRING[] value) {
        this.value = value;
    }

    @Override
    public void xdrEncode(XdrEncodingStream xdr)
           throws OncRpcException, IOException {
        STRING.xdrEncodeDynamicVector(xdr, value);
    }

    @Override
    public void xdrDecode(XdrDecodingStream xdr)
           throws OncRpcException, IOException {
        value = STRING.xdrDecodeDynamicVector(xdr);
    }

    @Override
    public String toString() {
        return "STRINGVECTOR ["
        + "value=" + java.util.Arrays.toString(value)
        + "]";
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) return true;
        if (obj == null) return false;
        if (getClass() != obj.getClass()) return false;
        STRINGVECTOR other = (STRINGVECTOR)obj;
        if (! java.util.Arrays.equals(this.value, other.value)) return false;
        return true;
    }

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

}
// End of STRINGVECTOR.java
