java.lang.Object
is.codion.framework.domain.entity.condition.AbstractCondition
All Implemented Interfaces:
Condition, Serializable

public abstract class AbstractCondition extends Object implements Condition, Serializable
A base class for Condition implementations.
See Also:
  • Constructor Details

    • AbstractCondition

      protected AbstractCondition(EntityType entityType, List<Column<?>> columns, Collection<?> values)
      Parameters:
      entityType - the entity type
      columns - the columns used by this condition
      values - the values matching their columns in the columns list
  • Method Details

    • entityType

      public final EntityType entityType()
      Specified by:
      entityType in interface Condition
      Returns:
      the entity type
    • columns

      public final List<Column<?>> columns()
      Specified by:
      columns in interface Condition
      Returns:
      a list of the columns this condition is based on, in the same order as their respective values appear in the condition clause. An empty list is returned in case no values are specified.
    • values

      public final List<?> values()
      Specified by:
      values in interface Condition
      Returns:
      a list of the values this condition is based on, in the order they appear in the condition clause. An empty list is returned in case no values are specified.
    • equals

      public boolean equals(Object object)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object