atlantis

Basic graph data structures and algorithms.

Лицензия

Лицензия

Категории

Категории

Ant Компиляция и сборка
Группа

Группа

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

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

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

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

0.0.1
Дата

Дата

Тип

Тип

jar
Описание

Описание

atlantis
Basic graph data structures and algorithms.
Ссылка на сайт

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

https://github.com/tommyettinger/atlantis
Система контроля версий

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

https://github.com/tommyettinger/atlantis

Скачать atlantis

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

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

Зависимости

test (1)

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

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

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

atlantis

Ordered JDK Map and Set classes that allow lookup at an index

Installation

With Gradle (may need api instead of implementation, or compile for old Gradle):

implementation 'com.github.tommyettinger:atlantis:0.0.1'

Or with Maven:

<dependency>
  <groupId>com.github.tommyettinger</groupId>
  <artifactId>atlantis</artifactId>
  <version>0.0.1</version>
</dependency>

Or you can use JitPack using its instructions.

Usage

You have IndexedMap and IndexedSet now! These are quite full-featured collections that are similar to the existing JDK classes LinkedHashMap and LinkedHashSet; all of these are insertion-ordered but otherwise act like HashMap. Except, IndexedMap and IndexedSet allow lookup by index in constant time, which removes the need to make iterators, and allow offline sorting of their entries by key or by value. There's some other features too, like alter() to change a key without changing its position in the order (or its value). Mostly, these are like a regular Map, with keyAt(), getAt(), removeAt(), and so on added to operate at a given index (hence the library name).

Many of these features are already in libGDX's OrderedMap and OrderedSet classes, but neither of those implements any JDK interface, so they aren't very interoperable.

Licence

Apache 2.0, see LICENSE.

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

Версия
0.0.1