Ejemplo n.º 1
0
  /**
   * TODO
   *
   * @param attributeMatchPatterns TODO
   * @param attributeMatchPattern TODO
   * @return TODO
   */
  private boolean checkAttributeMatchPatternSpecified(
      List<AttributeMatchPatterns.AttributeMatchPattern> attributeMatchPatterns,
      PhysicalResourceRequirement.AttributeMatchPattern attributeMatchPattern) {
    for (AttributeMatchPatterns.AttributeMatchPattern attributeMatchPattern1 :
        attributeMatchPatterns) {
      if (attributeMatchPattern1.name().equals(attributeMatchPattern.name())) {
        return true;
      }
    }

    return false;
  }
Ejemplo n.º 2
0
  /**
   * TODO
   *
   * @param attributeMatchPatterns TODO
   * @param attributeMatchPattern TODO
   * @return TODO
   */
  private boolean checkAttributeMatchPatternSpecified(
      List<AttributeMatchPatterns.AttributeMatchPattern> attributeMatchPatterns,
      org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.generic.virtual.network
              .rev151010.virtual.node.instance.PhysicalResourceRequirement.AttributeMatchPattern
          attributeMatchPattern) {
    for (AttributeMatchPatterns.AttributeMatchPattern attributeMatchPattern1 :
        attributeMatchPatterns) {
      if (attributeMatchPattern1.name().equals(attributeMatchPattern.name())) {
        return true;
      }
    }

    return false;
  }