/** * Method for constructing an instance that has only specified * attributes, removing any attributes that exist before the call. * * @since 2.3 */ public T withAttributes(Map<?,?> attributes) { return with(getAttributes().withSharedAttributes(attributes)); }
public static ContextAttributes from(Map<?, ?> options) { return ContextAttributes .getEmpty() .withSharedAttributes(options == null ? new HashMap<>(): new HashMap<>(options)); }
public static ContextAttributes from(Map<?, ?> options) { return ContextAttributes .getEmpty() .withSharedAttributes(options == null ? new HashMap<>(): new HashMap<>(options)); }
/** * Method for constructing an instance that has only specified * attributes, removing any attributes that exist before the call. * * @since 2.3 */ public T withAttributes(Map<Object,Object> attributes) { return with(getAttributes().withSharedAttributes(attributes)); }
/** * Method for constructing an instance that has only specified * attributes, removing any attributes that exist before the call. * * @since 2.3 */ public T withAttributes(Map<?,?> attributes) { return with(getAttributes().withSharedAttributes(attributes)); }
/** * Method for constructing an instance that has only specified * attributes, removing any attributes that exist before the call. * * @since 2.3 */ public T withAttributes(Map<?,?> attributes) { return with(getAttributes().withSharedAttributes(attributes)); }
/** * Method for constructing an instance that has only specified * attributes, removing any attributes that exist before the call. * * @since 2.3 */ public T withAttributes(Map<Object,Object> attributes) { return with(getAttributes().withSharedAttributes(attributes)); }