Class Limits


  • public class Limits
    extends java.lang.Object
    Limits for a histogram, this is only a wrapper for initializing a histogram.
    Author:
    Steinar Knutsen
    • Constructor Summary

      Constructors 
      Constructor Description
      Limits()
      Create an empty Limits instance.
      Limits​(double[] limits)
      Create a Limits instance suitable for use in a Value.Parameters instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addAxis​(java.lang.String name, double[] limits)  
      void freeze()
      Prevent adding any mores axes.
      boolean isFrozen()
      True if further change is not permitted.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Limits

        public Limits()
        Create an empty Limits instance.
      • Limits

        public Limits​(double[] limits)
        Create a Limits instance suitable for use in a Value.Parameters instance. The instance will be frozen.
    • Method Detail

      • addAxis

        public void addAxis​(java.lang.String name,
                            double[] limits)
        Parameters:
        name - the name of the variable for this axis
        limits - the bucket limits for this axis
      • freeze

        public void freeze()
        Prevent adding any mores axes.
      • isFrozen

        public boolean isFrozen()
        True if further change is not permitted.
        Returns:
        whether this object now should be considered immutable