gpt4 book ai didi

org.opendaylight.yangtools.yang.xpath.api.YangFilterExpr类的使用及代码示例

转载 作者:知者 更新时间:2024-03-19 07:45:31 27 4
gpt4 key购买 nike

本文整理了Java中org.opendaylight.yangtools.yang.xpath.api.YangFilterExpr类的一些代码示例,展示了YangFilterExpr类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YangFilterExpr类的具体详情如下:
包路径:org.opendaylight.yangtools.yang.xpath.api.YangFilterExpr
类名称:YangFilterExpr

YangFilterExpr介绍

暂无

代码示例

代码示例来源:origin: opendaylight/yangtools

public static YangFilterExpr of(final YangExpr expr, final YangExpr... predicates) {
  return of(expr, Arrays.asList(predicates));
}

代码示例来源:origin: org.opendaylight.yangtools/yang-xpath-api

public static YangFilterExpr of(final YangExpr expr) {
  return new YangFilterExpr(expr);
}

代码示例来源:origin: opendaylight/yangtools

@Override
public final int hashCode() {
  return Objects.hash(expr, getPredicates());
}

代码示例来源:origin: org.opendaylight.yangtools/yang-xpath-api

public static YangFilterExpr of(final YangExpr expr, final YangExpr... predicates) {
  return of(expr, Arrays.asList(predicates));
}

代码示例来源:origin: org.opendaylight.yangtools/yang-xpath-api

@Override
public final int hashCode() {
  return Objects.hash(expr, getPredicates());
}

代码示例来源:origin: opendaylight/yangtools

public static YangFilterExpr of(final YangExpr expr) {
  return new YangFilterExpr(expr);
}

代码示例来源:origin: opendaylight/yangtools

private YangExpr parseFilter(final FilterExprContext expr) {
  final Iterator<ParseTree> it = expr.children.iterator();
  final YangExpr first = parsePrimary(nextContext(it, PrimaryExprContext.class));
  return it.hasNext() ? YangFilterExpr.of(first, ImmutableList.copyOf(Iterators.transform(it,
    tree ->  parsePredicate(verifyTree(PredicateContext.class, tree)))))
      : first;
}

代码示例来源:origin: org.opendaylight.yangtools/yang-xpath-api

@Override
public final boolean equals(final @Nullable Object obj) {
  if (this == obj) {
    return true;
  }
  if (!(obj instanceof YangFilterExpr)) {
    return false;
  }
  final YangFilterExpr other = (YangFilterExpr) obj;
  return expr.equals(((YangFilterExpr) obj).expr) && getPredicates().equals(other.getPredicates());
}

代码示例来源:origin: org.opendaylight.yangtools/yang-xpath-api

public static YangFilterExpr of(final YangExpr expr, final Collection<YangExpr> predicates) {
  return predicates.isEmpty() ? new YangFilterExpr(expr)
      : new WithPredicates(expr, ImmutableSet.copyOf(predicates));
}

代码示例来源:origin: org.opendaylight.yangtools/yang-xpath-impl

private YangExpr parseFilter(final FilterExprContext expr) {
  final Iterator<ParseTree> it = expr.children.iterator();
  final YangExpr first = parsePrimary(nextContext(it, PrimaryExprContext.class));
  return it.hasNext() ? YangFilterExpr.of(first, ImmutableList.copyOf(Iterators.transform(it,
    tree ->  parsePredicate(verifyTree(PredicateContext.class, tree)))))
      : first;
}

代码示例来源:origin: opendaylight/yangtools

@Override
public final boolean equals(final @Nullable Object obj) {
  if (this == obj) {
    return true;
  }
  if (!(obj instanceof YangFilterExpr)) {
    return false;
  }
  final YangFilterExpr other = (YangFilterExpr) obj;
  return expr.equals(((YangFilterExpr) obj).expr) && getPredicates().equals(other.getPredicates());
}

代码示例来源:origin: opendaylight/yangtools

public static YangFilterExpr of(final YangExpr expr, final Collection<YangExpr> predicates) {
  return predicates.isEmpty() ? new YangFilterExpr(expr)
      : new WithPredicates(expr, ImmutableSet.copyOf(predicates));
}

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com