Class Variant

    • Method Detail

      • stringValue

        public final String stringValue()

        Asset property data of type string (sequence of characters).

        Returns:
        Asset property data of type string (sequence of characters).
      • integerValue

        public final Integer integerValue()

        Asset property data of type integer (number that's greater than or equal to zero).

        Returns:
        Asset property data of type integer (number that's greater than or equal to zero).
      • doubleValue

        public final Double doubleValue()

        Asset property data of type double (floating point number).

        Returns:
        Asset property data of type double (floating point number).
      • booleanValue

        public final Boolean booleanValue()

        Asset property data of type Boolean (true or false).

        Returns:
        Asset property data of type Boolean (true or false).
      • serializableBuilderClass

        public static Class<? extends Variant.Builder> serializableBuilderClass()
      • 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)