@teppeis/multimaps

WebJar for @teppeis/multimaps

License

License

MIT
GroupId

GroupId

org.webjars.npm
ArtifactId

ArtifactId

teppeis__multimaps
Last Version

Last Version

1.1.0
Release Date

Release Date

Type

Type

jar
Description

Description

@teppeis/multimaps
WebJar for @teppeis/multimaps
Project URL

Project URL

https://www.webjars.org
Source Code Management

Source Code Management

https://github.com/teppeis/multimaps

Download teppeis__multimaps

How to add to project

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

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

@teppeis/multimaps

Multi-Map classes for TypeScript and JavaScript

npm version Node.js Version Support build status dependency status License

Install

$ npm i @teppeis/multimaps

Usage

ArrayMultimap

import {ArrayMultimap} from '@teppeis/multimaps';

const map = new ArrayMultimap<string, string>();
map.put('foo', 'a');
map.get('foo'); // ['a']
map.put('foo', 'b');
map.get('foo'); // ['a', 'b']
map.put('foo', 'a');
map.get('foo'); // ['a', 'b', 'a']

SetMultimap

import {SetMultimap} from '@teppeis/multimaps';

const map = new SetMultimap<string, string>();
map.put('foo', 'a');
map.get('foo'); // a `Set` of ['a']
map.put('foo', 'b');
map.get('foo'); // a `Set` of ['a', 'b']
map.put('foo', 'a');
map.get('foo'); // a `Set` of ['a', 'b']

License

MIT License: Teppei Sato <[email protected]>

Versions

Version
1.1.0