@Override public Short apply(Subjects input) { return input.getOrder(); } }).immutableSortedCopy(intent.getSubjects());
return false; if (!Objects.equals(_order, other.getOrder())) { return false;
public SubjectsBuilder(Subjects base) { if (base.getKey() == null) { this._key = new SubjectsKey( base.getOrder() ); this._order = base.getOrder(); } else { this._key = base.getKey(); this._order = _key.getOrder(); } this._subject = base.getSubject(); if (base instanceof SubjectsImpl) { SubjectsImpl impl = (SubjectsImpl) base; if (!impl.augmentation.isEmpty()) { this.augmentation = new HashMap<>(impl.augmentation); } } else if (base instanceof AugmentationHolder) { @SuppressWarnings("unchecked") AugmentationHolder<org.opendaylight.yang.gen.v1.urn.opendaylight.intent.rev150122.intent.Subjects> casted =(AugmentationHolder<org.opendaylight.yang.gen.v1.urn.opendaylight.intent.rev150122.intent.Subjects>) base; if (!casted.augmentations().isEmpty()) { this.augmentation = new HashMap<>(casted.augmentations()); } } }
public SubjectsBuilder(Subjects base) { if (base.getKey() == null) { this._key = new SubjectsKey( base.getOrder() ); this._order = base.getOrder(); } else { this._key = base.getKey(); this._order = _key.getOrder(); } this._subject = base.getSubject(); if (base instanceof SubjectsImpl) { SubjectsImpl impl = (SubjectsImpl) base; if (!impl.augmentation.isEmpty()) { this.augmentation = new HashMap<>(impl.augmentation); } } else if (base instanceof AugmentationHolder) { @SuppressWarnings("unchecked") AugmentationHolder<org.opendaylight.yang.gen.v1.urn.opendaylight.intent.rev150122.intent.Subjects> casted =(AugmentationHolder<org.opendaylight.yang.gen.v1.urn.opendaylight.intent.rev150122.intent.Subjects>) base; if (!casted.augmentations().isEmpty()) { this.augmentation = new HashMap<>(casted.augmentations()); } } }
for (Subjects subjects : intent.getSubjects()) { EndPointGroup endPointGroup = (EndPointGroup) subjects.getSubject(); sb.append(String.format(" Order: %d\n", subjects.getOrder())); sb.append(String.format(" " + value + ": %s\n", endPointGroup.getEndPointGroup().getName())); sb.append("\n");