src/main/java/de/jformchecker/elements/RadioInput.java
public static RadioInput build(String name, String keys[], String values[]) {
		RadioInput si = RadioInput.build(name);
		if (keys.length != values.length) {
			throw new IllegalArgumentException("Key / Values with unequal lenght");
		}
		LinkedHashMap<String, String> possibleNames = new LinkedHashMap<>();
		for (int i = 0; i < keys.length; i++) {
			possibleNames.put(keys[i], values[i]);
		}
		si.setPossibleValues(possibleNames);
		return si;
	}
public static RadioInput build(String name, String keys[], String values[]) {
		RadioInput si = RadioInput.build(name);
		if (keys.length != values.length) {
			throw new IllegalArgumentException("Key / Values with unequal lenght");
		}
		LinkedHashMap<String, String> possibleNames = new LinkedHashMap<>();
		for (int i = 0; i < keys.length; i++) {
			possibleNames.put(keys[i], values[i]);
		}
		si.setPossibleValues(possibleNames);
		return si;
	}
public static RadioInput build ( String name , String keys [ ] , String values [ ] ) { RadioInput si = RadioInput . build ( name ) ; if ( keys . length != values . length ) { throw new IllegalArgumentException ( "Key / Values with unequal lenght" ) ; } LinkedHashMap < String , String > possibleNames = new LinkedHashMap <> ( ) ; for ( int i = 0 ; i < keys . length ; i ++ ) { possibleNames . put ( keys [ i ] , values [ i ] ) ; } si . setPossibleValues ( possibleNames ) ; return si ; }
convenience method
convenience method