[shrinkwrap-issues] [JBoss JIRA] (SHRINKDESC-157) Allow removal of single element in collection elements
George Gastaldi (JIRA)
issues at jboss.org
Mon May 18 14:10:19 EDT 2015
[ https://issues.jboss.org/browse/SHRINKDESC-157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13068955#comment-13068955 ]
George Gastaldi commented on SHRINKDESC-157:
--------------------------------------------
For String, Enum and Integer-valued elements, we could use equals. For composite elements, I think we could use by reference.
> Allow removal of single element in collection elements
> ------------------------------------------------------
>
> Key: SHRINKDESC-157
> URL: https://issues.jboss.org/browse/SHRINKDESC-157
> Project: ShrinkWrap Descriptors
> Issue Type: Enhancement
> Components: api-javaee
> Affects Versions: 2.0.0-alpha-6
> Reporter: George Gastaldi
>
> It should be possible to remove a single element when dealing with a collection element.
> For example:
> {code}
> public interface JavaeeInterceptorsCommType<PARENT, ORIGIN extends JavaeeInterceptorsCommType<PARENT, ORIGIN>>
> extends Child<PARENT> {
> /**
> * Creates for all String objects representing <code>Class</code> elements,
> * a new <code>Class</code> element
> * @param values list of <code>Class</code> objects
> * @return the current instance of <code>ORIGIN</code>
> */
> public ORIGIN clazz(String ... values);
> /**
> * Returns all <code>Class</code> elements
> * @return list of <code>Class</code>
> */
> public List<String> getAllClazz();
> /**
> * Removes the <code>Class</code> element
> * @return the current instance of <code>ORIGIN</code>
> */
> public ORIGIN removeAllClazz();
> }
> {code}
> It's not possible to remove a single <class> element, but all of them.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
More information about the shrinkwrap-issues
mailing list