
package com.codice.cm;

import java.lang.*;
import java.util.*;

class Info {
    
    class Rep {
        @Serializable
        public class ObjectInfo {
            public long fIdOwner;
            public SEID owner;

            @Override
            public bool equals(object obj) {
                if (!(obj.getClass().equals(ObjectInfo.class)))
                    return false;

                if (Owner == null)
                    return true;

                return owner.equals(((ObjectInfo)obj).owner);
            }

            @Override
            public int hashCode() {
                return super.hashCode();
            }

        }

        @Serializable
        public class ObjectInRepInfo extends ObjectInfo {
            public long tepId = -1;
            public long id = -1;

            public ObjectInRepInfo() { }

            public ObjectInRepInfo(long id) {
                this.id = id;
            }

            @Override
            public boolean Equals(object obj) {
                if (!(obj.getClass().equals(ObjectInRepInfo.class))) {
                    return false;
                }

                ObjectInRepInfo repObj = (ObjectInRepInfo) obj;

                if (repId != repObj.repId) {
                    return false;
                }

                if (id != repObj.id) {
                    return false;
                }

                return super.equals(obj);
            }

            @Override
            public int hashCode()
            {
                return super.hashCode();
            }
        }
    }
}