public class DefaultWritableRealPointCollection<L extends RealLocalizable> extends AbstractRealInterval implements WritableRealPointCollection<L>
RealPointCollection backed by a Map.max, minn| Constructor and Description |
|---|
DefaultWritableRealPointCollection(Collection<L> points)
Creates a point collection which includes points in the given
Collection. |
DefaultWritableRealPointCollection(Map<gnu.trove.list.array.TDoubleArrayList,L> points)
Creates a point collection which includes points in the given
Map. |
| Modifier and Type | Method and Description |
|---|---|
void |
addPoint(L point)
Adds a point to the collection.
|
boolean |
equals(Object obj)
Determines whether this point collection describes the same region as
another one.
|
int |
hashCode() |
Iterable<L> |
points()
Returns the points in the collection.
|
void |
removePoint(L point)
Removes the given point from the set, if the point is found in the set.
|
long |
size()
Returns the number of points in the collection.
|
boolean |
test(RealLocalizable l) |
realMax, realMax, realMax, realMin, realMin, realMin, toStringnumDimensionsclone, finalize, getClass, notify, notifyAll, wait, wait, waitboundaryType, equals, hashCode, maskTypeand, isEmpty, minus, or, realMax, realMax, realMin, realMin, transform, xorisAll, knownConstantnumDimensionsmaxAsDoubleArray, maxAsRealPoint, minAsDoubleArray, minAsRealPoint, realMax, realMinpublic DefaultWritableRealPointCollection(Map<gnu.trove.list.array.TDoubleArrayList,L> points)
Map.points - points to include in the collection, the first point
determines the dimensionality of the collection. The keys in
the map should be TDoubleArrayLists which correspond
to the position of the points.public DefaultWritableRealPointCollection(Collection<L> points)
Collection.points - points to include in the collection, the first point
determines the dimensionality of the collectionpublic boolean test(RealLocalizable l)
test in interface Predicate<RealLocalizable>public Iterable<L> points()
RealPointCollectionpoints in interface RealPointCollection<L extends RealLocalizable>public long size()
RealPointCollectionsize in interface RealPointCollection<L extends RealLocalizable>public void addPoint(L point)
WritableRealPointCollectionaddPoint in interface WritableRealPointCollection<L extends RealLocalizable>point - Point to add to collectionpublic void removePoint(L point)
removePoint in interface WritableRealPointCollection<L extends RealLocalizable>point - point to be removed, it must have the same hash as a point in
the set in order to be removedpublic boolean equals(Object obj)
RealPointCollectionequals in interface RealPointCollection<L extends RealLocalizable>equals in interface MaskPredicate<RealLocalizable>equals in class Objectobj - The point collection to compare with this one.MaskPredicate.equals(Object),
RealPointCollection.equals(RealPointCollection, RealPointCollection)Copyright © 2015–2022 ImgLib2. All rights reserved.