Esempio n. 1
0
        public override bool Equals(object o)
        {
            if (this == o)
            {
                return(true);
            }
            if (o == null || this.GetType() != o.GetType())
            {
                return(false);
            }
            FieldSignature that = ( FieldSignature )o;

            return(_name.Equals(that._name) && _type.Equals(that._type) && Objects.Equals(this._defaultValue, that._defaultValue) && this._deprecated == that._deprecated);
        }
Esempio n. 2
0
 private FieldSignature(string name, Neo4jTypes.AnyType type, DefaultParameterValue defaultValue, bool deprecated)
 {
     this._name         = requireNonNull(name, "name");
     this._type         = requireNonNull(type, "type");
     this._defaultValue = defaultValue;
     this._deprecated   = deprecated;
     if (defaultValue != null)
     {
         if (!type.Equals(defaultValue.Neo4jType()))
         {
             throw new System.ArgumentException(string.Format("Default value does not have a valid type, field type was {0}, but value type was {1}.", type.ToString(), defaultValue.Neo4jType().ToString()));
         }
     }
 }
Esempio n. 3
0
        public override bool Equals(object o)
        {
            if (this == o)
            {
                return(true);
            }
            if (o == null || this.GetType() != o.GetType())
            {
                return(false);
            }

            DefaultParameterValue that = ( DefaultParameterValue )o;

            if (_value != null ?!_value.Equals(that._value) : that._value != null)
            {
                return(false);
            }
            return(_type.Equals(that._type));
        }
Esempio n. 4
0
        public override bool Equals(object o)
        {
            if (this == o)
            {
                return(true);
            }
            if (o == null || this.GetType() != o.GetType())
            {
                return(false);
            }

            UserFunctionSignature that = ( UserFunctionSignature )o;

//JAVA TO C# CONVERTER WARNING: LINQ 'SequenceEqual' is not always identical to Java AbstractList 'equals':
//ORIGINAL LINE: return name.equals(that.name) && inputSignature.equals(that.inputSignature) && type.equals(that.type);
            return(_name.Equals(that._name) && _inputSignature.SequenceEqual(that._inputSignature) && _type.Equals(that._type));
        }