*
* @return A optimized equivalent instance.
*/
- @Beta
public abstract @NonNull YangInstanceIdentifier toOptimized();
/**
return FixedYangInstanceIdentifier.create(path, hash.build());
}
- @Beta
public static @NonNull YangInstanceIdentifier create(final PathArgument pathArgument) {
return new FixedYangInstanceIdentifier(ImmutableList.of(pathArgument),
HashCodeBuilder.nextHashCode(1, pathArgument));
*
* @return Predicate set.
*/
- @Beta
public abstract @NonNull Set<Entry<QName, Object>> entrySet();
/**
*
* @return Predicate values.
*/
- @Beta
public abstract @NonNull Set<QName> keySet();
/**
* @return True if the predicate is present, false otherwise
* @throws NullPointerException if {@code key} is null
*/
- @Beta
public abstract boolean containsKey(QName key);
/**
*
* @return Predicate values.
*/
- @Beta
public abstract @NonNull Collection<Object> values();
@Beta
*
* @return The number of predicates present.
*/
- @Beta
public abstract int size();
/**
* guidelines. Callers are strongly encouraged to explore {@link #entrySet()}, {@link #size()},
* {@link #values()} and {@link #keySet()} as an alternative.
*/
- @Beta
- @Deprecated
- // FIXME: 6.0.0: evaluate the real usefulness of this. The problem here is Map.hashCode() and Map.equals(),
- // which limits our options.
public abstract @NonNull Map<QName, Object> asMap();
@Override
* @return this builder
* @throws NullPointerException if any of the arguments is null
*/
- @Beta
@NonNull InstanceIdentifierBuilder append(Collection<? extends PathArgument> args);
/**
* @return this builder
* @throws NullPointerException if any of the arguments is null
*/
- @Beta
default @NonNull InstanceIdentifierBuilder append(final PathArgument... args) {
return append(Arrays.asList(args));
}