Class ParsedFilePathBag
Object
ParsedFilePathBag
- All Implemented Interfaces:
Iterable<FileDetails>
A collection of
FileDetails
objects with methods to query their properties.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(FileDetails fileDetails) Adds aFileDetails
object to the collection.getMin
(Function<FileDetails, Optional<Integer>> func) Gets the minimum value obtained by applying a function to allFileDetails
.iterator()
Gets the range of channel numbers across allFileDetails
.Gets the range of slice numbers across allFileDetails
.Gets the range of time indices across allFileDetails
.int
size()
Gets the number ofFileDetails
objects in the collection.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ParsedFilePathBag
public ParsedFilePathBag()
-
-
Method Details
-
add
Adds aFileDetails
object to the collection.- Parameters:
fileDetails
- theFileDetails
object to add
-
iterator
- Specified by:
iterator
in interfaceIterable<FileDetails>
-
rangeChannelNum
Gets the range of channel numbers across allFileDetails
.- Returns:
- an
Optional
containing theIntegerRange
of channel numbers, or empty if not applicable
-
rangeSliceNum
Gets the range of slice numbers across allFileDetails
.- Returns:
- an
Optional
containing theIntegerRange
of slice numbers, or empty if not applicable
-
rangeTimeIndex
Gets the range of time indices across allFileDetails
.- Returns:
- an
Optional
containing theIntegerRange
of time indices, or empty if not applicable
-
getMin
Gets the minimum value obtained by applying a function to allFileDetails
.- Parameters:
func
- the function to apply to eachFileDetails
- Returns:
- an
Optional
containing the minimum value, or empty if not applicable
-
size
public int size()Gets the number ofFileDetails
objects in the collection.- Returns:
- the size of the collection
-