/** * Construct a new wrapped attribute modifier builder initialized to the values from a template. * @param template - the attribute modifier template. * @return The new builder. */ public static Builder newBuilder(@Nonnull WrappedAttributeModifier template) { return new Builder(Preconditions.checkNotNull(template, "template cannot be NULL.")); }
/** * Determine if the attribute has a given attribute modifier, identified by UUID. * @param id - the id to check for. * @return TRUE if it does, FALSE otherwise. */ public boolean hasModifier(UUID id) { return getModifiers().contains(WrappedAttributeModifier.newBuilder(id).build()); }