
lt.lang.implicit.CollectionImplicit Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of latte-compiler Show documentation
Show all versions of latte-compiler Show documentation
The latte-lang compiler project, which contains compiler and runtime required library.
The newest version!
package lt.lang.implicit;
import lt.runtime.Implicit;
import lt.runtime.LatteObject;
import lt.lang.implicit.collection.*;
import java.util.List;
import java.util.Map;
import java.util.Set;
/**
* implicit casts on collections
*/
@LatteObject
@Implicit
public class CollectionImplicit {
public static final CollectionImplicit singletonInstance = new CollectionImplicit();
private CollectionImplicit() {
}
@Implicit
public RichList cast(List list) {
return new RichList(list);
}
@Implicit
public RichSet cast(Set set) {
return new RichSet(set);
}
@Implicit
public RichMap cast(Map map) {
return new RichMap(map);
}
@Implicit
public RichIterable cast(Iterable i) {
return new RichIterable(i);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy