Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-207

[lang] Add methods to ArrayUtils: add at end and insert-like ops

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 2.1
    • None
    • None
    • Operating System: other
      Platform: Other

    • 26056

    Description

      Hi,

      I would like to see some extra functionality added to ArrayUtils. More in
      specific, I need these extra methods:

      public Object[] add(Object[] array, Object object);
      public Object[] add(Object[] array, int index, Object object);

      and I need also some similar methods for primitive types. Is it possible to add
      these methods? I'll add an implementation, javadocs and tests in an attachment
      (only for the Object case, but for the primitive types, it will be similar I assume)

      many thanks,
      Maarten Coene

      Attachments

        Activity

          People

            Unassigned Unassigned
            maartenc Maarten Coene
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: