public static void define(final CodedMessageDefinition definition) {
		String code = definition.getCode();
		Locale locale = definition.getLocale();

		Map<Locale, CodedMessageDefinition> definitions = DEFINITIONS.get(code);
		if (definitions == null) {
			definitions = new HashMap<>();
			DEFINITIONS.put(code, definitions);
		}
		definitions.put(locale, definition);
	}
public static void define(final CodedMessageDefinition definition) {
		String code = definition.getCode();
		Locale locale = definition.getLocale();

		Map<Locale, CodedMessageDefinition> definitions = DEFINITIONS.get(code);
		if (definitions == null) {
			definitions = new HashMap<>();
			DEFINITIONS.put(code, definitions);
		}
		definitions.put(locale, definition);
	}
public static void define ( final CodedMessageDefinition definition ) { String code = definition . getCode ( ) ; Locale locale = definition . getLocale ( ) ; Map < Locale , CodedMessageDefinition > definitions = DEFINITIONS . get ( code ) ; if ( definitions == null ) { definitions = new HashMap <> ( ) ; DEFINITIONS . put ( code , definitions ) ; } definitions . put ( locale , definition ) ; }
定义编码消息。

@param definition
编码消息定义
定义编码消息。