Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 3A53C200B67 for ; Tue, 16 Aug 2016 17:07:25 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 39035160ABA; Tue, 16 Aug 2016 15:07:25 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 7B8E1160A74 for ; Tue, 16 Aug 2016 17:07:24 +0200 (CEST) Received: (qmail 10422 invoked by uid 500); 16 Aug 2016 15:07:23 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 10404 invoked by uid 99); 16 Aug 2016 15:07:23 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Aug 2016 15:07:23 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 6EB632C02A4 for ; Tue, 16 Aug 2016 15:07:22 +0000 (UTC) Date: Tue, 16 Aug 2016 15:07:22 +0000 (UTC) From: "Gary Gregory (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (LANG-1257) Add APIs StringUtils.wrapIfMissingt(String, char|String) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 16 Aug 2016 15:07:25 -0000 Gary Gregory created LANG-1257: ---------------------------------- Summary: Add APIs StringUtils.wrapIfMissingt(String, char|String) Key: LANG-1257 URL: https://issues.apache.org/jira/browse/LANG-1257 Project: Commons Lang Issue Type: New Feature Components: lang.* Reporter: Gary Gregory Assignee: Gary Gregory Fix For: 3.5 Add APIs: - Add APIs StringUtils.wrapIfMissing(String, char) - Add APIs StringUtils.wrapIfMissing(String, String) Note: We already have: - StringUtils.wrap(String, char) - StringUtils.wrap(String, String) And we already use the "IfMissing" name segment in "appendIfMissing()" and "prependIfMissing". Using "IfAbsent" would have been a better choice IMO since the JRE already uses "IfAbsent" in ConcurrentHashMap for example; but consistency is better here I think. -- This message was sent by Atlassian JIRA (v6.3.4#6332)