Package ucar.units

Class UnknownBaseQuantity

    • Constructor Detail

      • UnknownBaseQuantity

        protected UnknownBaseQuantity()
        Constructs from nothing.
    • Method Detail

      • equals

        public boolean equals​(Object object)
        Indicates if this quantity is semantically the same as an object. Unknown quantities are never equal by definition -- not even to itself.
        Specified by:
        equals in interface Base
        Overrides:
        equals in class BaseQuantity
        Parameters:
        object - The object.
        Returns:
        false always.
      • hashCode

        public int hashCode()
        Returns the hash code of this instance.
        Overrides:
        hashCode in class BaseQuantity
        Returns:
        The hash code of this instance.
      • isDimensionless

        public boolean isDimensionless()
        Indicates if this quantity is dimensionless. Unknown quantities are never dimensionless by definition.
        Specified by:
        isDimensionless in interface Base
        Specified by:
        isDimensionless in class BaseQuantity
        Returns:
        false always.