Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2012 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;
 
import  org.eclipse.xtext.xbase.lib.Functions;

Author(s):
Sebastian Zarnekow
Since:
2.3
public class ClosureClient2 {
	private String value;
	public ClosureClient2(Functions.Function0<String>... functions) {
		StringBuilder builder = new StringBuilder("varArgs:");
		for(Functions.Function0<Stringfunctionfunctions) {
			builder.append(function.apply());
		}
		 = builder.toString();
	}
	public ClosureClient2(Functions.Function0<Stringfunction1, Functions.Function0<Stringfunction2) {
		StringBuilder builder = new StringBuilder("twoArgs:");
		builder.append(function1.apply());
		builder.append(function2.apply());
		 = builder.toString();
	}
	public String getValue() {
		return ;
	}
New to GrepCode? Check out our FAQ X