Returns true if the two repetitions are equal.
@param RepetitionInterface $r1
@param RepetitionInterface $r2
542417
public function areEqual(RepetitionInterface $r1, RepetitionInterface $r2)
    {
        if ($r1->getStartDate() != $r2->getStartDate()) {
            return false;
        }

        if ($r1->getTimezone()->getName() != $r2->getTimezone()->getName()) {
            return false;
        }

        if ($r1->getEndDate() != $r2->getEndDate()) {
            return false;
        }

        if ($r1->isStartDateAllDay() != $r2->isStartDateAllDay()) {
            return false;
        }

        if ($r1->isEndDateAllDay() != $r2->isEndDateAllDay()) {
            return false;
        }

        if ($r1->getRepeatPeriod() != $r2->getRepeatPeriod()) {
            return false;
        }

        if ($r1->getRepeatMonthBy() != $r2->getRepeatMonthBy()) {
            return false;
        }

        if ($r1->getRepeatEveryNum() != $r2->getRepeatEveryNum()) {
            return false;
        }

        if ($r1->getRepeatPeriodEnd() != $r2->getRepeatPeriodEnd()) {
            return false;
        }

        foreach($r1->getRepeatPeriodWeekDays() as $weekDay) {
            if (!in_array($weekDay, $r2->getRepeatPeriodWeekDays())) {
                return false;
            }
        }

        if ($r1->getRepeatPeriodWeekDays() != $r2->getRepeatPeriodWeekDays()) {
        }return true;
    }
744497
public function repeat(Repeat $repeat = null)
    {
        if (is_null($repeat)) {
            return $this->repeat;
        }

        $this->repeat = $repeat;

        return $this;
    }
454361
public function compare($object1, $object2)
    {
        if (! is_scalar($object1) && ! is_null($object1)) {
            throw new ComparatorException('$object1 (type: ' . gettype($object1) . ') is not a primitive numeric type.');
        }
        if (! is_scalar($object2) && ! is_null($object2)) {
            throw new ComparatorException('$object2 (type: ' . gettype($object2) . ') is not a primitive numeric type.');
        }
        if (1 * $object1 < 1 * $object2) {
            return - 1;
        } elseif (1 * $object1 > 1 * $object2) {
            return 1;
        } else {
            return 0;
        }
    }
459868
public function DeepEqualByIteratorx( $iter1, $iter2 )
	{
		$iter1 = $iter1->CloneInstance();
		$iter2 = $iter2->CloneInstance();
		$flag1 = false;
		$flag2 = false;

		do
		{
			$flag1 = $iter1->MoveNext();
			$flag2 = $iter2->MoveNext();
			if ( $flag1 != $flag2 ) return false;

			if (! $flag1 && ! $flag2) return true;

			$iter1Current = $iter1->getCurrent();
			$iter2Current = $iter2->getCurrent();

			// If one of the iterators is a ForIterator and it returns an ExprIterator handle it
			if ( $iter1Current instanceof ExprIterator || $iter2Current instanceof ExprIterator )
			{
				if ( ! $iter1Current instanceof ExprIterator ) $iter1Current = $iter1;
				if ( ! $iter2Current instanceof ExprIterator ) $iter2Current = $iter2;
				return $this->DeepEqualByIterator( $iter1Current->CloneInstance(), $iter2Current->CloneInstance() );
			}

			if ( $iter1Current->getIsNode() != $iter2Current->getIsNode() )
			{
				return false;
			}
			else
			{
				if ( $iter1Current->getIsNode() && $iter2Current->getIsNode() )
				{
					if ( ! $this->NodeEqual( $iter1Current, $iter2Current ) )
					{
						return false;
					}
				}
				else
				{
					if ( ! $this->ItemEqual( $iter1Current, $iter2Current ) )
					{
						return false;
					}
				}
			}
		}
		while ( true );
		return true;
	}
114816
private function valuesAreEqual( $firstValue, $secondValue ): bool {
		if ( $this->comparer === null ) {
			$this->comparer = new StrictComparer();
		}

		return $this->comparer->valuesAreEqual( $firstValue, $secondValue );
	}
938953
public static boolean equalsSqref(final List<String> sqref1, final List<String> sqref2) {

        if(sqref1.size() != sqref2.size()) {
            return false;
        }

        Collections.sort(sqref1);
        Collections.sort(sqref2);

        final int size = sqref1.size();
        for(int i=0; i < size; i++) {
            if(!sqref1.get(i).equals(sqref2.get(i))) {
                return false;
            }
        }

        return true;

    }
251055
public static boolean equal(String str1, String str2) {
		return str1 != null && str2 != null && str1.equals(str2);
	}
1275178
public static function areEqual($value1, $value2) : bool
    {
        return $value1 === $value2 || self::hash($value1) === self::hash($value2);
    }
684592
public int compareByInput(ProcInputRow r1, ProcInputRow r2)
    {
        if (r1.avgIN * r1.invocations > r2.avgIN * r2.invocations) {
            return 1;
        } else if (r1.avgIN * r1.invocations < r2.avgIN * r2.invocations) {
            return -1;
        } else {
            return 0;
        }
    }
268196
private boolean isEqual(String str1, String str2) {
		if (StringUtils.isEmpty(str1) && StringUtils.isEmpty(str2)) {
			return true;
		} else if (!StringUtils.isEmpty(str1)) {
			return str1.equals(str2);
		} else {
			return false;
		}
	}
476499
public function isEqual(MoneyInterface $first, MoneyInterface $second)
    {
        $this->resolveCurrency($first, $second);
        return $this->math->isEqual($first->getAmount(), $second->getAmount());
    }
405233
public function compareTo($str2, $caseSensitive = true)
    {
        $str2   = $caseSensitive ? $str2 : strtolower($str2);
        $string = $caseSensitive ? $this->returnValue : strtolower($this->returnValue);
        return ($string == $str2);
    }
536120
private boolean isEqual(Object o1, Object o2) {
		return o1 == null ? o2 == null : o1.equals(o2);
	}
181070
public function compare($object1, $object2)
    {
        if (! is_object($object1)) {
            throw new ComparatorException('$object1 ("' . $object1 . '") is not an object.');
        }
        if (! is_object($object2)) {
            throw new ComparatorException('$object2 ("' . $object2 . '") is not an object.');
        }
        return strcmp(spl_object_hash($object1), spl_object_hash($object2));
    }
666471
protected function childIsEqual($model1, $model2, $keys)
    {
        if (method_exists($this, 'isEqual')) {
            return $this->isEqual($model1, $model2, $keys);
        }
        if (empty($keys)) {
            return false;
        }
        foreach ($keys as $key) {
            if (ArrayHelper::getValue($model1, $key) != ArrayHelper::getValue($model2, $key)) {
                return false;
            }
        }
        return true;
    }
1161000
public static boolean areEqual(String s1, String s2) {
        return (s1 == null) ? s2 == null : s1.equals(s2);
    }
144004
public static function compare($value1, $value2)
    {
        if (self::isIntlLoaded()) {
            return self::getCollator()->compare($value1, $value2);
        }
        
        return strnatcmp($value1, $value2);
    }