/*
* Copyright (c) 2021 Goldman Sachs.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* and Eclipse Distribution License v. 1.0 which accompany this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
* and the Eclipse Distribution License is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*/
This package contains implementations of the ImmutableBag
interface. An ImmutableBag
is an immutable collection which contains elements that are unordered, and may contain duplicate entries.
This package contains 4 immutable bag implementations:
-
ImmutableArrayBag
- an ImmutableBag
which uses an array as its underlying data store.
-
ImmutableEmptyBag
- an empty ImmutableBag
.
-
ImmutableHashBag
- an ImmutableBag
which uses a hashtable as its underlying data store.
-
ImmutableSingletonBag
- an ImmutableBag
which contains only one element.
This package contains one factory implementation:
-
ImmutableBagFactoryImpl
- a factory which creates instances of type ImmutableBag
.
/**
* This package contains implementations of the {@link org.eclipse.collections.api.bag.ImmutableBag} interface.
* <p>
* An {@link org.eclipse.collections.api.bag.ImmutableBag} is an immutable collection which contains elements that are unordered, and may contain duplicate entries.
* <p>
* This package contains 4 immutable bag implementations:
* <ul>
* <li>
* {@link org.eclipse.collections.impl.bag.immutable.ImmutableArrayBag} - an {@link org.eclipse.collections.api.bag.ImmutableBag} which uses an array as its underlying data store.
* </li>
* <li>
* {@link org.eclipse.collections.impl.bag.immutable.ImmutableEmptyBag} - an empty {@link org.eclipse.collections.api.bag.ImmutableBag}.
* </li>
* <li>
* {@link org.eclipse.collections.impl.bag.immutable.ImmutableHashBag} - an {@link org.eclipse.collections.api.bag.ImmutableBag} which uses a hashtable as its underlying data store.
* </li>
* <li>
* {@link org.eclipse.collections.impl.bag.immutable.ImmutableSingletonBag} - an {@link org.eclipse.collections.api.bag.ImmutableBag} which contains only one element.
* </li>
* </ul>
* <p>
* This package contains one factory implementation:
* <ul>
* <li>
* {@link org.eclipse.collections.impl.bag.immutable.ImmutableBagFactoryImpl} - a factory which creates instances of type {@link org.eclipse.collections.api.bag.ImmutableBag}.
* </li>
* </ul>
*/
package org.eclipse.collections.impl.bag.immutable;