Class MeasurementValue

  • All Implemented Interfaces:
    java.lang.Cloneable, java.lang.Comparable<MeasurementValue>

    public class MeasurementValue
    extends java.lang.Object
    implements java.lang.Comparable<MeasurementValue>, java.lang.Cloneable
    Holds a measurement value.
    Holds a value that is produced by some measurement function.
    The first dimension defines the order relation and have to be strictly monotone.
    • Field Detail

      • values

        public final long[] values
    • Constructor Detail

      • MeasurementValue

        public MeasurementValue​(long[] values)
        C'tor to be used by all inheritances.
        Parameters:
        values - The initial value
    • Method Detail

      • clone

        public MeasurementValue clone()
        Overrides:
        clone in class java.lang.Object
      • subtract

        public void subtract​(MeasurementValue other)
        Subtract some value.
        Parameters:
        other - The value to subtract.
      • add

        public void add​(MeasurementValue other)
        Adds some value.
        Parameters:
        other - The value to add.
      • lessThan

        public boolean lessThan​(MeasurementValue other)
        Convenience variant. Same as "compareTo(other) < 0".
        Parameters:
        other - The other instance.
        Returns:
        true if this instance is less than the other.
      • greaterThan

        public boolean greaterThan​(MeasurementValue other)
        Convenience variant. Same as "compareTo(other) > 0".
        Parameters:
        other - The other instance.
        Returns:
        true if this instance is greater than the other.