Pair

A tiny library that offers Pairs and nothing else.

Лицензия

Лицензия

Группа

Группа

de.scravy
Идентификатор

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

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

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

1.1.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

Pair
A tiny library that offers Pairs and nothing else.
Ссылка на сайт

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

https://github.com/scravy/java-pair
Система контроля версий

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

https://github.com/scravy/java-pair

Скачать pair

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

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

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
junit : junit jar 4.12

provided (1)

Идентификатор библиотеки Тип Версия
org.projectlombok : lombok jar 1.16.2

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

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

de.scravy : pair

Every know and then I found myself badly needing (wanting?) a Pair. A lot of libraries ship with either their own definition of a pair or pull in other libraries that provide one. But why should I use yet-another-utility-belt (most probably in addition to the one I already pulled in) just for having a Pair class when I do not need anything else from it?

It's in Maven Central

<dependency>
	<groupId>de.scravy</groupId>
	<artifactId>pair</artifactId>
	<version>1.0.0</version>
</dependency>

It's easy to use

Pair<Integer, Integer> myPair = Pairs.from(1, 2);

You want a comparable pair?

Pair<String, Integer> myPair = Pairs.fromComparables("foo", 42);

and so on - JAVADOCS at https://scravy.github.io/java-pair

Contributing

I do not see much that could be contributed, but if you have a crazy idea (maybe a handy utility function for Pairs), find a really bad bug, or whatever - please open an issue, send me a pull request, or mail me a patch.

License

MIT

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

Версия
1.1.0
1.0.0