- Mastering Java for Data Science
- Alexey Grigorev
- 209字
- 2021-07-02 23:44:35
Commons Lang
Apache Commons Lang is a set of utility classes that extend the java.util package and they make the life of a Java developer a lot easier by providing many little methods that solve common problems and save a lot of time.
To include external libraries in Java, we usually use Maven, which makes it very easy to manage dependencies. With Maven, the Apache Commons Lang library can be included using this dependency snippet:
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.4</version>
</dependency>
The library contains a lot of methods useful for general-purpose Java programming, such as making it easier to implement the equals and hashCode methods for objects, serialization helpers and others. In general, they are not very specific to data science, but there are a few helper functions that are quite useful. For example,
- RandomUtils and RandomStringUtils for generating data
- StringEscapeUtils and LookupTranslator for escaping and un-escaping strings
- EqualsBuilder and HashCodeBuilder for the fast implementation of equals and hashCode methods
- StringUtils and WordUtils for useful string manipulation methods
- the Pair class
For more information, you can read the documentation at https://commons.apache.org/lang.
The best way to see what is available is to download the package and see the code available there. Every Java developer will find a lot of useful things.
- 大規(guī)模數(shù)據(jù)分析和建模:基于Spark與R
- Python數(shù)據(jù)分析與挖掘?qū)崙?zhàn)
- Python數(shù)據(jù)分析入門:從數(shù)據(jù)獲取到可視化
- 云計算與大數(shù)據(jù)應用
- 一個64位操作系統(tǒng)的設計與實現(xiàn)
- MySQL 8.x從入門到精通(視頻教學版)
- 從0到1:JavaScript 快速上手
- MATLAB Graphics and Data Visualization Cookbook
- 計算機應用基礎教程上機指導與習題集(微課版)
- Python數(shù)據(jù)分析與挖掘?qū)崙?zhàn)(第3版)
- 深入理解InfluxDB:時序數(shù)據(jù)庫詳解與實踐
- Unity for Architectural Visualization
- 一本書讀懂大數(shù)據(jù)
- 數(shù)據(jù)之美:一本書學會可視化設計
- AI Crash Course