Documentation of 'Catalano.Core.FloatRange' Java class
FloatRange
Catalano.Core

Class FloatRange

  • All Implemented Interfaces:
    java.io.Serializable


    public class FloatRange
    extends java.lang.Object
    implements java.io.Serializable
    Represents a float range with minimum and maximum values.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      FloatRange()
      Initializes a new instance of the FloatRange class.
      FloatRange(float min, float max)
      Initializes a new instance of the FloatRange class.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object obj) 
      float getMax()
      Get maximum value of the range.
      float getMin()
      Get minimum value of the range.
      int hashCode() 
      boolean isInside(float x)
      Check if the specified range is inside of the range.
      boolean IsOverlapping(FloatRange range)
      Check if the specified range overlaps with the range.
      float length()
      Length of the range (difference between maximum and minimum values).
      void setMax(float max)
      Set maximum value of the range.
      void setMin(float min)
      Set minimum value of the range.
      DoubleRange toDoubleRange()
      Convert FloatRange to DoubleRange.
      IntRange toIntRange()
      Convert FloatRange to IntRange.
      java.lang.String toString() 
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • FloatRange

        public FloatRange()
        Initializes a new instance of the FloatRange class.
      • FloatRange

        public FloatRange(float min,
                          float max)
        Initializes a new instance of the FloatRange class.
        Parameters:
        min - Minimum value of the range.
        max - Maximum value of the range.
    • Method Detail

      • getMin

        public float getMin()
        Get minimum value of the range.
        Returns:
        Minimum value.
      • setMin

        public void setMin(float min)
        Set minimum value of the range.
        Parameters:
        min - Minimum value.
      • getMax

        public float getMax()
        Get maximum value of the range.
        Returns:
        Maximum value.
      • setMax

        public void setMax(float max)
        Set maximum value of the range.
        Parameters:
        max - Maximum value.
      • length

        public float length()
        Length of the range (difference between maximum and minimum values).
        Returns:
        Length.
      • isInside

        public boolean isInside(float x)
        Check if the specified range is inside of the range.
        Parameters:
        x - Value.
        Returns:
        True if the value is inside of the range, otherwise returns false.
      • IsOverlapping

        public boolean IsOverlapping(FloatRange range)
        Check if the specified range overlaps with the range.
        Parameters:
        range - FloatRange.
        Returns:
        True if the range overlaps with the range, otherwise returns false.
      • toIntRange

        public IntRange toIntRange()
        Convert FloatRange to IntRange.
        Returns:
        IntRange.
      • toDoubleRange

        public DoubleRange toDoubleRange()
        Convert FloatRange to DoubleRange.
        Returns:
        DoubleRange.
      • equals

        public boolean equals(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.