Java String Quote quote(final String sValue)

Here you can find the source of quote(final String sValue)

Description

quote

License

Open Source License

Parameter

Parameter Description
sValue String

Return

String

Declaration

static public final String quote(final String sValue) 

Method Source Code

//package com.java2s;
/*/*from   w w w.j av  a  2 s.c o  m*/
 * Copyright 2005-2020 GreenTube Team All rights reserved.
 * Support: Huxg
 * License: CND team license
 */

public class Main {
    /**
     * 
     * 
     * @param sValue
     *            String
     * 
     * @return String
     */
    static public final String quote(final String sValue) {
        if (sValue == null)
            return sValue;
        else
            return "'" + sValue + "'";
    }
}

Related

  1. quote(final CharSequence phrase)
  2. quote(final String s)
  3. quote(final String str)
  4. quote(final String str)
  5. quote(final String str)
  6. quote(final String value)
  7. quote(final String value)
  8. quote(final String value)
  9. quote(Object aObject)