All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.chen0040.data.text.LowerCase Maven / Gradle / Ivy

There is a newer version: 1.0.3
Show newest version
package com.github.chen0040.data.text;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;


/**
 * Created by xschen on 9/10/15.
 */
public class LowerCase implements Serializable, TextFilter {

    private static final long serialVersionUID = 4206255149536921311L;


    @Override
    public List filter(List words) {
        List result = new ArrayList<>();
        for(int i=0; i < words.size(); ++i){
            result.add(words.get(i).toLowerCase());
        }
        return result;
    }

    public LowerCase makeCopy(){
        return new LowerCase();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy