SkillAgentSearch skills...

Lambda4jdt

2012 version of lambda4jdt. Eclipse plugin to fold anonymous inner classes as lambdas in Java Editor.

Install / Use

/learn @elucash/Lambda4jdt
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

lambda4jdt

2012 version of lambda4jdt. Eclipse plugin to fold anonymous inner classes as lambdas in Java Editor.

Read original description at http://code.google.com/p/lambda4jdt/. What's here:

  • Support for Eclipse Indigo SR2 3.7.2
  • Remove need for marker comment, simplify to one-size fits all
  • No further development planned, no features, no Juno support etc

EPL License http://www.eclipse.org/legal/epl-v10.html

Update site: https://github.com/elucash/lambda4jdt/raw/master/com.github.elucash.lambda4jdt.site/

Install plugins and then goto Preferences->Java->Editor->Folding, select folding to use "Lambda4jdt Folding". Any newly opened Java editor will pickup lambda4jdt

Read also http://code.google.com/p/guava-libraries/wiki/FunctionalExplained#Caveats

Examples

<pre> Executor e =... e.execute { doSomething(a); } final int i = 1;//you still need final to access i in function h.invoke(obj, () doSomethingWithIn(i)); Arrays.sort(array, (o1, o2) o1.hashCode() - o2.hashCode()); //Nested closure constructs are supported to some degree interface Provider&lt;T> { T get(Object context); } public Provider&lt;Provider&lt;Provider&lt;String>>> myProvider() { return new Provider&lt;Provider&lt;Provider&lt;String>>>() { public Provider&lt;Provider&lt;String>> get(Object c) { return new Provider&lt;Provider&lt;String>>() { public Provider&lt;String> get(Object c) { return new Provider&lt;String>() { public String get(Object c) { return "MyFavoriteStringFactory" + c; } }; } }; } }; } //.... // Which may be collapsed to.. public Provider&lt;Provider&lt;Provider&lt;String>>> myProvider() { return (c) (c) (c) "MyFavoriteStringFactory" + c; } </pre>

Related Skills

View on GitHub
GitHub Stars23
CategoryDevelopment
Updated2mo ago
Forks1

Languages

Java

Security Score

75/100

Audited on Jan 15, 2026

No findings