Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2011 itemis AG (http://www.itemis.eu) 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 /
 
 package testdata;
 

Author(s):
Sebastian Zarnekow - Initial contribution and API
public class ClassWithVarArgs {
	private boolean varArgConstructor;
	private boolean defaultConstructor;
	public ClassWithVarArgs() {
	}
	public ClassWithVarArgs(int iString... strings) {
		this. = true;
	}
	public ClassWithVarArgs(int iString s1String s2) {
		this. = false;
	}
	public List<StringstringsToList(String... strings) {
		if (strings == null)
			return null;
		return Lists.newArrayList(strings);
	}
	public List<StringstringsToList2(String firstArgString... strings) {
		if (strings == null)
			return null;
		final ArrayList<Stringresult = Lists.newArrayList(firstArg);
		result.addAll(Lists.newArrayList(strings));
		return result;
	}
	public <T> List<T> toList(T... args) {
		return Lists.newArrayList(args);
	}
	public <T extends NumberList<T> toNumberList(T... args) {
		return Lists.newArrayList(args);
	}
	public List<StringstringsToList(String s1String s2) {
		return Lists.newArrayList("foo"s1s2);
	}
	public boolean isVarArgConstructor() {
	}
	public boolean isDefaultConstructor() {
	}
	public String logInfo(String msg) {
		return String.format("logInfo(%s)"msg);
	}
	public String logInfo(String msgObject... args) {
		return String.format("logInfo(%s, args...)"msg);
	}
	public String logInfo2(String msg) {
		return String.format("logInfo2(%s)"msg);
	}
	public String logInfo2(String msgString param1) {
		return String.format("logInfo2(%s, %s)"msgparam1);
	}
	public String logInfo2(String msgString param1String param2) {
		return String.format("logInfo2(%s, %s, %s)"msgparam1param2);
	}
	public String logInfo2(String msgObject... args) {
		return String.format("logInfo2(%s, args...)"msg);
	}
New to GrepCode? Check out our FAQ X