JAVA通用函数式编程工具集 Java-Style

码农软件 · 软件分类 · 常用工具包 · 2019-08-16 10:57:06

软件介绍

Style 给 Java 8 带来其他语言高效的编程风格。

Style 通过精心挑选的方法/类名来模拟其他语言。

Style 致力于让你的编码更加美观,进行更少的重复编码,以及提升可读性。

代码示例:

// define a function to see if list contain a person with given name:
def<Boolean> check = $(
        (List<Person> ls, String name) -> null != $(list).forEach(e -> {
            if (e.name().equals(name))
                return true;
            return null;
        }));
check.apply(list, "cass");

// If expression with return value:
System.out.println(If(
    $(list).findOne(e -> e.name().equals("cass")),
        res -> {
            return res.id();
        }).Else(() -> "Not Found!"));

// forEach with iterator info
$(list).forEach((e, i) -> System.out.println(
        "Element is:" + e + " Index is:" + $(i)));

// dozens of new features waiting for you to explore.

本文地址:https://www.codercto.com/soft/d/12480.html

C++ Concurrency in Action

C++ Concurrency in Action

Anthony Williams / Manning Publications / 2012-2-28 / USD 69.99

HIGHLIGHT C++ Concurrency in Action is the first book to market to show how to take advantage of the new C++ Standard and how to write robust multi-threaded applications in C++. DESCRIPTION With ......一起来看看 《C++ Concurrency in Action》 这本书的介绍吧!

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

HEX HSV 转换工具
HEX HSV 转换工具

HEX HSV 互换工具

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具