public interface ObjectScalingMethod
ObjectMask
s, scaling each object independently or collectively.Modifier and Type | Method and Description |
---|---|
default <T> Map<T,T> |
scaleElements(List<T> elements,
ScaleFactor scaleFactor,
AccessObjectMask<T> access)
Applies a scaling factor to elements, where each element is associated with a unique
ObjectMask . |
<T> Map<T,T> |
scaleElements(List<T> elements,
ScaleFactor scaleFactor,
Optional<java.util.function.UnaryOperator<T>> preOperation,
Optional<java.util.function.UnaryOperator<T>> postOperation,
AccessObjectMask<T> access)
Applies a scaling factor to elements, where each element is associated with a unique
ObjectMask . |
default <T> Map<T,T> scaleElements(List<T> elements, ScaleFactor scaleFactor, AccessObjectMask<T> access) throws OperationFailedException
ObjectMask
.T
- the element-type, which must have a sensible Object.hashCode()
and Object.equals(java.lang.Object)
implementation.elements
- the collection of input elements, whose associated ObjectMask
s
will be scaled.scaleFactor
- how much to scale by.access
- means of retrieving the ObjectMask
that is associated with T
and to create new derived elements.OperationFailedException
- if any aspect of the parameterization is unsupported by the
method.<T> Map<T,T> scaleElements(List<T> elements, ScaleFactor scaleFactor, Optional<java.util.function.UnaryOperator<T>> preOperation, Optional<java.util.function.UnaryOperator<T>> postOperation, AccessObjectMask<T> access) throws OperationFailedException
ObjectMask
.T
- the element-type, which must have a sensible Object.hashCode()
and Object.equals(java.lang.Object)
implementation.elements
- the collection of input elements, whose associated ObjectMask
s
will be scaled.scaleFactor
- how much to scale by.preOperation
- an optional operation applied to an element before scaling.postOperation
- an optional operation applied to an element after scaling.access
- means of retrieving the ObjectMask
that is associated with T
and to create new derived elements.OperationFailedException
- if any aspect of the parameterization is unsupported by the
method.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.