com.github.datalking.common.convert.editor.CharArrayPropertyEditor Maven / Gradle / Ivy
package com.github.datalking.common.convert.editor;
import java.beans.PropertyEditorSupport;
/**
*/
public class CharArrayPropertyEditor extends PropertyEditorSupport {
@Override
public void setAsText(String text) {
setValue(text != null ? text.toCharArray() : null);
}
@Override
public String getAsText() {
char[] value = (char[]) getValue();
return (value != null ? new String(value) : "");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy