Java Collection Add addMatchingStrings(Collection availableProperties, String startWith, Collection strings)

Here you can find the source of addMatchingStrings(Collection availableProperties, String startWith, Collection strings)

Description

add Matching Strings

License

LGPL

Declaration

public static void addMatchingStrings(Collection<String> availableProperties, String startWith,
            Collection<String> strings) 

Method Source Code

//package com.java2s;
//License from project: LGPL 

import java.util.Collection;

public class Main {
    public static void addMatchingStrings(Collection<String> availableProperties, String startWith,
            Collection<String> strings) {
        for (String string : strings)
            if (string.startsWith(startWith))
                availableProperties.add(string);
    }//ww  w  . jav a  2  s. c om
}

Related

  1. addIgnoreNull(Collection collection, Object object)
  2. addIgnoreNull(Collection collection, T object)
  3. addIgnoreNull(final Collection collection, final T object)
  4. addInClauseToQuery(StringBuilder query, Collection l)
  5. addItem(Collection collection, Object item)
  6. addNewLines(Collection strings)
  7. addNonNull(Object element, Collection result)
  8. addNonnullIfMissing(Collection collection, T element)
  9. addNonNulls(Collection c, X... xl)

  10. HOME | Copyright © www.java2s.com 2016