intern

Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/

License

License

GroupId

GroupId

com.javax0
ArtifactId

ArtifactId

intern
Last Version

Last Version

1.0.0
Release Date

Release Date

Type

Type

maven-plugin
Description

Description

intern
Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/
Project URL

Project URL

http://maven.apache.org
Source Code Management

Source Code Management

https://github.com/verhas/intern

Download intern

How to add to project

<plugin>
    <groupId>com.javax0</groupId>
    <artifactId>intern</artifactId>
    <version>1.0.0</version>
</plugin>

Dependencies

test (3)

Group / Artifact Type Version
org.hamcrest : hamcrest-core jar 1.3
org.hamcrest : hamcrest-library jar 1.3
junit : junit jar 4.11

Project Modules

There are no modules declared in this project.

intern

This library implements the InternPool as described on the page javax0 article. It is capable interning objects. Interned objects in a pool are represented with a single instance when they are equal. Thus

   a = pool.intern(a)
   b = pool.intern(b)

will become a == b if a.equals(b) was true before interning even if a == b was not true before interning.

The library is thread safe.

<dependency>
  <groupId>com.javax0</groupId>
  <artifactId>intern</artifactId>
  <version>1.0.0</version>
</dependency>

Versions

Version
1.0.0