Specify an equality match for the current field.

@see Builder::equals()

@param mixed $value
182590
public function equals($value) : self
    {
        if ($this->currentField) {
            $this->query[$this->currentField] = $value;
        } else {
            $this->query = $value;
        }
        return $this;
    }
922801
private function buildDoesNotEqual($field, $value)
    {
        return $this::$open.Operator::$doesNotEqual.$this->buildEquals($field, $value).$this::$close;
    }
1343802
private function buildGreaterThanOrEquals($field, $value)
    {
        return $this::$open.$field.Operator::$greaterThanOrEqual.$value.$this::$close;
    }
408259
public static function notequal($object, $value = null): bool
    {
        if (!Any::isLine($object)) {
            return false;
        }

        return $object !== $value;
    }
197961
public static function gt($field, $value, $dqlAlias = null)
    {
        return new Comparison(Comparison::GT, $field, $value, $dqlAlias);
    }
1191902
public function eq($field, $value)
    {
        if(!$value instanceof Part) {
            $value = $this->buildPart($value);
        }
        return new Expr\ComparisonExpression($field, $value, Expr\ComparisonExpression::EQ);
    }
52306
private function equalsExpression($field, array $values)
    {
        return $this->queryBuilder->expression()->eq($field, $this->parameter($values));
    }
128133
public static function areNotEqual($value1, $value2): bool
    {
        if (static::isEquatable($value1) && static::areSameType($value1, $value2)) {
            return !$value1->equals($value2);
        }

        return $value1 != $value2;
    }
312228
public function containsValue($value): bool {
        $node = $this->getHead();
        while ($node !== null) {
            if (Comparator::equals($node->getValue(), $value)) {
                return true;
            }
            $node = $node->getNext();
        }
        return false;
    }
761024
protected function compare($value)
    {
        if (!method_exists($this, self::$methodList[$this->operator])) {
            throw new FilterException("Method for {$this->operator} does not exist!");
        }

        return $this->{self::$methodList[$this->operator]}($value, $this->value);
    }
689615
protected static function moreOrEquals($value, RuleInterface $next = null): RuleInterface
    {
        return $next === null ?
            ($value instanceof DateTimeInterface ?
                new DateTimeMoreOrEquals($value) : new NumericMoreOrEqualsThan($value)) :
            new AndOperator(static::moreOrEquals($value), $next);
    }
1311706
protected function isEquals($value, $compareField, $field)
    {
        is_array($compareField) && $compareField = $compareField[0];
        return isset($this->data[$field]) && isset($this->data[$compareField]) && $this->data[$field] == $this->data[$compareField];
    }
847940
public function gt($field, $value)
    {
        if(!$value instanceof Expr\ConditionalExpression) {
            $value = $this->buildPart($value);
        }
        return new Expr\ComparisonExpression($field, $value, Expr\ComparisonExpression::GT);
    }
1138835
public function filter($value)
    {
        if (null === $value) {
            return null;
        }
        $this->checkValueIsValidOrThrowException($value);
        $matcher = key($value);
        $this->validateMatcherOrThrowException($matcher);
        $this->validateValueOrThrowException($value[$matcher]);

        return new Condition($matcher, $value[$matcher]);
    }
1167954
public function whereEquals($attribute, $value)
    {
        return $this->addFilter(function (Store $store) use ($attribute, $value) {
            return $store->get($attribute) == $value;
        });
    }
482893
private function buildLessThanOrEquals($field, $value)
    {
        return $this::$open.$field.Operator::$lessThanOrEqual.$value.$this::$close;
    }
345178
public function matches($value): bool
    {
        if (!interface_exists($this->type) && !class_exists($this->type)) {
            throw new UndefinedTypeException($this->type);
        }

        return $value instanceof $this->type;
    }