Interface StatementSupport.StatementEquality<A,D extends org.opendaylight.yangtools.yang.model.api.meta.DeclaredStatement<A>>

Type Parameters:
A - Argument type
D - Declared Statement representation
Enclosing class:
StatementSupport<A,D extends org.opendaylight.yangtools.yang.model.api.meta.DeclaredStatement<A>,E extends org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement<A,D>>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface StatementSupport.StatementEquality<A,D extends org.opendaylight.yangtools.yang.model.api.meta.DeclaredStatement<A>>
Abstract base class for comparators associated with statements with a StatementSupport.CopyPolicy.DECLARED_COPY copy policy.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canReuseCurrent(@NonNull EffectiveStmtCtx.Current<A,D> copy, @NonNull EffectiveStmtCtx.Current<A,D> current, @NonNull Collection<? extends org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement<?,?>> substatements)
    Determine whether current statement has the same semantics as the provided copy.
  • Method Details

    • canReuseCurrent

      boolean canReuseCurrent(@NonNull EffectiveStmtCtx.Current<A,D> copy, @NonNull EffectiveStmtCtx.Current<A,D> current, @NonNull Collection<? extends org.opendaylight.yangtools.yang.model.api.meta.EffectiveStatement<?,?>> substatements)
      Determine whether current statement has the same semantics as the provided copy. See the contract specification of StatementFactory.canReuseCurrent(Current, Current, Collection).
      Parameters:
      copy - Copy of current effective context
      current - Current effective context
      substatements - Current effective substatements
      Returns:
      True if current can be reused in place of copy, false if the copy needs to be used.