Example usage for com.liferay.portal.kernel.util StringPool TILDE

List of usage examples for com.liferay.portal.kernel.util StringPool TILDE

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.util StringPool TILDE.

Prototype

String TILDE

To view the source code for com.liferay.portal.kernel.util StringPool TILDE.

Click Source Link

Usage

From source file:com.liferay.document.library.repository.search.util.KeywordsUtil.java

License:Open Source License

public static String toFuzzy(String keywords) {
    if (keywords == null) {
        return null;
    }//from  w  w w. j  a va  2  s .  com

    if (!keywords.endsWith(StringPool.TILDE)) {
        keywords = keywords + StringPool.TILDE;
    }

    return keywords;
}