1 /* 2 * CSVeed (https://github.com/42BV/CSVeed) 3 * 4 * Copyright 2013-2023 CSVeed. 5 * 6 * All rights reserved. This program and the accompanying materials 7 * are made available under the terms of The Apache Software License, 8 * Version 2.0 which accompanies this distribution, and is available at 9 * https://www.apache.org/licenses/LICENSE-2.0.txt 10 */ 11 package org.csveed.bean.conversion; 12 13 /** 14 * The Class StringConverter. 15 */ 16 public class StringConverter extends AbstractConverter<String> { 17 18 /** 19 * Instantiates a new string converter. 20 */ 21 public StringConverter() { 22 super(String.class); 23 } 24 25 @Override 26 public String fromString(String text) { 27 return text; 28 } 29 30 @Override 31 public String toString(String value) { 32 return value; 33 } 34 35 }