@param \AlgoWeb\PODataLaravel\Models\ObjectMap\Entities\Associations\AssociationStubBase $otherStub

@return bool
774612
public function isCompatible(AssociationStubBase $otherStub)
    {
        if (!parent::isCompatible($otherStub)) {
            return false;
        }
        $thisTarg = $this->getTargType();
        $thatTarg = $otherStub->getTargType();
        $thisNull = null === $thisTarg;
        $thatNull = null === $thatTarg;
        if ($thisNull == $thatNull) {
            return false;
        }
        if ($thisNull && ($thatTarg != $this->getBaseType())) {
            return false;
        }
        if ($thatNull && ($thisTarg != $otherStub->getBaseType())) {
            return false;
        }

        return true;
    }
63461
public function equals(Type $other)
    {
        $result = $other->isAssignableFrom($this) && $this->isAssignableFrom($other);
        $result2 = $this->getName() === $other->getName();
        
        //Are there any types which do not have the same name, but are assignable to each other?
        //(United types are sorted by their names)
        if ($result !== $result2)
            throw new \Exception("This should not happen - please report a bug!");
        
        return $result;
    }
1273315
public function addAll(Models $other)
    {
        if ($other->count() > 0) {
            $this->models->addAll($other->models);
        }

        return $this;
    }
1080597
public function compareTo($other)
    {
        if ($other === null) {
            return false;
        }
        if (!($other instanceof SubExpressionNode)) {
            return false;
        }

        return $this->getValue() == $other->getValue();
    }
253435
public function equals( $other ) {
		return $other instanceof self
			&& $this->username == $other->getUsername()
			&& $this->password == $other->getPassword()
			&& $this->domain == $other->getDomain();
	}
895115
public function equals(ActivityFeedItem $otherItem): bool
    {
        return $this->getTime()->format("Ymd") == $otherItem->getTime()->format("Ymd") &&
            $this->getTitle() == $otherItem->getTitle() &&
            $this->getDescription() == $otherItem->getDescription();
    }
1076263
public function equals(self $other) : bool
    {
        return
            $this->wrapped->y     == $other->wrapped->y &&
            $this->wrapped->m     == $other->wrapped->m &&
            $this->wrapped->d     == $other->wrapped->d &&
            $this->wrapped->h     == $other->wrapped->h &&
            $this->wrapped->i     == $other->wrapped->i &&
            $this->wrapped->s     == $other->wrapped->s &&
            $this->wrapped->days  == $other->wrapped->days &&
            $this->microseconds   == $other->microseconds;
    }
1141773
public function touches(Geometry $other): bool {
        $event = new SpatialRelationshipOpEvent($this, ['other' => $other]);
        $this->fireOperationEvent(SpatialRelationshipOpEvent::TOUCHES_EVENT, $event);
        return $event->getResults();
    }
859255
public function within(Geometry $other): bool {
        $event = new SpatialRelationshipOpEvent($this, ['other' => $other]);
        $this->fireOperationEvent(SpatialRelationshipOpEvent::WITHIN_EVENT, $event);
        return $event->getResults();
    }
11494
public function compareTo($other): bool {
        if(!($other instanceof $this)) {
            return FALSE;
        }
        if($this->getHost() !== $other->getHost()) {
            return FALSE;
        }
        if($this->getPort() !== $other->getPort()) {
            return FALSE;
        }
        return TRUE;
    }
1108660
public function compare(AssociationStubBase $other)
    {
        $thisClass = get_class($this);
        $otherClass = get_class($other);
        $classComp = strcmp($thisClass, $otherClass);
        if (0 !== $classComp) {
            return $classComp / abs($classComp);
        }
        $thisBase = $this->getBaseType();
        $otherBase = $other->getBaseType();
        $baseComp = strcmp($thisBase, $otherBase);
        if (0 !== $baseComp) {
            return $baseComp / abs($baseComp);
        }
        $thisMethod = $this->getRelationName();
        $otherMethod = $other->getRelationName();
        $methodComp = strcmp($thisMethod, $otherMethod);
        return 0 === $methodComp ? 0 : $methodComp / abs($methodComp);
    }
1155639
public function crosses(Geometry $other): bool {
        $event = new SpatialRelationshipOpEvent($this, ['other' => $other]);
        $this->fireOperationEvent(SpatialRelationshipOpEvent::CROSSES_EVENT, $event);
        return $event->getResults();
    }
278386
public function contains(Geometry $other): bool {
        $event = new SpatialRelationshipOpEvent($this, ['other' => $other]);
        $this->fireOperationEvent(SpatialRelationshipOpEvent::CONTAINS_EVENT, $event);
        return $event->getResults();
    }
1330110
public function isSame(Index $other, $renamedColumns = null)
    {
        if ($renamedColumns) {
            $columns = [];
            foreach ($this->columns as $col) {
                $columns[] = isset($renamedColumns[$col]) ? $renamedColumns[$col]->name : $col;
            }
        } else {
            $columns = $this->columns;
        }
        if ($columns != $other->columns) {
            return false;
        }
        if ($this->name == self::PRIMARY || $other->name == self::PRIMARY) {
            return $this->name == $other->name;
        } else {
            return $this->type == $other->type;
        }
    }
184516
public function overlaps(Geometry $other): bool {
        $event = new SpatialRelationshipOpEvent($this, ['other' => $other]);
        $this->fireOperationEvent(SpatialRelationshipOpEvent::OVERLAPS_EVENT, $event);
        return $event->getResults();
    }
492393
public function equals(RDN $other): bool
    {
        // if attribute count doesn't match
        if (count($this) != count($other)) {
            return false;
        }
        $attribs1 = $this->_attribs;
        $attribs2 = $other->_attribs;
        // if there's multiple attributes, sort using SET OF rules
        if (count($attribs1) > 1) {
            $attribs1 = self::fromASN1($this->toASN1())->_attribs;
            $attribs2 = self::fromASN1($other->toASN1())->_attribs;
        }
        for ($i = count($attribs1) - 1; $i >= 0; --$i) {
            $tv1 = $attribs1[$i];
            $tv2 = $attribs2[$i];
            if (!$tv1->equals($tv2)) {
                return false;
            }
        }
        return true;
    }
320975
public function sameValueAs($other_value)
    {
        $null_value = $this->attribute->getNullValue();
        if ($null_value === $this->getValue() && $null_value === $other_value) {
            return true;
        }

        $validation_result = $this->getAttribute()->getValidator()->validate($other_value);
        if ($validation_result->getSeverity() !== IncidentInterface::SUCCESS) {
            return false;
        }

        return $this->valueEquals($validation_result->getSanitizedValue());
    }