Class PointsConfig


  • public class PointsConfig
    extends java.lang.Object
    This class holds the configuration used to parse numeric queries and create PointValues queries.
    See Also:
    PointValues, NumberFormat
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.text.NumberFormat format  
      private java.lang.Class<? extends java.lang.Number> type  
    • Constructor Summary

      Constructors 
      Constructor Description
      PointsConfig​(java.text.NumberFormat format, java.lang.Class<? extends java.lang.Number> type)
      Constructs a PointsConfig object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object obj)  
      java.text.NumberFormat getNumberFormat()
      Returns the NumberFormat used to parse a String to Number
      java.lang.Class<? extends java.lang.Number> getType()
      Returns the numeric type used to index the numeric values
      int hashCode()  
      void setNumberFormat​(java.text.NumberFormat format)
      Sets the NumberFormat used to parse a String to Number
      void setType​(java.lang.Class<? extends java.lang.Number> type)
      Sets the numeric type used to index the numeric values
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • format

        private java.text.NumberFormat format
      • type

        private java.lang.Class<? extends java.lang.Number> type
    • Constructor Detail

      • PointsConfig

        public PointsConfig​(java.text.NumberFormat format,
                            java.lang.Class<? extends java.lang.Number> type)
        Constructs a PointsConfig object.
        Parameters:
        format - the NumberFormat used to parse a String to Number
        type - the numeric type used to index the numeric values
        See Also:
        setNumberFormat(NumberFormat)
    • Method Detail

      • getNumberFormat

        public java.text.NumberFormat getNumberFormat()
        Returns the NumberFormat used to parse a String to Number
        Returns:
        the NumberFormat used to parse a String to Number
      • getType

        public java.lang.Class<? extends java.lang.Number> getType()
        Returns the numeric type used to index the numeric values
        Returns:
        the numeric type used to index the numeric values
      • setType

        public void setType​(java.lang.Class<? extends java.lang.Number> type)
        Sets the numeric type used to index the numeric values
        Parameters:
        type - the numeric type used to index the numeric values
      • setNumberFormat

        public void setNumberFormat​(java.text.NumberFormat format)
        Sets the NumberFormat used to parse a String to Number
        Parameters:
        format - the NumberFormat used to parse a String to Number, must not be null
      • hashCode

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

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