@SuppressWarnings("unchecked") public static CommandMessage createWithPartsFromRawMap(final Map parts) { return new CommandMessage(parts); }
/** * Creates a new CommandMessage with no parts and no provided parts. * * @return a new instance of CommandMessage. */ public static CommandMessage create() { return new CommandMessage(); }
/** * Creates a new CommandMessage with the given parts and provided parts. * <p> * Note that {@link MessageBuilder} is the preferred API for creating Message * instances. * * @param parts * The parts that this message should have initially. This map is * taken as-is. No copy is made. Changes to the provided map will be * reflected in this message, and additional parts given to this * message will appear in the provided map. * @param provided * The provided parts that this message should have initially. This * map is taken as-is. No copy is made. Changes to the provided map * will be reflected in this message, and additional parts given to * this message will appear in the provided map. */ public static CommandMessage createWithParts(final Map<String, Object> parts, final Map<String, ResourceProvider<?>> provided) { return new CommandMessage(parts, provided); }
/** * Creates a new CommandMessage with the given parts and no provided parts. * <p> * Note that {@link MessageBuilder} is the preferred API for creating Message * instances. * * @param parts * The parts that this message should have initially. This map is * taken as-is. No copy is made. Changes to the provided map will be * reflected in this message, and additional parts given to this * message will appear in the provided map. */ public static CommandMessage createWithParts(final Map<String, Object> parts) { return new CommandMessage(Assert.notNull(parts)); }
public static CommandMessage createWithParts(final Map<String, Object> parts, final int flags) { return new CommandMessage(Assert.notNull(parts), flags); }
/** * Creates a new CommandMessage with no parts and no provided parts. * * @return a new instance of CommandMessage. */ public static CommandMessage create() { return new CommandMessage(); }
@SuppressWarnings("unchecked") public static CommandMessage createWithPartsFromRawMap(final Map parts) { return new CommandMessage(parts); }
/** * Creates a new CommandMessage with the given parts and provided parts. * <p> * Note that {@link MessageBuilder} is the preferred API for creating Message * instances. * * @param parts * The parts that this message should have initially. This map is * taken as-is. No copy is made. Changes to the provided map will be * reflected in this message, and additional parts given to this * message will appear in the provided map. * @param provided * The provided parts that this message should have initially. This * map is taken as-is. No copy is made. Changes to the provided map * will be reflected in this message, and additional parts given to * this message will appear in the provided map. */ public static CommandMessage createWithParts(final Map<String, Object> parts, final Map<String, ResourceProvider<?>> provided) { return new CommandMessage(parts, provided); }
public static CommandMessage createWithParts(final Map<String, Object> parts, final int flags) { return new CommandMessage(Assert.notNull(parts), flags); }
/** * Creates a new CommandMessage with the given parts and no provided parts. * <p> * Note that {@link MessageBuilder} is the preferred API for creating Message * instances. * * @param parts * The parts that this message should have initially. This map is * taken as-is. No copy is made. Changes to the provided map will be * reflected in this message, and additional parts given to this * message will appear in the provided map. */ public static CommandMessage createWithParts(final Map<String, Object> parts) { return new CommandMessage(Assert.notNull(parts)); }