Mini Commons

A slimmed down version of Apache Commons Lang.

Лицензия

Лицензия

ASL
Группа

Группа

com.github.marschall
Идентификатор

Идентификатор

mini-commons
Последняя версия

Последняя версия

0.1.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

Mini Commons
A slimmed down version of Apache Commons Lang.
Ссылка на сайт

Ссылка на сайт

https://github.com/marschall/mini-commons
Система контроля версий

Система контроля версий

https://github.com/marschall/mini-commons

Скачать mini-commons

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/com.github.marschall/mini-commons/ -->
<dependency>
    <groupId>com.github.marschall</groupId>
    <artifactId>mini-commons</artifactId>
    <version>0.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.marschall/mini-commons/
implementation 'com.github.marschall:mini-commons:0.1.0'
// https://jarcasting.com/artifacts/com.github.marschall/mini-commons/
implementation ("com.github.marschall:mini-commons:0.1.0")
'com.github.marschall:mini-commons:jar:0.1.0'
<dependency org="com.github.marschall" name="mini-commons" rev="0.1.0">
  <artifact name="mini-commons" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.marschall', module='mini-commons', version='0.1.0')
)
libraryDependencies += "com.github.marschall" % "mini-commons" % "0.1.0"
[com.github.marschall/mini-commons "0.1.0"]

Зависимости

test (4)

Идентификатор библиотеки Тип Версия
org.apache.commons : commons-lang3 jar 3.4
junit : junit jar 4.12
org.openjdk.jmh : jmh-core jar 1.12
org.openjdk.jmh : jmh-generator-annprocess jar 1.12

Модули Проекта

Данный проект не имеет модулей.

Mini Commons Build Status Maven Central

Like Apache Commons Lang but lighter weight.

<dependency>
    <groupId>com.github.marschall</groupId>
    <artifactId>mini-commons</artifactId>
    <version>0.1.0</version>
</dependency>

Changes to Apache Commons Lang:

  • Removed reflective equals and hashCode. You generally use equals and hashCode for hash based collections, reflection has no place there.
  • Removed initialOddNumber and multiplierOddNumber from HashCodeBuilder. We have never seen anybody use anything else than the default.
  • EqualsBuilder#append(Object, Object) and HashCodeBuilder#append(Object) are simpler due to removed support for arrays.
    • If you want array support use EqualsBuilder#appendDeep(Object, Object) or HashCodeBuilder#appendDeep(Object). Is this the same pattern that java.util.Objects and java.util.Arrays use.
  • Delegate to java.util.Objects, java.util.Arrays, java.lang.Long, java.lang.Double where possible.
  • More JDK compliant hashing:
    • use 31 instead of 37 as a hash code multiplier
    • use JDK hash code for booleans

Javadoc

Версии библиотеки

Версия
0.1.0