Class Result
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<NavigableMap<Double,Shape>>
org.apache.sis.internal.processing.isoline.Result
- All Implemented Interfaces:
Iterable<NavigableMap<Double,
,Shape>> Collection<NavigableMap<Double,
,Shape>> List<NavigableMap<Double,
Shape>>
Deferred isoline result, created when computation is continuing in background.
The
Future
result is requested the first time that get(int)
is invoked.- Since:
- 1.1
- Version:
- 1.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate NavigableMap<Double,
Shape>[] The result ofFuture.get()
fetched when first needed.The task computing isolines result.Fields inherited from class java.util.AbstractList
modCount
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionget
(int band) Returns the isolines in the given band.private NavigableMap<Double,
Shape>[] isolines()
Fetches the isolines from theFuture
if not already done.int
size()
Returns the list length, which is the number of bands.Object[]
toArray()
Returns the list content as an array.Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, replaceAll, retainAll, sort, spliterator, toArray
-
Field Details
-
task
The task computing isolines result. Reset tonull
when no longer needed. -
isolines
The result ofFuture.get()
fetched when first needed.
-
-
Constructor Details
-
Result
Creates a new list for the given future isolines.
-
-
Method Details
-
isolines
Fetches the isolines from theFuture
if not already done. -
size
public int size()Returns the list length, which is the number of bands.- Specified by:
size
in interfaceCollection<NavigableMap<Double,
Shape>> - Specified by:
size
in interfaceList<NavigableMap<Double,
Shape>> - Specified by:
size
in classAbstractCollection<NavigableMap<Double,
Shape>>
-
get
Returns the isolines in the given band.- Specified by:
get
in interfaceList<NavigableMap<Double,
Shape>> - Specified by:
get
in classAbstractList<NavigableMap<Double,
Shape>>
-
toArray
Returns the list content as an array.- Specified by:
toArray
in interfaceCollection<NavigableMap<Double,
Shape>> - Specified by:
toArray
in interfaceList<NavigableMap<Double,
Shape>> - Overrides:
toArray
in classAbstractCollection<NavigableMap<Double,
Shape>>
-