https://github.com/idf/commons-util
Common utilities for Java
https://github.com/idf/commons-util
Last synced: 6 months ago
JSON representation
Common utilities for Java
- Host: GitHub
- URL: https://github.com/idf/commons-util
- Owner: idf
- License: apache-2.0
- Created: 2014-12-31T06:18:52.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2020-10-12T23:37:13.000Z (over 5 years ago)
- Last Synced: 2025-04-03T19:38:28.978Z (about 1 year ago)
- Language: Java
- Homepage:
- Size: 97.7 KB
- Stars: 4
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
commons-util
============
Common functions for Java.
Life is short; don't repeat yourself.
# Langauge Level
Java 8 required
# Parallel Stream
Performance comparisons between Iteration, Stream, ParallelStream can be found in [Java 8 in Action](http://www.manning.com/urma/) Chapter 7. The bottom line is: choose the right data structure.
# Methods
Public methods are supposed to be directly called since they are for repeating patterns solved multiple lines.
Private methods are supposed to be an example to guide you to write the code rather than to be called since they are for repeating patterns solved in a single line.
# Idea
Open with IntelliJ Idea
```
alias idea='open -a "`ls -dt /Applications/IntelliJ\ IDEA*|head -1`"'
idea .
```