Class RuleImpl.IsDistinctState

java.lang.Object
org.eclipse.m2m.atl.emftvm.impl.RuleImpl.DistinctState
org.eclipse.m2m.atl.emftvm.impl.RuleImpl.IsDistinctState
Enclosing class:
RuleImpl

protected class RuleImpl.IsDistinctState extends RuleImpl.DistinctState
RuleImpl.DistinctState class for rules for which Rule.isDistinctElements() is set to true.
  • Constructor Details

    • IsDistinctState

      protected IsDistinctState()
  • Method Details

    • checkDistinct

      public boolean checkDistinct(Object[] values, int index, Object value)
      Checks if
      values
      are distict, if so required by the rule.
      Specified by:
      checkDistinct in class RuleImpl.DistinctState
      Parameters:
      values - the currently collected values
      index - the index up to which to check the values
      value - the value to check against values
      Returns:
      true iff value is ok