import com.google.common.annotations.Beta;
import com.google.common.collect.Collections2;
import java.util.Collection;
+import java.util.List;
import java.util.Optional;
import java.util.stream.Stream;
import org.eclipse.jdt.annotation.NonNull;
*
* @return Collection of statements, which were explicitly declared in source of model.
*/
- @NonNull Collection<? extends DeclaredStatement<?>> declaredSubstatements();
+ @NonNull List<? extends DeclaredStatement<?>> declaredSubstatements();
/**
* Returns collection of explicitly declared child statements, while preserving its original ordering from original
package org.opendaylight.yangtools.yang.model.api.meta;
import com.google.common.annotations.Beta;
-import java.util.Collection;
+import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.stream.Stream;
*
* @return collection of all effective substatements.
*/
- @NonNull Collection<? extends @NonNull EffectiveStatement<?, ?>> effectiveSubstatements();
+ @NonNull List<? extends @NonNull EffectiveStatement<?, ?>> effectiveSubstatements();
/**
* Find the first effective substatement of specified type.
package org.opendaylight.yangtools.yang.model.ri.stmt.impl.decl;
import com.google.common.collect.ImmutableList;
-import java.util.Collection;
import java.util.Set;
import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.yangtools.yang.common.QName;
}
@Override
- public Collection<? extends DeclaredStatement<?>> declaredSubstatements() {
+ public ImmutableList<? extends DeclaredStatement<?>> declaredSubstatements() {
return unmaskList(substatements);
}
}
package org.opendaylight.yangtools.yang.model.ri.stmt.impl.decl;
import com.google.common.collect.ImmutableList;
-import java.util.Collection;
import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.yangtools.yang.common.Ordering;
import org.opendaylight.yangtools.yang.model.api.meta.DeclaredStatement;
}
@Override
- public Collection<? extends DeclaredStatement<?>> declaredSubstatements() {
+ public ImmutableList<? extends DeclaredStatement<?>> declaredSubstatements() {
return unmaskList(substatements);
}
}
package org.opendaylight.yangtools.yang.model.ri.stmt.impl.decl;
import com.google.common.collect.ImmutableList;
-import java.util.Collection;
import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.yangtools.yang.model.api.PathExpression;
import org.opendaylight.yangtools.yang.model.api.meta.DeclaredStatement;
}
@Override
- public Collection<? extends DeclaredStatement<?>> declaredSubstatements() {
+ public ImmutableList<? extends DeclaredStatement<?>> declaredSubstatements() {
return unmaskList(substatements);
}
}
package org.opendaylight.yangtools.yang.model.ri.stmt.impl.decl;
import com.google.common.collect.ImmutableList;
-import java.util.Collection;
import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.yangtools.yang.model.api.Status;
import org.opendaylight.yangtools.yang.model.api.meta.DeclaredStatement;
}
@Override
- public Collection<? extends DeclaredStatement<?>> declaredSubstatements() {
+ public ImmutableList<? extends DeclaredStatement<?>> declaredSubstatements() {
return unmaskList(substatements);
}
}
import java.lang.invoke.MethodHandles;
import java.lang.invoke.MethodHandles.Lookup;
import java.lang.invoke.VarHandle;
-import java.util.Collection;
import java.util.Map;
import java.util.Optional;
import org.eclipse.jdt.annotation.NonNull;
}
@Override
- public Collection<? extends EffectiveStatement<?, ?>> effectiveSubstatements() {
+ public ImmutableList<? extends EffectiveStatement<?, ?>> effectiveSubstatements() {
return TypedefEffectiveStatementImpl.this.effectiveSubstatements();
}
import com.google.common.annotations.Beta;
import com.google.common.collect.ImmutableList;
-import java.util.Collection;
import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.yangtools.yang.common.Empty;
import org.opendaylight.yangtools.yang.common.QName;
}
@Override
- public Collection<? extends DeclaredStatement<?>> declaredSubstatements() {
+ public ImmutableList<? extends DeclaredStatement<?>> declaredSubstatements() {
// Default to reduce load on subclasses and keep the number of implementations down
return ImmutableList.of();
}
}
@Override
- public final Collection<? extends DeclaredStatement<?>> declaredSubstatements() {
+ public final ImmutableList<? extends DeclaredStatement<?>> declaredSubstatements() {
return unmaskList(substatements);
}
}
}
@Override
- public final Collection<? extends DeclaredStatement<?>> declaredSubstatements() {
+ public final ImmutableList<? extends DeclaredStatement<?>> declaredSubstatements() {
return unmaskList(substatements);
}
}
}
@Override
- public final Collection<? extends DeclaredStatement<?>> declaredSubstatements() {
+ public final ImmutableList<? extends DeclaredStatement<?>> declaredSubstatements() {
return unmaskList(substatements);
}
}
}
@Override
- public final Collection<? extends DeclaredStatement<?>> declaredSubstatements() {
+ public final ImmutableList<? extends DeclaredStatement<?>> declaredSubstatements() {
return unmaskList(substatements);
}
}
}
@Override
- public final Collection<? extends DeclaredStatement<?>> declaredSubstatements() {
+ public final ImmutableList<? extends DeclaredStatement<?>> declaredSubstatements() {
return unmaskList(substatements);
}
}
}
@Override
- public final Collection<? extends DeclaredStatement<?>> declaredSubstatements() {
+ public final ImmutableList<? extends DeclaredStatement<?>> declaredSubstatements() {
return unmaskList(substatements);
}
}
}
@Override
- public Collection<? extends EffectiveStatement<?, ?>> effectiveSubstatements() {
+ public ImmutableList<? extends EffectiveStatement<?, ?>> effectiveSubstatements() {
return ImmutableList.of();
}
}
@Override
- public final Collection<? extends EffectiveStatement<?, ?>> effectiveSubstatements() {
+ public final ImmutableList<? extends EffectiveStatement<?, ?>> effectiveSubstatements() {
return substatements;
}
package org.opendaylight.yangtools.yang.model.spi.meta;
import com.google.common.annotations.Beta;
-import java.util.Collection;
+import java.util.List;
import java.util.Optional;
import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.yangtools.yang.model.api.meta.DeclarationReference;
}
@Override
- public Collection<? extends DeclaredStatement<?>> declaredSubstatements() {
+ public List<? extends DeclaredStatement<?>> declaredSubstatements() {
return delegate().declaredSubstatements();
}
import static java.util.Objects.requireNonNull;
import com.google.common.collect.ImmutableList;
-import java.util.Collection;
import org.eclipse.jdt.annotation.NonNull;
import org.opendaylight.yangtools.rfc6643.model.api.MaxAccess;
import org.opendaylight.yangtools.rfc6643.model.api.MaxAccessStatement;
}
@Override
- public Collection<? extends DeclaredStatement<?>> declaredSubstatements() {
+ public ImmutableList<? extends DeclaredStatement<?>> declaredSubstatements() {
return unmaskList(substatements);
}
}
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
-import java.util.Collection;
import java.util.Map;
import java.util.Optional;
import org.eclipse.jdt.annotation.NonNull;
}
@Override
- public final Collection<? extends EffectiveStatement<?, ?>> effectiveSubstatements() {
+ public final ImmutableList<? extends EffectiveStatement<?, ?>> effectiveSubstatements() {
return ImmutableList.of();
}