Equals
@param object $obj
@return bool
164480
public function Equals( $obj )
	{
		/**
		 * @var SequenceType $dest
		 */
		$dest = $obj;
		if ( ! is_null( $obj ) )
		{
			return $this->TypeCode == $dest->TypeCode &&
				$this->SchemaElement == $dest->SchemaElement &&
				$this->SchemaAttribute == $dest->SchemaAttribute &&
				$this->SchemaType == $dest->SchemaType &&
				$this->Cardinality == $dest->Cardinality;
		}
		return false;
	}
761156
public function equals($o) {
		return (get_class($this) == get_class($o) && $this->id() == $o->id());
	}
481874
public static function propertiesExist($obj /*, $prop1, $prop2, etc... */){
		
		for($i = 1, $l = \func_num_args() - 1; $i <= $l; ++$i){
			if(!\property_exists($obj, \func_get_arg($i))){
				return false;
			}
		}
		
		return true;
		
	}
64283
public function Equals( $obj )
	{
		if ( ! $obj instanceof NormalizedStringValue )
		{
			return false;
		}

		/**
		 * @var TokenValue $other
		 */
		$other = $obj;
		return strcmp( $this->Value, $other->Value ) == 0;
	}
1236624
static function exists($obj)
    {
        $tabela = strtolower(FuncoesReflections::pegaNomeClasseObjeto($obj));
        $schema = JsonReader::read(BASE_DIR . '/phiber_config.json')->phiber->link->database_name;
        $sql    = "SELECT * FROM information_schema.tables WHERE table_schema = ? AND table_name = ?";
        
        if (JsonReader::read(BASE_DIR . "/phiber_config.json")->phiber->execute_querys == 1 ? true : false) {
            $pdo = self::getConnection()->prepare($sql);
            $pdo->bindValue(1, $schema);
            $pdo->bindValue(2, $tabela);
            $pdo->execute();
            
            if ($pdo->rowCount() > 0) {
                return true;
            }
                
            return false;

        } else {
            return $sql;
        }
    }
625573
public function equals($object): bool
    {
        if (get_class($this) === get_class($object)) {
            $props = Collection::collect((new \ReflectionObject($this))->getProperties());

            return $props
                ->filter(function ($prop) use ($object) {
                    /** @var \ReflectionProperty $prop */
                    $prop->setAccessible(true);

                    return (string)$prop->getValue($object) === (string)$prop->getValue($this);
                })
                ->count() === $props->count()
            ;
        }

        return false;
    }
430638
public function Equals( $obj )
	{
		if ( ! $obj instanceof HexBinaryValue )
		{
			return false;
		}

		return strcmp( $this->BinaryValue, $obj->BinaryValue ) == 0;
	}
1328402
public function equals(ValueObjectInterface $obj)
    {
        if (get_called_class() !== get_class($obj)) {
            return false;
        }

        /** @var ValueObjectInterface $this */
        return $this->getValue() === $obj->getValue();
    }
1354672
public function equals(ChipPot $object): bool
    {
        return static::class === get_class($object)
        && $this->chips() === $object->chips()
        && $this->players() === $object->players()
        && $this->total() === $object->total();
    }
882234
public function equals(Module $obj)
    {
        if (get_called_class() !== get_class($obj)) {
            return false;
        }

        /** @var Module $this */
        return $this->getValue() === $obj->getValue();
    }
880883
public function Equals( $obj )
	{
		if ( ! $obj instanceof DurationValue )
		{
			return false;
		}

		/**
		 * @var DurationValue $other
		 */
	    $other = $obj;

		if ( $other->getIsZero() && $this->getIsZero())
			return true;

		if ( $this->getType() != $other->getType() ) return false;

		return $this->ToString() == $other->ToString();
	}
727724
public function equals(ObjectInterface $user)
    {
        if($user instanceof UserInterface)
        {
            if($user->getEmail() == $this->getEmail())
            {
                if($user->getPassword() == $this->getPassword()) {
                    return true;
                }
            }
        }

        return false;
    }
1373357
protected boolean equalsTo(Object o) {
		if (o instanceof PHPObject) {
			PHPObject phpObject = (PHPObject) o;
			try {
				String expr = PHPInterpeter.getObject(this.phpSudId) + "->equals(" + PHPInterpeter.getObject(phpObject.phpSudId) + ")";
				Object z = container.getObjectParser().parse(expr);
				if (z instanceof Boolean) {
					Boolean res = (Boolean) z;
					return res;	
				}
			} catch (PHPException e) {
				LOGGER.error("Error when calling equalsTo " + e.toString());
			}
		}
		else {
			LOGGER.error("Equals call on bad object type : " + o.getClass().getCanonicalName());
		}
		return false;
	}
1121926
public boolean equalsPositional(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ResidueNumber other = (ResidueNumber) obj;
		if (insCode == null) {
			if (other.insCode != null)
				return false;
		} else if (!insCode.equals(other.insCode))
			return false;
		if (seqNum == null) {
			if (other.seqNum != null)
				return false;
		} else if (!seqNum.equals(other.seqNum))
			return false;

		return true;

	}
912965
public function Equals( $obj )
	{
		if ( is_string( $obj ) )
		{
	        return $this->Value == $obj;
		}
		else if ( $obj instanceof AnyUriValue )
		{
			/**
			 * @var AnyUriValue $other
			 */
			$other = $obj;
	        return $this->Value == $other->Value;
		}

	    return false;
	}
633197
public function equals(Statement $statement): bool
    {
        if (null !== $this->id xor null !== $statement->id) {
            return false;
        }

        if (null !== $this->id && null !== $statement->id && !$this->id->equals($statement->id)) {
            return false;
        }

        if (!$this->actor->equals($statement->actor)) {
            return false;
        }

        if (!$this->verb->equals($statement->verb)) {
            return false;
        }

        if (!$this->object->equals($statement->object)) {
            return false;
        }

        if (null === $this->result && null !== $statement->result) {
            return false;
        }

        if (null !== $this->result && null === $statement->result) {
            return false;
        }

        if (null !== $this->result && !$this->result->equals($statement->result)) {
            return false;
        }

        if (null === $this->authority && null !== $statement->authority) {
            return false;
        }

        if (null !== $this->authority && null === $statement->authority) {
            return false;
        }

        if (null !== $this->authority && !$this->authority->equals($statement->authority)) {
            return false;
        }

        if ($this->created != $statement->created) {
            return false;
        }

        if (null !== $this->context xor null !== $statement->context) {
            return false;
        }

        if (null !== $this->context && null !== $statement->context && !$this->context->equals($statement->context)) {
            return false;
        }

        if (null !== $this->attachments xor null !== $statement->attachments) {
            return false;
        }

        if (null !== $this->attachments && null !== $statement->attachments) {
            if (count($this->attachments) !== count($statement->attachments)) {
                return false;
            }

            foreach ($this->attachments as $key => $attachment) {
                if (!$attachment->equals($statement->attachments[$key])) {
                    return false;
                }
            }
        }

        return true;
    }
1289156
public static boolean areObjectsEqual(Object obj1, Object obj2) {
        boolean equal = false;
        if(obj1 == null && obj2 == null) {
            equal = true;
        } else {
            if(obj1 != null) {
                if(obj1.equals(obj2)) {
                    equal = true;
                }
            }
        }
        return equal;
    }