Class DataItem

    • Method Detail

      • overrideFormat

        public final Format overrideFormat()

        The overrideFormat is optional and is specified only if a particular row of data has a different format for the data than the default format defined on the screen or the table.

        If the service returns an enum value that is not available in the current SDK version, overrideFormat will return Format.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from overrideFormatAsString().

        Returns:
        The overrideFormat is optional and is specified only if a particular row of data has a different format for the data than the default format defined on the screen or the table.
        See Also:
        Format
      • overrideFormatAsString

        public final String overrideFormatAsString()

        The overrideFormat is optional and is specified only if a particular row of data has a different format for the data than the default format defined on the screen or the table.

        If the service returns an enum value that is not available in the current SDK version, overrideFormat will return Format.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from overrideFormatAsString().

        Returns:
        The overrideFormat is optional and is specified only if a particular row of data has a different format for the data than the default format defined on the screen or the table.
        See Also:
        Format
      • rawValue

        public final String rawValue()

        The raw value of the data. e.g. jsmith@example.com

        Returns:
        The raw value of the data. e.g. jsmith@example.com
      • formattedValue

        public final String formattedValue()

        The formatted value of the data. e.g. John Smith.

        Returns:
        The formatted value of the data. e.g. John Smith.
      • hashCode

        public final int hashCode()
        Overrides:
        hashCode in class Object
      • equals

        public final boolean equals​(Object obj)
        Overrides:
        equals in class Object
      • toString

        public final String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
      • getValueForField

        public final <T> Optional<T> getValueForField​(String fieldName,
                                                      Class<T> clazz)