Class OperandTwo

    • Method Detail

      • booleanValue

        public final Boolean booleanValue()

        Boolean value type.

        Returns:
        Boolean value type.
      • doubleValue

        public final Double doubleValue()

        Double value type.

        Returns:
        Double value type.
      • emptyValue

        public final EmptyOperandValue emptyValue()

        Empty value type.

        Returns:
        Empty value type.
      • stringValue

        public final String stringValue()

        String value type.

        Returns:
        String value type.
      • 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)
      • fromBooleanValue

        public static OperandTwo fromBooleanValue​(Boolean booleanValue)
        Create an instance of this class with booleanValue() initialized to the given value.

        Boolean value type.

        Parameters:
        booleanValue - Boolean value type.
      • fromDoubleValue

        public static OperandTwo fromDoubleValue​(Double doubleValue)
        Create an instance of this class with doubleValue() initialized to the given value.

        Double value type.

        Parameters:
        doubleValue - Double value type.
      • fromEmptyValue

        public static OperandTwo fromEmptyValue​(EmptyOperandValue emptyValue)
        Create an instance of this class with emptyValue() initialized to the given value.

        Empty value type.

        Parameters:
        emptyValue - Empty value type.
      • fromStringValue

        public static OperandTwo fromStringValue​(String stringValue)
        Create an instance of this class with stringValue() initialized to the given value.

        String value type.

        Parameters:
        stringValue - String value type.
      • type

        public OperandTwo.Type type()
        Retrieve an enum value representing which member of this object is populated. When this class is returned in a service response, this will be OperandTwo.Type.UNKNOWN_TO_SDK_VERSION if the service returned a member that is only known to a newer SDK version. When this class is created directly in your code, this will be OperandTwo.Type.UNKNOWN_TO_SDK_VERSION if zero members are set, and null if more than one member is set.