06 2016 档案
Commons Lang - StringUtils
摘要:Operations on String that are null safe. IsEmpty/IsBlank - checks if a String is empty (判断字符串是否为空) Trim/Strip - removes leading and trailing whitespac 阅读全文
posted @ 2016-06-30 15:48 huey2672 阅读(272) 评论(0) 推荐(0)
Features for configuring JSON-to-Java mapping
摘要:Following on/off features are defined in DeserializationConfig.Feature (Jackson 1.x) or DeserializationFeature (Jackson 2.x): ACCEPT_EMPTY_STRING_AS_N 阅读全文
posted @ 2016-06-29 15:18 huey2672 阅读(362) 评论(0) 推荐(0)
Jackson - Features for configuring Java-to-JSON mapping
摘要:Following on/off features are defined in SerializationConfig.Feature (for Jackson 1.x), or SerializationFeature (Jackson 2.x): AUTO_DETECT_FIELDS (def 阅读全文
posted @ 2016-06-29 14:49 huey2672 阅读(740) 评论(0) 推荐(0)
Commons Math - Primes
摘要:org.apache.commons.math3.primes.Primes 是关于质数操作的工具类。 1. public static boolean isPrime(int n) 判断 n 是否为质数。 2. public static int nextPrime(int n) 返回大于 n 的 阅读全文
posted @ 2016-06-22 10:38 huey2672 阅读(289) 评论(0) 推荐(0)
Exchanger, Changing data between concurrent tasks
摘要:The Java concurrency API provides a synchronization utility that allows the interchange of data between two concurrent tasks. In more detail, the Exch 阅读全文
posted @ 2016-06-02 18:42 huey2672 阅读(190) 评论(0) 推荐(0)
Java Concurrency - Phaser, Controlling phase change in concurrent phased tasks
摘要:The Phaser class provides a method that is executed each time the phaser changes the phase. It's the onAdvance() method. It receives two parameters: t 阅读全文
posted @ 2016-06-02 17:12 huey2672 阅读(288) 评论(0) 推荐(0)
Java Concurrency - 浅析 Phaser 的用法
摘要:One of the most complex and powerful functionalities offered by the Java concurrency API is the ability to execute concurrent-phased tasks using the P 阅读全文
posted @ 2016-06-02 15:55 huey2672 阅读(460) 评论(0) 推荐(0)
Java Concurrency - 浅析 CyclicBarrier 的用法
摘要:The Java concurrency API provides a synchronizing utility that allows the synchronization of two or more threads in a determined point. It's the Cycli 阅读全文
posted @ 2016-06-02 13:26 huey2672 阅读(362) 评论(0) 推荐(0)
Java Concurrency - 浅析 CountDownLatch 的用法
摘要:The Java concurrency API provides a class that allows one or more threads to wait until a set of operations are made. It's the CountDownLatch class. T 阅读全文
posted @ 2016-06-01 21:28 huey2672 阅读(262) 评论(0) 推荐(0)