- 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.
- Building Computer Vision Projects with OpenCV 4 and C++
- 數(shù)據(jù)庫基礎與應用:Access 2010
- Developing Mobile Games with Moai SDK
- Learning Spring Boot
- 新型數(shù)據(jù)庫系統(tǒng):原理、架構(gòu)與實踐
- 大數(shù)據(jù)導論
- 大數(shù)據(jù)時代下的智能轉(zhuǎn)型進程精選(套裝共10冊)
- 深入淺出MySQL:數(shù)據(jù)庫開發(fā)、優(yōu)化與管理維護(第2版)
- 數(shù)亦有道:Python數(shù)據(jù)科學指南
- Starling Game Development Essentials
- SQL應用及誤區(qū)分析
- Apache Kylin權(quán)威指南
- Hadoop集群與安全
- Visual Studio 2013 and .NET 4.5 Expert Cookbook
- Filecoin原理與實現(xiàn)