Class AbstractConverter.Pair

java.lang.Object
tech.units.indriya.AbstractConverter
tech.units.indriya.AbstractConverter.Pair
All Implemented Interfaces:
Serializable, Comparable<javax.measure.UnitConverter>, javax.measure.UnitConverter
Enclosing class:
AbstractConverter

public static final class AbstractConverter.Pair extends AbstractConverter implements Serializable
This class represents converters made up of two or more separate converters (in matrix notation [pair] = [left] x [right]).
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • left

      private final javax.measure.UnitConverter left
      Holds the first converter.
  • Constructor Details

    • Pair

      public Pair(javax.measure.UnitConverter left, javax.measure.UnitConverter right)
      Creates a pair converter resulting from the combined transformation of the specified converters.
      Parameters:
      left - the left converter, not null.
      right - the right converter.
      Throws:
      IllegalArgumentException - if either the left or right converter are null
  • Method Details