E
- the type of content of this Setpublic abstract class ImmutableAbstractCollection<E> extends Object implements ImmutableCollection<E>
Copyright (c) 2016-2019 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information https://djutils.org. The DJUTILS project is distributed under a three-clause BSD-style license, which can be found at https://djutils.org/docs/license.html.
Modifier and Type | Field and Description |
---|---|
protected Immutable |
copyOrWrap
COPY stores a safe, internal copy of the collection; WRAP stores a pointer to the original collection.
|
Constructor and Description |
---|
ImmutableAbstractCollection(Immutable copyOrWrap)
Construct an abstract immutable collection.
|
Modifier and Type | Method and Description |
---|---|
protected abstract Collection<E> |
getCollection()
Returns the underlying collection of this immutable collection.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
contains, containsAll, containsAll, equals, hashCode, isCopy, isEmpty, isWrap, iterator, parallelStream, size, spliterator, stream, toArray, toArray, toCollection
protected final Immutable copyOrWrap
public ImmutableAbstractCollection(Immutable copyOrWrap)
copyOrWrap
- Immutable; indicates whether the immutable is a copy or a wrapprotected abstract Collection<E> getCollection()
Copyright © 2018–2019 Delft University of Technology. All rights reserved.