Class NumberRange

  • All Implemented Interfaces:
    com.github.davidmoten.odata.client.ODataType

    public class NumberRange
    extends Object
    implements com.github.davidmoten.odata.client.ODataType
    “Number Range definition.”
    • Field Detail

      • contextPath

        protected com.github.davidmoten.odata.client.ContextPath contextPath
      • unmappedFields

        protected com.github.davidmoten.odata.client.internal.UnmappedFieldsImpl unmappedFields
      • odataType

        protected String odataType
      • lowerNumber

        protected Integer lowerNumber
      • upperNumber

        protected Integer upperNumber
    • Constructor Detail

      • NumberRange

        protected NumberRange()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
      • getLowerNumber

        public Optional<Integer> getLowerNumber()
        “Lower number.”
        Returns:
        property lowerNumber
      • withLowerNumber

        public NumberRange withLowerNumber​(Integer lowerNumber)
        Returns an immutable copy of this with just the lowerNumber field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “Lower number.”

        Parameters:
        lowerNumber - new value of lowerNumber field (as defined in service metadata)
        Returns:
        immutable copy of this with just the lowerNumber field changed
      • getUpperNumber

        public Optional<Integer> getUpperNumber()
        “Upper number.”
        Returns:
        property upperNumber
      • withUpperNumber

        public NumberRange withUpperNumber​(Integer upperNumber)
        Returns an immutable copy of this with just the upperNumber field changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that when this. patch() is called (if available)on the returned object only the changed fields are submitted.

        “Upper number.”

        Parameters:
        upperNumber - new value of upperNumber field (as defined in service metadata)
        Returns:
        immutable copy of this with just the upperNumber field changed
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType
      • builder

        public static NumberRange.Builder builder()
        Returns a builder which is used to create a new instance of this class (given that this class is immutable).
        Returns:
        a new Builder for this class