@Test public void testStripDelimiters() { assertEquals("no'delimiters", ValueUtil.stripDelimiters("no'delimiters")); assertEquals(" quote\"\"delimiter ", ValueUtil.stripDelimiters("\" quote\"\"delimiter \"")); assertEquals(" quote''delimiter ", ValueUtil.stripDelimiters("' quote''delimiter '")); }
public static String stripDelimiters(final String value) { if (value != null && value.length() > 1) { if (value.charAt(0) == value.charAt(value.length() - 1) && (value.charAt(0) == '\'')) { return value.substring(1, value.length() - 1); } if (value.charAt(0) == value.charAt(value.length() - 1) && (value.charAt(0) == '\"')) { return value.substring(1, value.length() - 1); } } return value; }
ValueUtil { public static String stripDelimiters(final String value) { if (value != null && value.length() > 1) { if (value.charAt(0) == value.charAt(value.length() - 1) && (value.charAt(0) == '\'')) { return value.substring(1, value.length() - 1); } if (value.charAt(0) == value.charAt(value.length() - 1) && (value.charAt(0) == '\"')) { return value.substring(1, value.length() - 1); } } return value; } }
ValueUtil { public static String stripDelimiters(final String value) { if (value != null && value.length() > 1) { if (value.charAt(0) == value.charAt(value.length() - 1) && (value.charAt(0) == '\'')) { return value.substring(1, value.length() - 1); } if (value.charAt(0) == value.charAt(value.length() - 1) && (value.charAt(0) == '\"')) { return value.substring(1, value.length() - 1); } } return value; } private  ValueUtil(); }
ValueUtil { public static String stripDelimiters(final String value) { if (value != null && value.length() > 1) { if (value.charAt(0) == value.charAt(value.length() - 1) && (value.charAt(0) == '\'')) { return value.substring(1, value.length() - 1); } if (value.charAt(0) == value.charAt(value.length() - 1) && (value.charAt(0) == '\"')) { return value.substring(1, value.length() - 1); } } return value; } private  ValueUtil(); static String resolveFigurative(
            final String value,
            final int length,
            final boolean quoteIsQuote); static String fill(
            final String prefix,
            final String charSequence,
            final int times); static String stripDelimiters(final String value); }
ValueUtil { public static String stripDelimiters(final String value) { if (value != null && value.length() > 1) { if (value.charAt(0) == value.charAt(value.length() - 1) && (value.charAt(0) == '\'')) { return value.substring(1, value.length() - 1); } if (value.charAt(0) == value.charAt(value.length() - 1) && (value.charAt(0) == '\"')) { return value.substring(1, value.length() - 1); } } return value; } private  ValueUtil(); static String resolveFigurative(
            final String value,
            final int length,
            final boolean quoteIsQuote); static String fill(
            final String prefix,
            final String charSequence,
            final int times); static String stripDelimiters(final String value);  }