Class Binding.ValueResult<V>

    • Method Detail

      • failed

        public boolean failed()
        Returns true if this ValueResult represents a failure and false otherwise.
        Returns:
        true if this ValueResult represents a failure and false otherwise
        See Also:
        getFailure()
      • warningOccurred

        public boolean warningOccurred()
      • getValue

        public V getValue()
        Returns the resulting value if this ValueResult does not represent a failure and throws UnsupportedOperationException otherwise.
        Returns:
        the resulting value
        Throws:
        UnsupportedOperationException - if this ValueResult represents a failure
        See Also:
        failed()
      • getFailure

        public Binding.SyncFailure getFailure()
        Returns the failure if this ValueResult represents a failure and throws UnsupportedOperationException otherwise.
        Returns:
        the failure
        Throws:
        UnsupportedOperationException - if this ValueResult does not represent a failure
        See Also:
        failed()
      • toString

        public String toString()
        Returns a string representation of the ValueResult. This method is intended to be used for debugging purposes only, and the content and format of the returned string may vary between implementations. The returned string may be empty but may not be null.
        Overrides:
        toString in class Object
        Returns:
        a string representation of this ValueResult