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 theFutureif not already done.intsize()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, subListMethods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, streamMethods 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 tonullwhen 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 theFutureif not already done. -
size
public int size()Returns the list length, which is the number of bands.- Specified by:
sizein interfaceCollection<NavigableMap<Double,Shape>> - Specified by:
sizein interfaceList<NavigableMap<Double,Shape>> - Specified by:
sizein classAbstractCollection<NavigableMap<Double,Shape>>
-
get
Returns the isolines in the given band.- Specified by:
getin interfaceList<NavigableMap<Double,Shape>> - Specified by:
getin classAbstractList<NavigableMap<Double,Shape>>
-
toArray
Returns the list content as an array.- Specified by:
toArrayin interfaceCollection<NavigableMap<Double,Shape>> - Specified by:
toArrayin interfaceList<NavigableMap<Double,Shape>> - Overrides:
toArrayin classAbstractCollection<NavigableMap<Double,Shape>>
-