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

com.github.basking2.sdsai.itrex.functions.StringConcatFunction Maven / Gradle / Ivy

There is a newer version: 1.1.23
Show newest version
package com.github.basking2.sdsai.itrex.functions;

import com.github.basking2.sdsai.itrex.EvaluationContext;

import java.util.Iterator;

public class StringConcatFunction implements FunctionInterface {
    @Override
    public String apply(final Iterator iterator, final EvaluationContext evaluationContext) {
        final StringBuilder sb = new StringBuilder();

        while (iterator.hasNext()) {
            sb.append(iterator.next().toString());
        }

        return sb.toString();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy