@Override public int size() { return getTypedAttributeNames().size(); } }
@Override public Iterator<Attribute<?>> iterator() { return Iterators.transform(getTypedAttributeNames().iterator(), new Function<TypedName<?>, Attribute<?>>() { @Nullable @Override public Attribute<?> apply(@Nullable TypedName<?> input) { assert input != null; return Attribute.create((TypedName) input, get(input)); } }); }
@Override public Iterator<Map.Entry<String, Object>> iterator() { return new EntryIter(getTypedAttributeNames().iterator()); }
/** * {@inheritDoc} * * Delegates to {@link #getTypedAttributeNames()} and extracts the names. */ @Override public Set<String> getAttributeNames() { // TODO Make this more efficient ImmutableSet.Builder<String> bld = ImmutableSet.builder(); for (TypedName<?> name: getTypedAttributeNames()) { bld.add(name.getName()); } return bld.build(); }
@Override public int size() { return getTypedAttributeNames().size(); } }
@Override public Iterator<Attribute<?>> iterator() { return Iterators.transform(getTypedAttributeNames().iterator(), new Function<TypedName<?>, Attribute<?>>() { @Nullable @Override public Attribute<?> apply(@Nullable TypedName<?> input) { assert input != null; return Attribute.create((TypedName) input, get(input)); } }); }
@Override public Iterator<Map.Entry<String, Object>> iterator() { return new EntryIter(getTypedAttributeNames().iterator()); }
/** * {@inheritDoc} * * Delegates to {@link #getTypedAttributeNames()} and extracts the names. */ @Override public Set<String> getAttributeNames() { // TODO Make this more efficient ImmutableSet.Builder<String> bld = ImmutableSet.builder(); for (TypedName<?> name: getTypedAttributeNames()) { bld.add(name.getName()); } return bld.build(); }