/** * 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.")); }
/** * Construct a new attribute modifier builder. * <p> * It will automatically be supplied with a random UUID. * @return The new builder. */ public static Builder newBuilder() { return new Builder(null).uuid(UUID.randomUUID()); }
/** * Construct a new attribute modifier builder with the given UUID. * @param id - the new UUID. * @return Thew new builder. */ public static Builder newBuilder(UUID id) { return new Builder(null).uuid(id); }