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 TypeMethodDescriptionvoidadd(FileDetails fileDetails) Adds aFileDetailsobject 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.intsize()Gets the number ofFileDetailsobjects in the collection.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ParsedFilePathBag
public ParsedFilePathBag()
-
-
Method Details
-
add
Adds aFileDetailsobject to the collection.- Parameters:
fileDetails- theFileDetailsobject to add
-
iterator
- Specified by:
iteratorin interfaceIterable<FileDetails>
-
rangeChannelNum
Gets the range of channel numbers across allFileDetails.- Returns:
- an
Optionalcontaining theIntegerRangeof channel numbers, or empty if not applicable
-
rangeSliceNum
Gets the range of slice numbers across allFileDetails.- Returns:
- an
Optionalcontaining theIntegerRangeof slice numbers, or empty if not applicable
-
rangeTimeIndex
Gets the range of time indices across allFileDetails.- Returns:
- an
Optionalcontaining theIntegerRangeof 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
Optionalcontaining the minimum value, or empty if not applicable
-
size
public int size()Gets the number ofFileDetailsobjects in the collection.- Returns:
- the size of the collection
-