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

brooklyn.util.text.StringFunctions Maven / Gradle / Ivy

Go to download

Utility classes and methods developed for Brooklyn but not dependendent on Brooklyn or much else

There is a newer version: 0.7.0-M1
Show newest version
package brooklyn.util.text;

import javax.annotation.Nullable;

import com.google.common.base.Function;

public class StringFunctions {

    public static Function append(final String suffix) {
        return new Function() {
            @Override
            @Nullable
            public String apply(@Nullable String input) {
                if (input==null) return null;
                return input + suffix;
            }
        };
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy