Here you can find the source of containsAnyVariables(Collection
private static boolean containsAnyVariables(Collection<String> propertyValues)
//package com.java2s; /******************************************************************************* * Copyright (c) 2013 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at * http://www.eclipse.org/legal/epl-v10.html * * Contributors:/*from w ww .ja v a2 s . c om*/ * IBM Corporation - initial API and implementation *******************************************************************************/ import java.util.Collection; public class Main { private static final String VARIABLE_START = "${"; private static boolean containsAnyVariables(Collection<String> propertyValues) { for (String propertyValue : propertyValues) { if (propertyValue.contains(VARIABLE_START)) { return true; } } return false; } }