/** * Create a new attribute pair. * @param name The attribute name. * @param val The value. * @param <T> The attribute type. * @return The attribute-value object. */ public static <T> Attribute<T> create(@Nonnull TypedName<T> name, @Nonnull T val) { return new Attribute<>(name, val); }
/** * Create a new attribute pair. * @param name The attribute name. * @param val The value. * @param <T> The attribute type. * @return The attribute-value object. */ public static <T> Attribute<T> create(@Nonnull TypedName<T> name, @Nonnull T val) { return new Attribute<>(name, val); }